-
Notifications
You must be signed in to change notification settings - Fork 709
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[M590] LIbrary not working on ESP32 #91
Comments
The problem seems to be related to the implementation of HardwareSerial for ESP32. With the most recent git state, things seems to be better (see also espressif/arduino-esp32#665) EDIT: Even though, some more things seem to work (i.e. sending commands from my own code), the library still does not work - it seems as if it does not receive the answers from the module. Both modules, connected to an ESP8266 with SoftwareSerial --> Working without any problems... So it seems to have something to do with the ESP32's Serial implementation... |
I'll re-check this once I get some spare time. Thanks! |
Looks like my issue was unrelated to this maybe, I am using a Adafruit Huzzah 32. I switched to using UART1 (2nd one). I had to pass the pin numbers and "false" to the begin method call. This works fine now, hope this helps someone else.
Jamie. |
@papawattu I'm facing a similar issue, and trying to understand your solution. If you switched to UART1, does that mean you can no longer use the USB port on your board to monitor the program? Thanks! |
@papawattu , @vshymanskyy , I can confirm that TinyGSM is working flawlessly on my ESP32. and in setup: Edit: I have uploaded my working code here: |
I have a problem with gprs connection in my ESP32. Don't find the modem. WIth AT command's its working. Can someone help me? @abhaysbharadwaj, how did you use? |
I can't connect SIM800L EVB version to my Espressif ESP32-WROOM-32 developer kit. I'm using UART 2 connection (SIM800L TX -> ESP32 TX2, SIM800L RX -> ESP32 RX2, GND is same picture here). I think there is no problem with power supply, I can call to SIM800L, it blinks every 3sec so it's connected to network. I'm using code as was described above:
There is no response from SIM800L. Am I doing something wrong, or is EVB version somehow different from "classic" red SIM800l? |
@vitzaoral |
Hey guys, Have a problem with my ESP32. Using DevKitC V4 with Wrower. Trying to hook up SIM800L. My unit is connected, i can type AT commands through USB-TTL. Light flashes as its connected to the network. My device is defined as serial2 on pins 16, 17. When i start my ESP it cant initialize modem. Tried example sketeches of both TinyGSM and FONA library. Works normally directly through serial on arduino (i short RST to GND) so i know the SIM module is working. #define SerialMon Serial my void setupGSM; My serial monitor output; 0 0 This is my code. Tried different baud rates, inverting RX/TX pins, different UART, ... nothing works. I'm just using the sim800 to trigger relays and send temp and humidity status. I am powering my SIM800L from a outer power supply with 3A max. My wiring is GND->GND; TX->17; RX->16; GND->GND. Tried also rreversing RX/TX. I'm using V2 of the SIM800 (EVB version). I'm a bit depressed allready :) P.S also tried with; |
Was this issue resolved? I'm having the same issue and using UART1 does not solve it. |
@CcKefa @sass00 took me some time to get this working, I'll paste the important parts for reference maybe it helps you as well. I had to instantiate my serial connection to the LTE module as a Also, my LTE module uses 115200 baud rate, so I have passed that in as well, but if you are unclear what baud rate your LTE module uses then use this AT_Debug sketch to try and find that first
Another detail is that I am supplying power to my LTE module via micro usb plugged in to the wall, so the only connection from my ESP32 to the LTE module is 1 GND connection and the TX/RX. I'm not sure about your ESP32 units, but mine does not output 5V power so I had to supply it elsewhere. |
As already described in issue #81, using HardwareSerial on ESP32 does not work with the library.
If transferring the data "manually" in a simple sketch, everything works fine.
With the TinyGSM library, a lot of random characters show up during the communication, rendering all results unusable.
Code used:
The text was updated successfully, but these errors were encountered: