kwindrem / SetupHelper

Helper functions to simplify writing setup scripts that modify VenusOs functionality. The package includes automatic reinstallation of the package after a VenusOs update.
172 stars 18 forks source link

Waveshare SIM7000X NB-IoT HAT #27

Open mukulele opened 2 years ago

mukulele commented 2 years ago

I'd like to add a SIM7000X NB-IoT HAT to your setuphelper. The hardware spec is published here: https://www.waveshare.com/wiki/SIM7000E_NB-IoT_HAT I have installed setuphelper, the module is recognized out-of-the-box in Venus OS large 2.90 with vendor ID 1e0e:9001. The device is displayed in the remote console as "Device List / Settings / GPS " and "Device List / Settings / GSM - Modem". So far so good.

1/ GPS By issuing a "/bin/echo -n -e "AT+CGNSPWR=1\r\n" > /dev/ttyUSB2" in the root shell, I get the GPS-out data into the Venus gps-dbus/remote console. Can you / how do I add this to to your script?

2/ What do yo recommend regarding the LTE Cat-M functionality? Is GSM - Modem appropriate or should I better add a new device class?

I confirm the CAT-M connection is working with a 1nce SIM card by issuing a series of AT commands (documented on 1nce website) or via libqmi (qualcomm msm interface) on Raspi OS ver. buster and bullseye.

kwindrem commented 2 years ago

I have no experience with GPS or GSM interfaces so I really don't know how this hat could be integrated.

You would probably need to create a service that executes that command you mention either once when the system boots or periodically to update the data.