Xinyuan-LilyGO / LilyGO-T-SIM7000G

LilyGO T-SIM7000G
https://pt.aliexpress.com/item/4000542688096.html
298 stars 129 forks source link

read battery voltage when usb connected for code debugging #128

Closed tradexsrl closed 3 years ago

tradexsrl commented 3 years ago

Hi , i have read the battery voltage from IO35 is not possible when the usb is connected to a pc but what about when you are debugging your code into arduino ide or platformio and needs to do some serial.print? is also impratical to implement some mqtt to send that value , then load the sketch , then disconnect and see what happend...and repeat...if somethings goes wrong into the gprs/mqtt part you are stuck with more doubt than before

procopio commented 3 years ago

Never tried but you can read the battery from SIM7000 using AT commands.

LilyGO commented 3 years ago

Heelo .You might want to try usB-to-serial . Connect to GND, TX, and RX

tradexsrl commented 3 years ago

Hi , @LilyGO , can you explain better?

LilyGO commented 3 years ago

USB to TTL

tradexsrl commented 3 years ago

@LilyGO , sorry but i don't understand....can you elaborate? where i need to connect gnd - tx - rx to the board ? and then what i need to write in the sketch? at what speed ? etc etc

LilyGO commented 3 years ago

Perhaps a Google search would help you understand the tool?

tradexsrl commented 3 years ago

thank you for the clever reply.... ;-) i can do it but how you think i can find the specific explanation for this board and step by step instruction ? this is why i'm asking directly to the Lilygo Factory....

LilyGO commented 3 years ago

The default serial port is 115200, you only need to open the serial port is correctly configured, just like you use USB cable.