acassis commented on a change in pull request #1655:
URL: https://github.com/apache/incubator-nuttx/pull/1655#discussion_r478551164



##########
File path: boards/sim/sim/sim/README.txt
##########
@@ -544,6 +544,17 @@ bluetooth
   apps/wireless/bluetooth/btsak and the NULL Bluetooth device at
   drivers/wireless/bluetooth/bt_null.c
 
+  There is also support on a Linux Host for attaching the bluetooth hardware
+  from the host to the NuttX bluetoooth stack via the HCI Socket interface
+  over the User Channel.  This is enabled in the bthcisock configuration.
+  In order to use this you must give the nuttx elf additional capabilities:
+
+  sudo setcap 'cap_net_raw,cap_net_admin=eip' ./nuttx
+
+  You can then monitor the HCI traffic on the host with wireshark or btmon
+
+  sudo btmon

Review comment:
       ```suggestion
   $ sudo btmon 
   = Close Index: 60:57:18:EE:03:FD                                             
                      [hci0] 4.204320
   @ MGMT Event: Index Removed (0x0005) plen 0                                  
             {0x0002} [hci0] 4.204520
   @ MGMT Event: Index Removed (0x0005) plen 0                                  
             {0x0001} [hci0] 4.204520
   = Open Index: 60:57:18:EE:03:FD                                              
                      [hci0] 4.204551
   = Index Info: 60:57:18:EE:03:FD (Intel Corp.)                                
                      [hci0] 4.204553
   @ RAW Close: nuttx                                                           
                    {0x0003} 4.204557
   @ USER Open: nuttx (privileged) version 2.22                                 
             {0x0003} [hci0] 4.204560
   < HCI Command: Reset (0x03|0x0003) plen 0                                    
                   #5 [hci0] 4.204602
   = bluetoothd: Endpoint unregistered: sender=:1.74 
path=/MediaEndpoint/A2DPSink/sbc                        4.207973
   = bluetoothd: Endpoint unregistered: sender=:1.74 
path=/MediaEndpoint/A2DPSource/sbc                      4.208031
   > HCI Event: Command Complete (0x0e) plen 4                                  
                   #6 [hci0] 4.218155
         Reset (0x03|0x0003) ncmd 2
           Status: Success (0x00)
   < HCI Command: Read Local Supported Features (0x04|0x0003) plen 0            
                   #7 [hci0] 4.224783
   > HCI Event: Command Complete (0x0e) plen 12                                 
                   #8 [hci0] 4.225184
   ```




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to