xinyuan-lilygo / lilygo-t-a76xx Goto Github PK
View Code? Open in Web Editor NEWLilyGo A7670 A7608 SIM7672 series
License: MIT License
LilyGo A7670 A7608 SIM7672 series
License: MIT License
Hi,
I am new with Arduino, I have the board A7670 v1.2, and I would like to test the GPS, but I can't use internet examples, can you upload a GPS example in the repo?
Thanks.
I'm following the most publications of new GSM / LTE form LilyGo and waiting still for a really low power board in deep sleep (< 20 uA). The combination of (optinal) Wifi, GSM / LTE with solar charging IC is a often wished use case and you can see less boards on this sector. So I'm happy that LilyGo develops a bunch of boards here. The only thing I'm missing here is really a low deep sleep power consumption.
Are there numbers for the A7670x board in deep sleep? LilyGo's T-Call SIM800 has arround 500 uA and the T-SIM SIM7000G 250 uA as far as I remember.
When I run /examples/new_version/Arduino/HttpsClient/HttpsClient.ino
it sends a http request to port 443, The plain HTTP request was sent to HTTPS port
[4667] Wait...
[7668] Initializing modem...
[7668] ### TinyGSM Version: 0.11.5
[7668] ### TinyGSM Compiled Module: TinyGsmClientSIM7600
[12326] ### Modem: AT
[12326] ### Modem: AT
[22452] ### Unhandled: SMS DONE
+CGEV: EPS PDN ACT 1
[22452] setNetworkMode faill
[22457] ### Modem: A7670E-LASE
[22457] Modem Name: A7670E-LASE
[22484] Modem Info: Manufacturer: INCORPORATED Model: A7670E-LASE Revision: A7670M7_V1.11.1 IMEI: 862205052859719 +GCAP: +CGSM,+FCLASS,+DS
Waiting for network... success
Network connected
Connecting to YourAPN success
GPRS connected
Performing HTTPS GET request... Response status code: 400
Response Headers:
Server : nginx/1.10.3 (Ubuntu)
Date : Sun, 15 Jan 2023 01:04:22 GMT
Content-Type : text/html
Content-Length : 280
Connection : close
Content length is: 280
Response:
<html>
<head><title>400 The plain HTTP request was sent to HTTPS port</title></head>
<body bgcolor="white">
<center><h1>400 Bad Request</h1></center>
<center>The plain HTTP request was sent to HTTPS port</center>
<hr><center>nginx/1.10.3 (Ubuntu)</center>
</body>
</html>
Body length is: 280
Server disconnected
GPRS disconnected
Can you fix the example?
Hello.
Can you tell me how to get the values from the solar panel?
Reading the battery voltage using ADC Channel 7/GPIO35 does not work as expected. The value read is always the same although the battery voltage level drops. The module is not powered via USB, it runs only on battery.
Could you please post ESP IDF sample code that demonstrates how the battery voltage should be retrieved? My code works fine with TTGO SIM7000G, but does not work with A7670E. Any idea what differences between TTGO SIM7000G and A7670E could be causing that? Does the level of GPIO 12 matter when using GPIO 35 for reading the battery voltage?
Thanks!
I bought a litle [T-A7670X] and do project success. but i have big problem
I bought this board and did some testing. The sd card and gprs feature are working but all my other devices are showing they can't get gps signal where they are working. I'm just running the demo code and I keep getting a blank gps signal message. I need help on this.
I could not get results with a different antenna with a long cable.
I have tried to store values in flash but the preferences lib seems to be not working on this board.
Is there any work around?
Hello,
Is it possible to / how to :
Are there any codes for this please?
Thanks for helping ;)
There is an update instruction for LilyGo-T-Call-SIM800. Is it suitable for this board?
https://github.com/Xinyuan-LilyGO/LilyGo-T-Call-SIM800/blob/master/doc/How%20to%20update%20firmware.md
Hi all, this might be a noob question,
but how to completely cut the power from the modem before going into deep sleep?
Currently I am sending the power off command to the modem, but as told in the examples, I should also use BAT_EN pin to make
sure the modem stays off. However I am not sure what to do.
Do I need a pull-down resistor to keep the pin low when in deep sleep?
Thanks in advance
My code is using deep sleep and it was working fine for couple of weeks.
But now my device freezes when working on battery.
Sometimes it wakes up, but more often it stuck in this state till I make restart (and/or plug external power).
During those freezes device is making some weird beeping sound.
There is a link to the video: https://drive.google.com/file/d/1E8bzVIb1ksJ1RlMGsdOGy981ow-VHJOF/view?usp=sharing
I hope it will be hearable when the make it a little bit louder.
I found the source for the sim7000.
https://github.com/onlinegill/LILYGO-TTGO-T-SIM7000G-ESP32-Traccar-GPS-tracker
But I can't modify the source to use this for the a7670x.
Please modify it so that it can be used for the a7670.
I would like to know if this combination is possible?
If it is should I order "a standard Lora Shield (https://www.lilygo.cc/products/ttgo-accessories-shield-lora-868-915-mhz)?
I have one spare T-Higrow Lora Shield (http://www.lilygo.cn/prod_view.aspx?TypeId=50060&Id=1309&FId=t3:50060:3) and trying to make it work but no luck. I can't find RST and DI0 pins on the T-Higrow Lora.
Thanks in advance
Hi,
I'm testing the device as a controller for door sensor.
I would like to wake up the device from the deep sleep using esp_sleep_enable_ext0_wakeup
.
But my problem is the the device is waken up immediately after going to sleep, without any state change on my pin.
I was eliminating line by line from examples/new_version/platformio/src/main.cpp
code and I've tracked the piece of code that is causing this behaviour:
pinMode(PWR_PIN, OUTPUT);
digitalWrite(PWR_PIN, LOW);
delay(100);
digitalWrite(PWR_PIN, HIGH);
delay(1000);
digitalWrite(PWR_PIN, LOW);
Can you explain to me what is the purpose of those lines of code?
Is hard to me to understand it. Sorry for that, I'm still learning.
Thanks in advance.
I have the latest board version V1.1 of date 2022-5-22 which will NOT power up using the battery switch. I have 30 of these boards :-( Battery fully charged at 4.12v however boards seems to work using usb. Although some issue with modem turning on then off again.
I can't seem to understand how BAT_EN (IO12) works. I have a board versioned 2022-5-22 V1.1. Can you explain?
Both do nothing at all, battery is controlled only with switch:
pinMode(BAT_EN, OUTPUT);
digitalWrite(BAT_EN, LOW);
same for
pinMode(BAT_EN, OUTPUT);
digitalWrite(BAT_EN, HIGH);
Hello
I am testing the gps and getting back strange Lat and Lot values:
at:-0.133333 lon:-0.000000
lat:-0.133333 lon:-0.000000
lat:-0.133333 lon:-0.000000
lat:-0.133333 lon:-0.000000
lat:-0.133333 lon:-0.000000
lat:-0.133333 lon:-0.000000
lat:-0.133333 lon:-0.000000
lat:-0.133333 lon:-0.000000
lat:-0.133333 lon:-0.000000
lat:-0.133333 lon:-0.000000
lat:-0.133333 lon:-0.000000
lat:-0.133333 lon:-0.000000
lat:-0.133333 lon:-0.000000
lat:-0.133333 lon:-0.000000
lat:-0.133333 lon:-0.000000
lat:-0.150000 lon:-0.000000
lat:-0.150000 lon:-0.000000
lat:-0.150000 lon:-0.000000
lat:-0.150000 lon:-0.000000
lat:-0.150000 lon:-0.000000
lat:-0.150000 lon:-0.000000
lat:-0.150000 lon:-0.000000
lat:-0.150000 lon:-0.000000
lat:-0.150000 lon:-0.000000
lat:-0.150000 lon:-0.000000
lat:-0.150000 lon:-0.000000
lat:-0.150000 lon:-0.000000
what is the unit?
Best Regards
I have a nasty problem with A7670E resetting each time ESP32 WROVER-E exits deep sleep. My program flow is the following:
Is there a way to avoid that? The previous version of this board did not have GPIO5 connected to A7670's RST.
If there is no SD card inserted, can the SD card IO pins be used for other purposes?
Hello , So I have the module T-SIM-A7670-R2 (A7670SA R2 With GPS) I am using Arduino to program.
I able to connect to the network but I couldn't get the GPS to work.
AT+CGNSSINFO
+CGNSSINFO: ,,,,,,,,
thank you so much
Hello, thanks for these great boards. Is it possible to recharge the 18650 battery directly via the board by plugging in 5V usb-c or do I need to remove the battery and recharge externally?
Thanks
Hi, I would like to put the board in deep sleep, I've tried turning off the modem with the AT+CPOF
AT command (naturally I've set the esp32 in hibernation mode) but the total consumption is around 66mA and not the 0.18mA you indicated. Can I have some sort of code to put the entire board in sleep mode reaching the current consumption you mentioned?
Thank you.
Using the supplied firmware that came with the board and trying different SD cards using FAT, FAT32 I am not able to get it to work.
Even when trying SD firmware that works well on the LilyGo SIM7000G I get the same results on this board. I have double checked the CS, MISO, MOSI and CLK wires but to no avail. There are definitely issues with these boards.
https://github.com/Xinyuan-LilyGO/LilyGO-T-A7670X/tree/main/frimware
frimware should be firmware
Could you please provide this schematic of this board model?
Hi, I've just bought this board (in Jan 2023) because battery voltage can be read, the version I got (directly from LilyGo via aliexpress) is 2022-2-28 V1.1
. The pinout on the product page clearly shows that battery voltage can be read (see image below) yet #19 says that only 2022-7-28 V1.2
can read the voltage.
The board I received doesn't have the functionality of the product I ordered, can you send me one that does have this functionality? How can I get in touch to discuss it?
it ther a code for that , can you help me ?
Hello,
I've just ordered one of these boards.
I found the schematic in this repo, but it took me a while to find a Simcom hardware datasheet that matches up with it.
(The A7670 Series_Hardware Design_V1.03.pdf has a different number of pins!)
I've attached one that I think is correct, you may wish to add it to this repo.
Hi,
a schematic or similar documentation of the board (A7670 V 1.1. 2022-2-28) would be very helpful!
I just finished the design of some interface electronic to the board and now I've found that GPIO5
is connected to the modem's reset, which is not documented anywhere as far as I can tell.
So I have to re-design my wiring or de-solder a resistor on the board as stated here
That's pretty annoying...
So please publish a schematic. This could prevent a lot of painful debugging...
Thanks in advance!
Hello,
Is there any code example about receive call/sms?
Thanks
What board needs to be selected for LILYGO® TTGO T-SIM-A7670E?
I followed these instructions to get a list of ESP32 boards:
Getting this error with ESP32 Dev Module:
Arduino: 1.8.16 (Mac OS X), Board: "ESP32 Dev Module, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, None"
Sketch uses 261370 bytes (19%) of program storage space. Maximum is 1310720 bytes.
Global variables use 14008 bytes (4%) of dynamic memory, leaving 313672 bytes for local variables. Maximum is 327680 bytes.
esptool.py v3.0-dev
Serial port /dev/cu.usbmodem52D50070651
Connecting.......
Chip is ESP32-D0WD (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: ***
Uploading stub...
A fatal error occurred: Failed to write to target RAM (result was 01070000)
A fatal error occurred: Failed to write to target RAM (result was 01070000)
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Hi there,
I do have a A7670E and try to upload a sketch to the ESP32 on Win10 using Arduino.
I've installed the CH9102 which is available from Lilygo here on Github, how ever the Board does not react to uploads.
What to do? Do I have to put the board into upload/flash mode somehow?
The MqttClient example and TinyGsmClient does not work over SSH and port 8883.
For example:
https://github.com/marmotton/TinyGSM/tree/SIM7000SSL
Does not work.
And there is this thread:
Can anybody help me figuring out how do I send a message??
Using Lilygo T-A7670E board, GNSS does not work.
Tried the test method described here: #25
Result:
08:42:42.014 -> $GNGGA,064243.00,,,,,0,00,99.99,,,,,,7F
08:42:42.048 -> $GNGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99,133
08:42:42.117 -> $GNGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99,331
08:42:42.151 -> $GNGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99,230
08:42:42.220 -> $GPGSV,1,1,03,19,,,20,24,,,30,17,,,21,06C
08:42:42.253 -> $GAGSV,1,1,00,$GNRMC,064244.00,V,,,,,,,140423,,,N,V19
So the time is correct (but perhaps that is from the GSM side, as 4G is working) but there is no location.
Tried outside, waited for >1hr so it could get almanac, makes no difference.
Saw a previous ticket about this issue, but the "resolution" there didn't make any sense. Anyhow, I have a hard time getting the GNSS data to be anything other than just:
AT+CGNSSINFO
+CGNSSINFO: ,,,,,,,,
OK
getGPS 86981
AT+CGNSSINFO
+CGNSSINFO: ,,,,,,,,
OK
getGPS 88988
AT+CGNSSINFO
+CGNSSINFO: ,,,,,,,,
OK
Tried two different antennas, tested the connector on the PCB if it was damaged somehow, but nothing seems to work.
I have the unit in my window, and have let it run for more than 30 minutes without a change.
My unit version is "2022-5-22 V1.1 XY--A7670"
Which board works in US with T-mobile?
The schematic of this board mentions pin 100 on the SIM7670 is a PPS signal. I could not find any information that the SIM7670 has a PPS output.
According to the file GPSShield.ino: #define BOARD_GPS_PPS_PIN 23
it's connected to ESP pin 23. Is that correct?
I'm looking for an ESP32 board with a GNSS + PPS.
Can you add the schematics for v1.2 to the repo please.
Thanks
Hi,
I've recently bought this device and I'm pretty happy with all the possibilities it gives me.
I have just one problem which is very annoying and it makes writing and debugging code very hard.
I'm using platformio and this example mainly: https://github.com/Xinyuan-LilyGO/T-A7670X/blob/main/examples/new_version/Arduino/MqttClient/MqttClient.ino
The problem is that device have constant problem connecting to mqtt broker when it's connected to computer and when I'm watching serial monitor.
When I detach the USB cable, reset the device it starting to work well and send metrics over mqtt (I have battery inserted).
Is my approach to program device wrong?
Dear developers,
I would like to add a loRA shield to the T-A7670E and to do that I need standard sets of pins to connect to.
Overall, the project is aiming to collect the data using a loRA shield, store them on an SD card, use GPS location/time, and upload packages via SIM card modem to the server.
What would you suggest which pins could be used on the board that are not already taken?
In particular, I would need something like this (but pins that I can use):
#define pin_ss 5
#define pin_rst 32
#define pin_dio0 34
#define pin_dio1 39
#define pin_mosi 23
#define pin_miso 19
#define pin_sck 18
Thanks in advance!
Hello, i need schematic of this product. any one can help me ?
Hello, I would like to charge the internal battery (18650) of device via usb-c without executing code on the esp. Is this possible?
Thank you
can you share pcb schematics and board files instead of pdf version?
Hi,
I have lots of ESP32 TTGO Lora Modules and want to test this TTGO LILYGO A7670SA now
as per intructions, there is no detail as to what type of board I should declare when importing the project on VSCO
any help?
Hi Dear , Is there an example to test the GPS function?
try to use your AllFunctions/AllFunctions.ino example but there isn't nothing for the GPS can you help me how to test?
thanks
Fabio
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.