#modem #cellular #embedded-hal-driver #quectel #bg95

quectel-bg9x-eh-driver

Rust embedded-hal driver for the Quectel BG9X cellular modems

4 releases

0.1.3 Aug 8, 2024
0.1.2 Aug 1, 2024
0.1.1 Jul 23, 2024
0.1.0 Jul 3, 2024

#363 in Embedded development

Download history 123/week @ 2024-07-22 126/week @ 2024-07-29 129/week @ 2024-08-05 10/week @ 2024-08-12 8/week @ 2024-09-16 12/week @ 2024-09-23 5/week @ 2024-09-30

200 downloads per month

MIT license

74KB
1K SLoC

AT Driver for the Quectel BG9X family of modems

This respository contains a driver for the Quectel BG95/BG96 modems. The driver is built on top of the atat crate.

The main features are:

  • Send a PWR_KEY which turns on/off the module by toggling a GPIO
  • Connect to an MQTT broker and publish data
  • Uses LTE-M with fallback to 2G

The crate is available on crates.io.

TODO

  • Remove STD dependencies
  • Make modem user configurable (AT+QCFG commands)

Examples

  • linux-simple: example of interacting with the module connected through a serial converter to a Linux computer. Requires the converter to be /dev/ttyUSB4 and the module to be always on (the PWR_KEY is faked).
    cd examples/linux_simple
    cargo run
    
  • esp32c3_connect_and_send_mqtt: run the example in a board such us Dark Sky Meter Hardware
    cd examples/esp32c3_connect_and_send_mqtt
    cargo run
    

For a more complete example visit Tested with the Dark Sky Meter Firmware.

License

license

This tool is released under the MIT license, hence allowing commercial use of the library. Please refer to the LICENSE file.

Dependencies

~5.5MB
~101K SLoC