This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Best way to send raw data to computer

Hi,

I'm looking for an easy way to send raw data measured by NRF51822 (as single bytes) to a host computer, without using Nordic dongle. The example project ble_app_uart would be perfect if there was a way to send the data to a computer running windows and not Android/IOS. Does such option exist?

Thanks

Parents Reply Children
  • Describe how you imagine this to work then. Max UART baudrate on nRF51 is 1Mbps which is much more than your data rate through BLE. Why would that be too slow? You can of course use some BLE-capable USB dongle and receive the BLE data directly on PC, but that would not increase your speed and will be much harder to implement on windows. However, that would be more elegant. You can also use some BLE-USB bridge that would introduce itself as HID device on windows. Although, that would be much harder too. You asked for easy solution.

  • I've already implemanted BLE transmitter-receiver system which do exactly that, perfectly, using the PCA10031 dongle. Now im looking for more elegant way to do the same without the dongle. My needs are quit modest - 1kByte per second. For now im using the HID-Mouse example from the SDK with slight changes. The code works but the refresh rate is too slow. I will try to change the connection parameters and get back to you.

  • Hi, May be my question here is stupid, but i will ask anyways. Looks like you just want to send RAW data measured by the nRF chip to the computer? where is the BLE part coming into picture here? isn't just using UART peripheral example enough to send measured data to PC by serial port connection?

  • well, UART is a wired communication protocol. It is not possible to send data wireless via UART. Anyway, I found a solution: Using Generic-HID profile from the nordic side, I can send unlimited data to the host computer running Windows10. The incoming data is handled with c and python libraries.

Related