data parsing with time error

Development questions: create new plugins, add new features...
Post Reply
Happy_code
Posts: 17
Joined: Wed Jul 17, 2019 12:35 pm
Company: Stockholm University

data parsing with time error

Post by Happy_code » Wed Aug 07, 2019 3:39 pm

hello,

I connect Smart water Xtrme 868 to meshlium;

Before thed ate in Meshlium is 3 hours slower than my local time. Then the time is set up by my current time locally via System --> Time Synchronization. Then restart the Meshlium.

But now, the problem is when data is parsed in Meshlium, it is always two hours slower, regardless the data is just generated by the sensors.

I tried to fetch RTC via meshlium but it just fails without reason. BTW, this Meshlium is in newest version, pluss all the 4G roaming test with this meshlium is failed, even though it is brandly new.

Thank you!

Best Regards,

libelium-dev
Posts: 27967
Joined: Mon Sep 28, 2009 1:06 pm

Re: data parsing with time error

Post by libelium-dev » Thu Aug 08, 2019 7:49 am

Hi,

The timestamps of the frames received in Meshlium are always in UTC time to avoid inconsistencies as explained in page 59 of the technical guide.
http://www.libelium.com/downloads/docum ... _guide.pdf

Please share with us more information about the RTC synchronization with Meshium and the 4G connection in order to help you to solve the issue.

Regards

Happy_code
Posts: 17
Joined: Wed Jul 17, 2019 12:35 pm
Company: Stockholm University

Re: data parsing with time error

Post by Happy_code » Thu Aug 08, 2019 11:30 am

Hello,

Thank you for the information.

Is there anyway to change the UTC time to other time zone? I can see the Meshlium can do it by system setting options.

regarding the RTC error, we are using smart water extreme 868 LP to communicate with Meshlium:
(1) we tried with the factory_default_code. looks correct with the RTC module.
(2) what we did for fetching time from Meshlium:
uint8_t time_error;
RTC.ON();
xbee868LP.ON();
time_error = xbee868LP.setRTCfromMeshlium(RX_ADDRESS);
if( time_error == 0 )
{
USB.print(F("SET RTC ok. "));
}
else
{
USB.print(F("SET RTC error. "));
} ;

But it simply returns "SET RTC error."

libelium-dev
Posts: 27967
Joined: Mon Sep 28, 2009 1:06 pm

Re: data parsing with time error

Post by libelium-dev » Thu Aug 08, 2019 2:46 pm

Hi,

As we already said the timestamps of the frames received in Meshlium are always in UTC time to avoid inconsistencies and can't be modified. You can add the time of the RTC of the Waspmote in a frame field.

Regarding the RTC synchronization please check the 868 antennas are installed correctly in both devices, then run the configuration example of the module to set the same parameters as the Xbee of the Meshlium.
http://www.libelium.com/development/was ... arameters/

Finally, run the example code for RTC synchronization with Mehslium,
http://www.libelium.com/development/was ... -meshlium/

If it's still not working please share with us the Xbee configuration of the Meshlium and the output of the codes.

Regards.

Happy_code
Posts: 17
Joined: Wed Jul 17, 2019 12:35 pm
Company: Stockholm University

Re: data parsing with time error

Post by Happy_code » Thu Aug 08, 2019 3:35 pm

Thank you for the reply! we only received one 868 antennas in the package we have, which is on the right side. I see there are two 868 antennas in the picture of manual book. Is that correct?

libelium-dev
Posts: 27967
Joined: Mon Sep 28, 2009 1:06 pm

Re: data parsing with time error

Post by libelium-dev » Fri Aug 09, 2019 7:28 am

Are you talking about the Meshlium or the P&S!

Please share with us some images of your devices set up and test with the codes as we explained before.

Regards

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest