FlexSEA Wiki

A WEARABLE ROBOTICS TOOLKIT

User Tools

Site Tools


bluetoothconnect

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
bluetoothconnect [2018/03/05 14:13]
jfduval [Stream data with Bluetooth]
bluetoothconnect [2019/01/18 13:00]
jfduval [Stream data with Bluetooth]
Line 1: Line 1:
 ====== Using Bluetooth ====== ====== Using Bluetooth ======
  
-Some FlexSEA boards come with onboard Bluetooth, and most can support an external module on their expansion connector. In all cases, a [[https://​www.microchip.com/​wwwproducts/​en/​RN42|Microchip RN42]] pre-certified Class 2 Bluetooth radio is used. Using the Serial Port Profile (SPP), it is seen as a COM port on your computer (same deal as with USB).+Some FlexSEA boards come with onboard Bluetooth, and most can support an external module on their expansion connector. In all cases, a [[https://​www.microchip.com/​wwwproducts/​en/​RN42|Microchip RN42]] pre-certified Class 2 Bluetooth radio is used. Using the Serial Port Profile (SPP), it is seen as a COM port on your computer (same deal as with serial-over-USB).
  
 Before starting this guide, please make sure that: Before starting this guide, please make sure that:
Line 28: Line 28:
 Using the GUI with Bluetooth is //almost// the same as with USB. You start by opening a COM port, and you can stream sensor values and send control commands. The only difference is that with Bluetooth you should always be in Auto mode. Using the GUI with Bluetooth is //almost// the same as with USB. You start by opening a COM port, and you can stream sensor values and send control commands. The only difference is that with Bluetooth you should always be in Auto mode.
  
 +Plan 2.0:
 {{ ::​streamauto.png |}} {{ ::​streamauto.png |}}
 +
 +Plan 3.0:
 +{{ :autop3.png |}}
  
 **Normal mode:** for every packet the GUI will send a Read request, and the circuit will send a Reply packet. If you are streaming at 100Hz, it means that you'll be sending Read packets every 10ms, and receiving replies shortly after. The packet rate will be 200/s. **Normal mode:** for every packet the GUI will send a Read request, and the circuit will send a Reply packet. If you are streaming at 100Hz, it means that you'll be sending Read packets every 10ms, and receiving replies shortly after. The packet rate will be 200/s.
Line 35: Line 39:
  
 Using Normal mode at speeds above 30Hz while on Bluetooth can lead to communication crashes. Always use Auto and you'll be able to reliably stream at 200Hz. Using Normal mode at speeds above 30Hz while on Bluetooth can lead to communication crashes. Always use Auto and you'll be able to reliably stream at 200Hz.
 +
 +After you open the COM port we recommend that you wait 10-15s before starting to stream at high-speeds.
  
 ==== Troubleshooting ==== ==== Troubleshooting ====
Line 51: Line 57:
     * Make sure that you are not confusing two things by reading the [[commandsAndOffsets|Commands and Offsets]] page.     * Make sure that you are not confusing two things by reading the [[commandsAndOffsets|Commands and Offsets]] page.
     * Make sure that your module is configured.     * Make sure that your module is configured.
 +    * After you open the COM port we recommend that you wait 10-15s before starting to stream at high-speeds.
bluetoothconnect.txt ยท Last modified: 2019/01/18 13:00 by jfduval