Xinyuan-LilyGO / LilyGO-T-SIM7000G

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

Platformio example USB Battery data transfer #90

Closed 4gino closed 3 years ago

4gino commented 3 years ago

I'm using the platformio example code, but I' m getting some strange results. When USB Is connected and serial monitor open Data transmission goes well, modem on , signal quality good, data sent, modem off. When I disconnect the USB and power the board with a battery (new and charged to 4.2v) data Is not sent. Probably the signal quality Is worse, or something else but i cannot see It with the serial monitor, because if I connect the USB everything will go well again. Anyone else had the same issue? The Sim7000 receive different type of Power from USB or from battery? Thanks

ejri commented 3 years ago

Yeah, if you check the readme page, there are some issues with the same pins being used for more than one thing at a time. So, you have to make sure to check which pins are being used depending on the connected power source...

4gino commented 3 years ago

Solved, was software related. When used with USB data sent for battery status Is 0. When battery powered the number Is different from 0 and there was a bad code in my new lines. The point Is that i could use serial monitor connecting just tx rx gnd pins, so the battery was the power source, and serial monitor gave me the correct debug.