Sending Accelerometer data, and data from other sensors through MQTT

Hi Richardo,

The points you mentioned can be done through the provided on-board c language user app. Please refer to DWM1001 Firmware User Guide for the usage.

  1. To upload IOT data through MQTT.
    In our document: DWM1001 Firmware API Guide, section 5.3.20 - 5.3.21, you can see the ways to send / receive IOT data.
    If you’ve downloaded our online package, you can find an example to send user data through MQTT:
    dwm\examples\dwm-range-iot
    In this example, line 106, dwm_usr_data_write is used to send the IOT data package.

  2. To read from GPIO
    In our document: DWM1001 Firmware API Guide, section 5.3.24 - 5.3.28, you can see the ways to control / read the status of the GPIOs. An example is also included in our example dwm\examples\dwm-api-test
    See line 502 for detailed usage.

  3. To read from I2C
    In our document: DWM1001 Firmware API Guide, section 5.3.41 - 5.3.42, you can see the ways to use the I2C port. An example is also included in our example
    dwm\examples\dwm-api-test
    See line 726 for detailed usage.

  4. Access peripherals through SPI / UART / I2S etc
    In our document: DWM1001 Firmware API Guide, section 3.5.2.2, you can see which peripheral can be used in the user app. Two examples of using the Timer and the UART are included in dwm\examples\

Note: the examples mentioned above refer to the project included in DWM1001_DWM1001-DEV_MDEK1001_Sources_and_Docs_v9\DWM1001\Source_Code\DWM1001_on_board_package\

Best regards,
Weibo

3 Likes