<?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>l2cap implementation with static uuid and randm channel in nrf5340</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/104467/l2cap-implementation-with-static-uuid-and-randm-channel-in-nrf5340</link><description>hello, 
 i am using nrf5340 in sdk 2.4 i want to implement l2cap on our customised firmware i need PSM value to be received from characteristic with custom uuid but most of the example uses static value for PSM which is 0x80 is there any example or link</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 10 Nov 2023 10:30:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/104467/l2cap-implementation-with-static-uuid-and-randm-channel-in-nrf5340" /><item><title>RE: l2cap implementation with static uuid and randm channel in nrf5340</title><link>https://devzone.nordicsemi.com/thread/455088?ContentTypeID=1</link><pubDate>Fri, 10 Nov 2023 10:30:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e31f7e2-fc14-40f0-9a4c-964811f7b1d7</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;br /&gt;Can you step into the code and check why it didn&amp;#39;t return.&amp;nbsp;&lt;br /&gt;Could you explain why you want to do credit based L2CAP ?&amp;nbsp;&lt;br /&gt;What&amp;#39;s the limitation of the ots that you decide to make the change ?&amp;nbsp;&lt;br /&gt;Have you enabled&amp;nbsp;CONFIG_BT_L2CAP_ECRED=y ?&amp;nbsp;&lt;br /&gt;Have you studied the sample in&amp;nbsp;\zephyr\tests\bsim\bluetooth\host\l2cap ?&amp;nbsp;&lt;br /&gt;I saw that they use&amp;nbsp;bt_l2cap_ecred_chan_connect in&amp;nbsp;credits_seg_recv and&amp;nbsp;credits&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: l2cap implementation with static uuid and randm channel in nrf5340</title><link>https://devzone.nordicsemi.com/thread/455044?ContentTypeID=1</link><pubDate>Fri, 10 Nov 2023 04:09:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4605aed-3ec1-44f5-8f89-0c65abf68b13</guid><dc:creator>manikandan</dc:creator><description>&lt;p&gt;i too want to close this as soon&amp;nbsp; as possible OTS default sample working fine..my l2cap gets stuck at&amp;nbsp;&lt;span&gt;bt_l2cap_ecred_chan_connect getting unknown error in central&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;manikandan v&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: l2cap implementation with static uuid and randm channel in nrf5340</title><link>https://devzone.nordicsemi.com/thread/454922?ContentTypeID=1</link><pubDate>Thu, 09 Nov 2023 13:18:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63873344-05c2-4415-a216-59ae38bf31b8</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;br /&gt;I&amp;#39;m sorry that the issue has been dragging for so long.&amp;nbsp;&lt;br /&gt;But can you clarify that even if you use&amp;nbsp;BT_GATT_OTS_L2CAP_PSM 0x0025 like in&amp;nbsp;&lt;span&gt;ots_l2cap you still can&amp;#39;t make it work ?&amp;nbsp;&lt;br /&gt;I don&amp;#39;t see why it worked for the OTS but not for you ?&amp;nbsp;&lt;br /&gt;At which step the OTS works , but not your own l2cap channel ?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: l2cap implementation with static uuid and randm channel in nrf5340</title><link>https://devzone.nordicsemi.com/thread/454818?ContentTypeID=1</link><pubDate>Thu, 09 Nov 2023 03:48:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7653e6a-a3ad-4feb-9b6c-eab0de10d9ac</guid><dc:creator>manikandan</dc:creator><description>&lt;p&gt;hello thanks for your reply&amp;nbsp; that is&amp;nbsp;also not working my steps&lt;/p&gt;
&lt;p&gt;1)initaiting a&amp;nbsp;discovery service&amp;nbsp;with static uuid ABDD3056 28FA 441D A470 55A75A52553A&lt;/p&gt;
&lt;p&gt;2)after making ble connection initaiting a l2cap register using this&amp;nbsp;register_l2cap_server&lt;/p&gt;
&lt;div&gt;&lt;span&gt;&lt;span&gt;3)and making l2cap connection using&amp;nbsp;&lt;/span&gt;&lt;/span&gt;bt_l2cap_ecred_chan_connect&lt;/div&gt;
&lt;p&gt;4)and sending the data using this&amp;nbsp;bt_l2cap_chan_send&lt;/p&gt;
&lt;p&gt;but i still could not be able to&amp;nbsp;mkq the l2cap connection&amp;nbsp;&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;manikandan V&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: l2cap implementation with static uuid and randm channel in nrf5340</title><link>https://devzone.nordicsemi.com/thread/453463?ContentTypeID=1</link><pubDate>Wed, 01 Nov 2023 10:11:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e73e97a-839d-4e00-8ac8-6d5f5ea83616</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Manikandan,&lt;br /&gt;Could you show how exactly you assign the value ?&amp;nbsp;&lt;br /&gt;I think I have confused between PSM and SPSM. It more likely that what we use as psm in our code is actually SPSM.&amp;nbsp;&lt;br /&gt;You can find this :&amp;nbsp;&lt;br /&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/pastedimage1698833390879v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;It&amp;#39;s matched with the SPSM in the spec:&amp;nbsp;&lt;br /&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/pastedimage1698833437050v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;So please try using psm value = 0x80, or better set it to 0 and let it dynamically assigned.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: l2cap implementation with static uuid and randm channel in nrf5340</title><link>https://devzone.nordicsemi.com/thread/453403?ContentTypeID=1</link><pubDate>Wed, 01 Nov 2023 01:52:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d4aa0b5-2265-40bc-8293-70be9d635a26</guid><dc:creator>manikandan</dc:creator><description>&lt;p&gt;yes, i have tested with custom psm that is working fine.. but if i give value in&amp;nbsp; the range of &amp;gt;0x1000 i am getting unknown error while making l2cap channel connection with&amp;nbsp;bt_l2cap_chan_connect .. that is where i am stuck&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: l2cap implementation with static uuid and randm channel in nrf5340</title><link>https://devzone.nordicsemi.com/thread/452539?ContentTypeID=1</link><pubDate>Thu, 26 Oct 2023 12:00:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cee8e06e-2537-49af-b7ea-7af1907917f3</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;br /&gt;Have you tried use test with fixed custom PSM ?&amp;nbsp;&lt;br /&gt;Have you managed to establish a L2CAP connection with that.&amp;nbsp;&lt;br /&gt;I would suggest to make sure everything is working before you test with dynamic random PSM.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I found this in the spec:&amp;nbsp;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/1033.pastedimage1698321549263v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;My understanding is that you can choose the PSM value from the initiator side.&amp;nbsp;&lt;br /&gt;Try something like 0x1001.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: l2cap implementation with static uuid and randm channel in nrf5340</title><link>https://devzone.nordicsemi.com/thread/452244?ContentTypeID=1</link><pubDate>Wed, 25 Oct 2023 11:36:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7432dfc1-afaa-40bc-bf80-ea785c278caa</guid><dc:creator>manikandan</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I can able to do connection with custom PSM as I have asked in my question I want to make l2cap connection with random PSM (PSM value should genrate after discovery) not custom one&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: l2cap implementation with static uuid and randm channel in nrf5340</title><link>https://devzone.nordicsemi.com/thread/452209?ContentTypeID=1</link><pubDate>Wed, 25 Oct 2023 09:36:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3c8bc9b-2a4f-48ff-8043-015213532dcd</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;I&amp;#39;m not so sure why&amp;nbsp;&lt;span&gt;BT_GATT_OTS_L2CAP_PSM has anything to do with service discovery and sending request.&amp;nbsp;&lt;br /&gt;The reason&amp;nbsp;BT_GATT_OTS_L2CAP_PSM has the value 0x0025 because it&amp;#39;s a standard PSM service in the spec and it has the value 0x0025:&amp;nbsp;&lt;br /&gt;&lt;a href="https://btprodspecificationrefs.blob.core.windows.net/assigned-numbers/Assigned%20Number%20Types/Assigned_Numbers.pdf"&gt;https://btprodspecificationrefs.blob.core.windows.net/assigned-numbers/Assigned%20Number%20Types/Assigned_Numbers.pdf&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&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/1663.pastedimage1698226576212v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If you are doing custom PSM you can choose anything above 0x80.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: l2cap implementation with static uuid and randm channel in nrf5340</title><link>https://devzone.nordicsemi.com/thread/452048?ContentTypeID=1</link><pubDate>Tue, 24 Oct 2023 15:50:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c4f3ec6-eb37-425f-9350-09f0115e2a52</guid><dc:creator>manikandan</dc:creator><description>&lt;p&gt;Yes I have seen that but what I am not getting is why they are specifing PSM value as&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;#define &lt;/span&gt;&lt;span&gt;BT_GATT_OTS_L2CAP_PSM&lt;/span&gt;&lt;span&gt; &amp;nbsp; &lt;/span&gt;&lt;span&gt;0x0025 in ots_l2cap.c&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: l2cap implementation with static uuid and randm channel in nrf5340</title><link>https://devzone.nordicsemi.com/thread/451984?ContentTypeID=1</link><pubDate>Tue, 24 Oct 2023 13:05:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09d52a52-7455-46cd-bc73-26b6a64a6b42</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Manikandan,&amp;nbsp;&lt;br /&gt;Have you looked at the central_otc sample ?&amp;nbsp;&lt;br /&gt;In the sample, the central&amp;nbsp;does service discovery (discover_func() called in connected() ) then subscribe to notification (subscribe_func () ) and then write to the ots service in&amp;nbsp;otc_btn_work_fn) function.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If you are not familiar with BLE I would suggest to get started with our sample in the SDK and our &lt;a href="https://academy.nordicsemi.com/courses/bluetooth-low-energy-fundamentals/"&gt;Bluetooth Academy&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: l2cap implementation with static uuid and randm channel in nrf5340</title><link>https://devzone.nordicsemi.com/thread/451869?ContentTypeID=1</link><pubDate>Tue, 24 Oct 2023 03:22:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc5fbaec-5119-48b0-8ce2-785dd4342ec9</guid><dc:creator>manikandan</dc:creator><description>&lt;p&gt;yes, i have refered this examples now i can be able use l2cap but only thing i am missing is how to perfrom gatt service discovery from central after establishing a connection want to know how to make central to send a request to peripheral device to set up anl2cap channel using the specfic gatt characteristic or how can i set any custom gatt characteristic?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: l2cap implementation with static uuid and randm channel in nrf5340</title><link>https://devzone.nordicsemi.com/thread/449390?ContentTypeID=1</link><pubDate>Mon, 09 Oct 2023 14:59:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4456e3ad-4746-495c-8903-83a6924b1291</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Manikandan,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m afraid that we don&amp;#39;t have further material compare to what I have discussed with your in the last ticket.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/101664/l2cap-implementation-on-nrf5340"&gt;l2cap implementation on nrf5340&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You need to dig into&amp;nbsp; central_otc and&amp;nbsp;peripheral_ots samples.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>