Cannot View Sensor Data Online and iot_monitor code does not provide GPS or sensor data

Unsolved
BoschTT's picture
BoschTT
Junior(0)

 

I have 2 major issues:

1.

I have the IoT Starter Kit 2 with M18Q2FG WNC module. The device connects to the At&T network as I get a stable yellow led light and it also connects to flow as I geta stable Green light. When I press the user button The Green LED changes to white ad then blue showing that the data is being transmitted from the device, However, when I check online I cannot see the data coming in into any of the sites provided. I have tried AMOC link as mentioned in their quicke start guide but no look, It cannot be seen on M2X or the url given during the execution of the code i.e https://api-att.com/devices/ (this page shows me the following error :

{"message":"Not Found","description":"The resource you requested could not be found. Please verify that the correct resource path was provided, or refer to https://m2x.att.com/developer/documentation for complete API documentation."}

Can somebody please help guide me to check where exactly am I supposed to check the transmitted data.

2.

When i run the sample iot_monitor code given with the device, I get a command line interface with mutiple options. However, when i type commands HTS221 (should provide ambient light and humidity values) and GPS command I get no output and get stuck in an infinite loop. The device ID for all the sensor data commands returns as zero as well. I am currently using the new version of the code as provided in link: https://github.com/Avnet/M18QxIotMonitor. Could somebody please provide me assistance with this as well.

 

Really appeciate it.

 

jflynn129's picture
jflynn129
Moderator(3)

1. Please see https://www.element14.com/community/blogs/JimFlynn/2018/09/25/an-overvie...

the AMOC dashboard is AT&T's dashboard and it has been reported that it doesn't always work.  This article (above) shows how to access the data directly on M2X.

2. Be sure to use the code from https://github.com/Avnet/M18QxIotMonitor/releases (version 1.11)

Hopefully, this will resolve your issues.

BoschTT's picture
BoschTT
Junior(0)

Thank you so much! I can finally see the data on m2x.

Although, I still am not able to see the GPS location of the device. Is there a seperate fix to that? Also, the command line version of the output still gives me the same serror when i try to acquire sensor data using command HTS221 5 5

BoschTT's picture
BoschTT
Junior(0)

Thank you so much! I can finally see the data on m2x.

Although, I still am not able to see the GPS location of the device. Is there a seperate fix to that? Also, the command line version of the output still gives me the same serror when i try to acquire sensor data using command HTS221 5 5

jflynn129's picture
jflynn129
Moderator(3)

I suspect that the HTS command isn't working because you are running multiple instances of the iot_monitor. When the device powers up, it automatically runs iot_monitor as part of its startup.  Specifically, it executes the script file run_demo.sh.  Once this runs, it captures the i2c devices and when you run a second instance, it is unable to talk with the i2c devices because the first instance has ownership.  If you want to interact with iot_monitor, you should rename the run_demo.sh file to run_demo.kep (it is at /CUSTAPP/iot/run_demo.sh).  After you rename it, restart the SK2. This should allow you to work interactively with the application.

 

jflynn129's picture
jflynn129
Moderator(3)

PS, you can issue the GPS command from within iot_monitor to see if it is getting the location.  Depending on where you are located it may have problems getting a fix (if you are in a building with no visible access to outside). for the GPS to work, you will need to be able to see the Satellites with the GPS antenna.

BoschTT's picture
BoschTT
Junior(0)

Hello,

I have tried both methods but still have no luck with the GPS location. I am currently working in a building but I am sitting close to a window so I'm not sure if it is because of where I am located. Could there be any other reason why this may be happening?

 

jflynn129's picture
jflynn129
Moderator(3)

What is the response to the GPS command from within iot_monitor?

BoschTT's picture
BoschTT
Junior(0)

It Goes into an infinite loop and displays In Progess on new line