#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

#316 in Embedded development

Download history 77/week @ 2024-06-27 39/week @ 2024-07-04 103/week @ 2024-07-18 25/week @ 2024-07-25 129/week @ 2024-08-01 128/week @ 2024-08-08 3/week @ 2024-08-15

261 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

~5MB
~98K SLoC