Jump to content

Sensor data logging error when connecting through WIFI extension


wengzh

Recommended Posts

I am using "1 x Master brick + 1 x WIFI extension 2.0 + 1 x humidity 2.0 sensor" to collect environmental data in a research project pilot study. They all connect properly and I can see real-time data being updated on the Brick Viewer interface.

 

However When I try to log the data into a csv file, the following error always occurs repeatedly:

"Did not receive response for function *... in time (-1)"

I have tried different time-steps (from 10 miliseconds to 5 seconds), and on different PCs and MACs, and the same error remains.

 

If I am connecting the Master Brick directly with a USB, then the error disapears, so presumably this error is caused by unstable data-exchange with the WIFI extension?

 

Any insight on this error would be very much appreciated!

logger_data_WIFI.csv

Link zu diesem Kommentar
Share on other sites

Thank you very much for getting back to me.

 

I am using the Brick Viewer at the moment, and the Brick logger for logging the data.

 

Please find attached another datasheet where the data were set to be logged every 10 milisecond, and this error can occur multiple times in one second.

 

P.S. I use a USB cable connecting to another PC to power the stack (1 x Master Brick + 1 WIFI Extension 2.0 + 1 Humidity 2.0), would that cause any problem?

logger_data_WIFI_per_10_ms.csv

Link zu diesem Kommentar
Share on other sites

P.S. I use a USB cable connecting to another PC to power the stack (1 x Master Brick + 1 WIFI Extension 2.0 + 1 Humidity 2.0), would that cause any problem?

 

You can use the USB cable to power it, but you can't open the Brick Viewer or run another program on you PC that uses the USB connection. The Brick internally does a routing of the messages (routing to WIFI or USB or into the stack etc). It can't route to two outgoing connections. So if you communicate through USB and through WIFI, this may cause this problem.

Link zu diesem Kommentar
Share on other sites

Thank you very much for the update! I've checked my wifi status, and there seems to be an issue with my Client mode connection (Please see attached image). The signal strength is very different from yours.

 

I then set the connection mode to Access Point only, and the data logging error disappears.

 

We might need to build a network of sensors in a large number of rooms and send data using a WIFI mesh or an alternative option to a database server, would the issue with the Client mode be a problem in this case?

wengzh_WIFI_status.thumb.png.37390198ad1e1cd475e1d951f62dbda5.png

Link zu diesem Kommentar
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Gast
Reply to this topic...

×   Du hast formatierten Text eingefügt.   Formatierung jetzt entfernen

  Only 75 emoji are allowed.

×   Dein Link wurde automatisch eingebettet.   Einbetten rückgängig machen und als Link darstellen

×   Dein vorheriger Inhalt wurde wiederhergestellt.   Clear editor

×   Du kannst Bilder nicht direkt einfügen. Lade Bilder hoch oder lade sie von einer URL.

×
×
  • Neu erstellen...