Search found 12 matches

by MaFr
Tue Mar 24, 2020 8:59 pm
Forum: ESP32 boards
Topic: ESP32 : Sending String via Bluetooth
Replies: 9
Views: 7238

Re: ESP32 : Sending String via Bluetooth

Nope...I tried the following code declared in my main.py:

Code: Select all

import esp
esp.osdebug(None)
The string sending part is in a separate class.

The debug messages still appear...
by MaFr
Tue Feb 11, 2020 4:34 pm
Forum: ESP32 boards
Topic: ESP32 : Sending String via Bluetooth
Replies: 9
Views: 7238

Re: ESP32 : Sending String via Bluetooth

Nope, on my ESP32 the parameter "esp.LOG_NONE" can not hide those messages mentioned. But, thank you for the hint. Regarding the long payload greater than 20 bytes I can not confirm. I'm working on an application at ESP32, which is reporting to a smartphone. Its a Google Flutter application. Current...
by MaFr
Sun Feb 09, 2020 10:49 am
Forum: ESP32 boards
Topic: ESP32 : Sending String via Bluetooth
Replies: 9
Views: 7238

Re: ESP32 : Sending String via Bluetooth

In the documentation I found the following information: Characteristics and descriptors have a default maximum size of 20 bytes. Anything written to them by a central will be truncated to this length. However, any local write will increase the maximum size, so if you want to allow larger writes from...
by MaFr
Sat Feb 08, 2020 7:22 pm
Forum: ESP32 boards
Topic: ESP32 : Sending String via Bluetooth
Replies: 9
Views: 7238

Re: GATT procedure initiated: notify; att_handle=13

I updated my send function in the meanwhile as follows: def send(self, d): self._ble.gatts_set_buffer(self._handle, 1000) p = str.encode(d) for conn_handle in self._connections: # Notify connected centrals to issue a read. self._ble.gatts_notify(conn_handle, self._handle, p) time.sleep_ms(10) With t...
by MaFr
Sat Feb 08, 2020 1:21 pm
Forum: ESP32 boards
Topic: ESP32 : Sending String via Bluetooth
Replies: 9
Views: 7238

ESP32 : Sending String via Bluetooth

I use the bluetooth to send a string: def send(self, d): self._ble.gatts_set_buffer(self._handle, 10000) dp = chr(2) + d + chr(3) p = str.encode(dp) for c in p: packet = struct.pack('<h', c) self._ble.gatts_write(self._handle, packet) for conn_handle in self._connections: # Notify connected centrals...
by MaFr
Mon Feb 03, 2020 9:09 pm
Forum: ESP32 boards
Topic: UART inverted
Replies: 13
Views: 8912

Re: UART inverted

Yep, it works like a charm :-) So, I have tested in non-inverted mode only and its working correctly.
Thank you so much again for your fantastic help. Keep your project up. Its a really great fun.
by MaFr
Mon Feb 03, 2020 8:36 pm
Forum: ESP32 boards
Topic: UART inverted
Replies: 13
Views: 8912

Re: UART inverted

Awesome!

Well, I have this one:
ESP Huzzah32 Feather
https://www.adafruit.com/product/3405
They say it has 4MB of SPI Flash

Is this the information you are looking for?

Would be great if you could prepare the image for me.
Im really happy...Thanks again.
by MaFr
Mon Feb 03, 2020 8:27 pm
Forum: ESP32 boards
Topic: UART inverted
Replies: 13
Views: 8912

Re: UART inverted

Wow, thank you so much....well, then I will be looking forward for the upcoming version...As soon as the bin gets available, I will test it and report if working fine...

THANK YOU SO MUCH FOR YOUR HELP 👍

Have a nice evening.....
by MaFr
Mon Feb 03, 2020 6:19 pm
Forum: ESP32 boards
Topic: UART inverted
Replies: 13
Views: 8912

Re: UART inverted

Thanks for letting me know...Yeah, I would like to try to change it, but I'm afraid I would need some more information to actually do it. Do you mean to look for this file at https://github.com/micropython/micropython, change it and build it from source?
by MaFr
Mon Feb 03, 2020 4:43 pm
Forum: ESP32 boards
Topic: UART inverted
Replies: 13
Views: 8912

Re: UART inverted

I noticed at my ESP32 that the RTS pin is not changing it's level. At the moment I use the following command and I would expect the RTS level to fall to low before TX is sending. I can see TX sending, but RTS stays high all the time. uart.init(921600, bits=8, stop=1, parity=None, rx=rx, tx=tx, cts=c...