Skip to content

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

@SmartTransp

Description

@SmartTransp

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,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions