Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can I use it with pi-zero ? I have SIM7600G-H 4G HAT (B) #12

Open
SmartTransp opened this issue Oct 19, 2021 · 3 comments
Open

can I use it with pi-zero ? I have SIM7600G-H 4G HAT (B) #12

SmartTransp opened this issue Oct 19, 2021 · 3 comments

Comments

@SmartTransp
Copy link

SmartTransp commented Oct 19, 2021

Hello,
wanted to know if I can use it on pi-zero ?
because I'm trying to get GPS data only

from gsmHat import GSMHat, SMS, GPS

try:
    gsm = GSMHat('/dev/ttyS0', 115200)
except Exception as e :
    print (e)
else:
    try:
         GPSObj = gsm.GetActualGPS()
    except Exception as e :
         print (e)
    else:
         print('GNSS_status: %s' % str(GPSObj.GNSS_status))
         print('Fix_status: %s' % str(GPSObj.Fix_status))
         print('UTC: %s' % str(GPSObj.UTC))
         print('Latitude: %s' % str(GPSObj.Latitude))
         print('Longitude: %s' % str(GPSObj.Longitude))
         print('Altitude: %s' % str(GPSObj.Altitude))
         print('Speed: %s' % str(GPSObj.Speed))

and I get error

    raise Exception('Could not determine Jetson model')
Exception: Could not determine Jetson model

the modem is connect to the internet without any problem (so the modem is working)

I'm able to "talk" to the modem using :

minicom -D /dev/ttyUSB2


Thanks,

@smartroad
Copy link

I am using it on a Pi Zero at the moment, I'm not using try when I start the hat, just calling gsm = GSMHat('/dev/ttyS0', 115200). Although I am using the SMS side, I am also not putting the calls for send/recieve SMS in a try condition.

@SmartTransp
Copy link
Author

Not working
same error

@GaWr26
Copy link

GaWr26 commented May 28, 2022

Did anybody get this working on a SIM7000? Is there an alternative?
Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants