<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Optimizing NUS client to server latency</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/114676/optimizing-nus-client-to-server-latency</link><description>Hi! Background (feel free to skip) --------------------------------------- We have 3 nRF52840 boards, connected via ble/NUS as follows: 
 
 B also advertises bluetooth HID, and both B and C feature a USB HID. Following text considers the connection between</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 23 Oct 2024 23:58:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/114676/optimizing-nus-client-to-server-latency" /><item><title>RE: Optimizing NUS client to server latency</title><link>https://devzone.nordicsemi.com/thread/507661?ContentTypeID=1</link><pubDate>Wed, 23 Oct 2024 23:58:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e074199-0b08-4e9c-84fa-9c8bcec58d7e</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
[quote user=""]am I right that server-to-client communication aggregates and splits our messages into (smaller number of) ble packets?[/quote]
&lt;p&gt;Could be, but it depends on the&amp;nbsp;negotiated ATT MTU and DLE sizes between server and client, and what packet type is used, etc. A nrf-sniffer trace could confim that.&amp;nbsp;&lt;a href="https://www.nordicsemi.com/Products/Development-tools/nRF-Sniffer-for-Bluetooth-LE"&gt;https://www.nordicsemi.com/Products/Development-tools/nRF-Sniffer-for-Bluetooth-LE&lt;/a&gt;&lt;/p&gt;
[quote user=""]- Can we achieve the same packet-aggregation behavior for client-to-server communication?[/quote]
&lt;p&gt;Should be possible, for fast client to server communication, use write command.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1729727870380v1.png" alt=" " /&gt;&lt;/p&gt;
[quote user=""]- Is there a way to make the client send a packet every 7.5ms?[/quote]
&lt;p&gt;Yeah, that should not be an issue. Likely you are getting the callback in the next connection event, but it&amp;#39;s actually is sent every 7.5ms.&amp;nbsp;&lt;span&gt;A nrf-sniffer trace could confim that.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>