Open autonomouscitizen opened 2 months ago
Hello, hope this message finds you well. Congrats to your first Issue! We will review it as soon as possiable. Feel free to have a look at https://www.amebaiot.com/en/ameba-arduino-summary/ for more information
This issue is stale because it has been open for 14 days with no activity.
Boards
BW16
External Hardware
Teensy 4.1 communication via UART
Hardware Configuration
nothing else attached to BW16
Version
latest dev (checkout manually)
IDE Name
Arudino IDE 2.32.
Operating System
Windows 10
Auto Flash Mode
Disable
Erase All Flash Memory (4MB)
Disable
Standard Lib
Arduino_STD_PRINTF
Upload Speed
1500000
Description
The basic mqtt example sketch works as expected. Software serial communication between Teensy 4.1 and BW16 works as expected. However, the two do not work in combination. When trying to implement software serial communication between Teensy 4.1 and BW16 in the loop() function, the mqtt functionality experiences hangups that are not resolvable. Sometimes readouts on the serial monitor will suddenly stop, with no error messages printed. All functionality of the device also stops. Other times there occurs an infinite loop in which I get the readouts; “[INFO] Create socket successfully” and then “[ERROR] Connect to server failed” then [INFO] [ard_socket.c][send_data] err = 0" “failed, rc = 4” and repeats this cycle infinitely.
This does not occur if I remove the software serial communication portion of the code. I tried to implement a watchdog system reset when the reconnect() function fails to connect, however it appears that the watchdog functionality does not execute. Thus the device frequently enters a non-functioning state that can only be resolved with a physical reset, which renders this device completely useless for operation in a remote location.
this problem was detected earlier and reported as "closed" despite the issue still occurring: https://github.com/ambiot/ambd_arduino/issues/75
Sketch
Error/Debug Message
Reproduce remarks
No response
I have checked online documentation, FAQ, GitHub Wiki and existing/closed issues.