quectel-bg9x-eh-driver

Crates.ioquectel-bg9x-eh-driver
lib.rsquectel-bg9x-eh-driver
version0.1.3
sourcesrc
created_at2024-07-03 11:12:11.67247
updated_at2024-08-08 08:54:09.989508
descriptionRust embedded-hal driver for the Quectel BG9X cellular modems
homepagehttps://gitlab.com/scrobotics/embedded-rs/quectel-atat-rs/
repository
max_upload_size
id1290435
size104,059
Xabi Crespo (crespum)

documentation

README

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.

Commit count: 0

cargo fmt