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