Cant use GPS and LTE module at the same time
-
I have these 2 modules along with the core 2. The LTE module is on pins 14/13, and the gps is on 1/3. LTE module is being powered externally.
https://shop.m5stack.com/products/gps-module
https://shop.m5stack.com/collections/m5-modules/products/com-lte-modulesim7600g?variant=35800524488868When used separately, everything works fine, but when using both at the same time i get this error as soon as i try to initialize them.
File "<string>", line 35, in <module> File "comx/lte.py, line 27, in __init__ File "libs/simcom/common.py", line 164, in ... IndexError: list index out of range -
-
@felmue
just tried, but the same thing happened.One thing i did notice was if i initialize the LTE modem first, i dont get the index out of range error, but only the gps works. All the modem status checks such as get_single_quality() get_network_registration() return false as if it isnt even there.
-
Hello @jkeyser
hmm, I wonder if the code internally uses the same Serial for both devices hence the device which is initialized last 'wins'?
Thanks
Felix -
Hello @jkeyser
BTW: the LTE modem SIM7600G also has a GPS, but you need to add an antenna.
Thanks
Felix
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login