Search found 27 matches
- Thu Sep 16, 2021 12:35 pm
- Forum: General Discussion and Questions
- Topic: Baffled by Bluetooth - Help
- Replies: 20
- Views: 9710
Re: Baffled by Bluetooth - Help
Thanks for this case. I also have the same solution! Is that, also, for an OBDII device? If so, the way that I've had to deal with dropped notifications is to instruct the ELM327 to send notifications with no headers (ATH0) and then use the first character as an index to position that set of conver...
- Thu Sep 09, 2021 12:53 pm
- Forum: General Discussion and Questions
- Topic: How to determine ST7789 pixel color
- Replies: 2
- Views: 1160
Re: How to determine ST7789 pixel color
Many thanks (also for the great port of MP!). So, short answer is - not yet
- Wed Sep 08, 2021 8:45 pm
- Forum: General Discussion and Questions
- Topic: How to determine ST7789 pixel color
- Replies: 2
- Views: 1160
How to determine ST7789 pixel color
This is for @russ_h (Russ Hughes) whose brilliant version of MP for the ST7789 (and ILI9342C) I'm using. There is a method for setting a pixel color but not one (as far as I can see) to determine the color of a pixel. Is it possible to do that? Having a quick look at the C code (which is way beyond ...
- Wed Sep 08, 2021 8:33 pm
- Forum: General Discussion and Questions
- Topic: Baffled by Bluetooth - Help
- Replies: 20
- Views: 9710
Re: Baffled by Bluetooth - Help
After a lot of trial and error using both aioble and basic ubluetooth I have had sufficient success for my purposes. The main problem I experienced (and still experience to an extent) is the processing of multiple notifications. Fundamentally, aioble is not fast enough and basic ble is - just. One p...
- Thu Aug 12, 2021 9:12 am
- Forum: General Discussion and Questions
- Topic: How do I convert a hex substring to int
- Replies: 3
- Views: 1919
Re: How do I convert a hex substring to int
Yes, that has worked for me as well. How simple and obvious these things are when you know! - Thanks
- Wed Aug 11, 2021 10:23 pm
- Forum: General Discussion and Questions
- Topic: How do I convert a hex substring to int
- Replies: 3
- Views: 1919
How do I convert a hex substring to int
I have a hex string: mystr = b'FFF7E7FF704268426803FF380E53131212121312000012BB01BA3300008200016D9E00016C790000865D00008206003723630D016E0271027103E8' and want to get the int value of mystr[44:46] - it should come to 18 In python I would do int(mystr[44:46],base=16) but that doesn't work in MP. I've...
- Wed Aug 04, 2021 10:14 pm
- Forum: General Discussion and Questions
- Topic: How to change BLE Connection interval
- Replies: 2
- Views: 1442
Re: How to change BLE Connection interval
Thanks for this. I've found .../modbluetooth_nimble.c but can't (yet) find where the constants are set. However, at this stage, recompiling MP is probably beyond me and so I'll explore other options first
- Wed Aug 04, 2021 3:58 pm
- Forum: ESP32 boards
- Topic: Help with AIOBLE
- Replies: 2
- Views: 4345
Re: Help with AIOBLE
Yes! Thanks. That and having on the server have sorted the problem.
Code: Select all
await obd_rwn.written()
- Mon Aug 02, 2021 3:50 pm
- Forum: General Discussion and Questions
- Topic: How to change BLE Connection interval
- Replies: 2
- Views: 1442
How to change BLE Connection interval
The MP 1.16 uBluetooth document lists an irq connection update event elif event == _IRQ_CONNECTION_UPDATE: # The remote device has updated connection parameters. conn_handle, conn_interval, conn_latency, supervision_timeout, status = data Is there any way (preferably using aioble) that I can change ...
- Fri Jul 23, 2021 6:00 pm
- Forum: ESP32 boards
- Topic: Help with AIOBLE
- Replies: 2
- Views: 4345
Help with AIOBLE
I'm trying to develop a BLE client to get data from an OBDII reader. I have an ESP32 client derived from ble_simple_central.py working to an ESP32 peripheral derived from ble_simple_peripheral.py (but which I cannot get to work with the intended OBDII reader). I am now trying to use @jimmo's aioble ...