Search found 22 matches

by tsjoiner
Sun May 24, 2020 6:13 pm
Forum: ESP32 boards
Topic: ESP32 port + mqtt_as + mbedtls_ssl_handshake error: -77
Replies: 2
Views: 2489

Re: ESP32 port + mqtt_as + mbedtls_ssl_handshake error: -77

Got it. Line 31 in mqtt_as.py seems to effect my connection rate.
_DEFAULT_MS = const(20)

bumping this up to 500 gives closer to 99% successful connection rate.
_DEFAULT_MS = const(500)

Not sure what the downside will be, however.
by tsjoiner
Sun May 24, 2020 5:00 pm
Forum: ESP32 boards
Topic: ESP32 port + mqtt_as + mbedtls_ssl_handshake error: -77
Replies: 2
Views: 2489

Re: ESP32 port + mqtt_as + mbedtls_ssl_handshake error: -77

More tests using these firmware: esp32-idf3-20200522-unstable-v1.12-464-gcae77daf0.bin esp32-idf3-20200516-unstable-v1.12-462-gcd9a8c174.bin esp32-idf3-20200511-unstable-v1.12-450-gc9611b280.bin More tests using these boards: Lolin D32 Pro V2.0 (Wrover) ESP32-PICO-KIT_V4.1 Connection is made every t...
by tsjoiner
Sat May 23, 2020 3:24 pm
Forum: ESP32 boards
Topic: ESP32 port + mqtt_as + mbedtls_ssl_handshake error: -77
Replies: 2
Views: 2489

ESP32 port + mqtt_as + mbedtls_ssl_handshake error: -77

I am taking Peter Hinche's mqtt_as.py for a test drive. It works like a champ and stays connected for many hours. Trouble is, connections succeed only 1/10 times or so. Mostly I get this: Checking WiFi integrity. Got reliable connection Connecting to broker. mbedtls_ssl_handshake error: -77 Tracebac...
by tsjoiner
Sat Mar 02, 2019 12:46 am
Forum: General Discussion and Questions
Topic: mqtt with tls - problem subscribing
Replies: 1
Views: 2088

mqtt with tls - problem subscribing

Trying to track down some weirdness implementing umqtt with ssl enabled. I have a simple program to test umqtt and with basic user:password compared to user:password with ssl=True. Without ssl I can publish and subscribe no problem. However, when ssl is enabled, publish works fine but subscribe only...
by tsjoiner
Sat Sep 29, 2018 12:49 pm
Forum: Programs, Libraries and Tools
Topic: rshell and Geany
Replies: 2
Views: 2706

Re: rshell and Geany

Good solution - does what I need and reminds me to think outside the box.
Thank you :D
by tsjoiner
Sat Sep 29, 2018 1:44 am
Forum: Programs, Libraries and Tools
Topic: rshell and Geany
Replies: 2
Views: 2706

rshell and Geany

I am testing various non-default editors with rshell. Nano and Leafpad open edit and save no problem. Geany is giving me some trouble. If I use the --editor geany option when invoking rshell I can edit and save to the temporary file. If an instance of Geany is already open then I am unable to save t...
by tsjoiner
Thu Jul 05, 2018 2:09 pm
Forum: MicroPython pyboard
Topic: Pyboard - UART to UART pass through for Nextion
Replies: 4
Views: 4291

Re: Pyboard - UART to UART pass through for Nextion

Success - I can now communicate remotely with my Pyboard and Nextion display (ESP8266 controls communications, as well a few i/o pins on Pyboard including reset). The Pyboard can boot up in one of two ways: Dupterm enabled or UART to UART pass through enabled. # boot.py -- run on boot-up # i/o A15 s...
by tsjoiner
Mon Jun 25, 2018 6:00 pm
Forum: MicroPython pyboard
Topic: Pyboard - UART to UART pass through for Nextion
Replies: 4
Views: 4291

Re: Pyboard - UART to UART pass through for Nextion

I have exchanged USB for UART as suggested. I am able to send and receive simple messages - like set display brightness or get buttons pressed. My excitement was short lived however. When I try to upload .tft file things hang very quickly. Output: pi@raspberrypi:~ $ python /home/pi/DAPLC_PY/Screen/n...
by tsjoiner
Sat Jun 23, 2018 4:03 pm
Forum: MicroPython pyboard
Topic: Pyboard - UART to UART pass through for Nextion
Replies: 4
Views: 4291

Pyboard - UART to UART pass through for Nextion

Hi, I recently started testing a Nextion TFT display with my pyboard. I am able to send and receive simple instructions through UART(3). A raspberry pi is connected via uos.dupterm(UART(6)) mainly REPL and file transfers. Occasionally new programming -.tft files - need to be uploaded to the display....
by tsjoiner
Wed May 16, 2018 4:32 am
Forum: MicroPython pyboard
Topic: CRC hardware on pyboard
Replies: 9
Views: 9700

Re: CRC hardware on pyboard

Just ran:
>>> import ubinascii
>>> ubinascii.crc32('Test\n')

on Pyboard 1.1:
MicroPython v1.9.3-558-ga60efa82 on 2018-04-23; PYBv1.1 with STM32F405RG

got:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'crc32'