Maintain serial port connection (new to BLE dev) #493
Replies: 2 comments 7 replies
-
If you are getting manufacturer information from the device, then you should be good to go as far as the install is concerned. Perhaps a simpler example to start with would be trying get_services.py or service_explorer.py. If you are still having trouble connecting with those, the next step is to enable debug logging to try to see what is going on. It depends on the specific device you are using if you need to pair or not before using it. If it uses secure/encrypted communication, then you need to pair, otherwise you don't need to. |
Beta Was this translation helpful? Give feedback.
-
The UUIDs for TX and RX seemed to be switched from what I find in the documentation here: https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk51.v9.0.0%2Fble_sdk_app_nus_eval.html |
Beta Was this translation helpful? Give feedback.
-
I'm struggling to understand many aspects of this code, as I'm new to development (and BLE). I'm a data analyst who has been tasked with establishing a BLE serial port connection for another program to use.
I have looked at the uart_service example, but it doesn't seem to be doing what I need (and I can't get it to run, possibly because I'm still using Python 3.9). Even with 3.9, I have successfully scanned devices and extracted manufacturer information that I need as well as mac address. I just can't find the code to establish a connection with one of those services and keep it there while another program does its thing.
I looked through the documentation, but I have trouble following how to correctly use many of the features. For example, I see there is an option to 'pair' a device, but is this necessary to use a service such as uart? So far I have seen no examples that even use 'pair'. Any and all help would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions