Regarding GPS Program

Everything about programming the platform and using the Waspmote API
Pankaj
Posts: 29
Joined: Tue Oct 04, 2016 9:55 am

Regarding GPS Program

Post by Pankaj » Thu Sep 28, 2017 7:50 am

Hello Tech Team, I am using Smart Environment Pro (Plug & Sense! SE-PRO 4G EU/BR*) with sensor of SO2, CO & single sensor for Temp,Humidity & Pressure. It was working fine but i introduced the features of GPS in my program with the help of sample program "4G_16 - GPS Autonomous mode" .

I received Latitude & Longitude value in data base successfully. But it is not happening continuously, most of the time it missed latitude & longitude value even after device placed on open location.

How it can be improved? Pl suggest.

PSB below data for your reference and you can see the missed value of Latitude & Longitude in below records.

Node ID, Time Stamp, Temp, Humidity, Pressure, CO, SO2, Latitude, Logitude
01,Wed, 17/09/27, 16:29:47,36.29,20.88,98241.67,2.954,0.447,91,26.2274341583,78.2242584228,
01,Wed, 17/09/27, 16:32:47,36.11,23.90,98243.19,3.342,0.537,95,26.2274017333,78.2242202758,
01,Wed, 17/09/27, 16:35:47,35.49,23.81,98240.55,3.420,0.532,93,26.2274074554,78.2241516113,
01,Wed, 17/09/27, 16:38:47,35.02,27.65,98244.81,3.479,0.525,89,26.2274265289,78.2241439819,
01,Wed, 17/09/27, 16:43:47,34.50,27.62,98249.56,0.813,0.497,92,26.2275009155,78.2243652343,
01,Wed, 17/09/27, 16:46:41,34.34,27.87,98243.19,2.566,0.526,92,26.2273559570,78.2243347167,
01,Wed, 17/09/27, 16:49:39,34.52,28.08,98242.28,2.611,0.510,92,26.2274475097,78.2242355346,
01,Wed, 17/09/27, 16:52:31,34.66,27.79,98241.57,3.270,0.515,89,26.2274475097,78.2242355346,
01,Wed, 17/09/27, 16:55:17,34.63,28.45,98238.95,3.096,0.542,90,26.2275276184,78.2241668701,
01,Wed, 17/09/27, 16:58:09,34.65,21.61,98234.72,3.218,0.532,86,26.2275276184,78.2241668701,
01,Wed, 17/09/27, 17:03:25,30.07,32.34,98237.03,3.104,0.509,96,,,,,,
01,Wed, 17/09/27, 17:09:39,28.32,37.87,98230.94,3.003,0.534,95,,,,,,
01,Wed, 17/09/27, 17:42:31,27.72,39.82,98226.17,3.709,0.565,95,,,,,,
01,Wed, 17/09/27, 18:15:23,27.42,39.66,98231.28,4.246,0.568,92,,,,,,
01,Wed, 17/09/27, 18:48:15,27.26,38.98,98243.59,5.063,0.614,90,,,,,,
01,Wed, 17/09/27, 19:21:07,27.26,44.07,98263.87,6.056,0.626,92,,,,,,
01,Wed, 17/09/27, 19:53:59,27.98,47.58,98300.14,6.352,0.658,92,,,,,,
01,Wed, 17/09/27, 20:26:51,28.31,47.88,98339.62,6.510,0.713,95,,,,,,
01,Wed, 17/09/27, 20:59:43,28.54,47.73,98370.56,6.355,0.730,90,,,,,,
01,Wed, 17/09/27, 21:32:36,28.70,47.99,98373.01,6.285,0.740,89,,,,,,
01,Wed, 17/09/27, 22:05:29,28.80,48.07,98360.56,6.080,0.739,94,,,,,,
01,Wed, 17/09/27, 22:38:21,28.90,48.27,98354.78,5.781,0.779,90,,,,,,
01,Wed, 17/09/27, 23:11:13,28.97,48.65,98363.64,5.512,0.757,91,,,,,,
01,Wed, 17/09/27, 23:44:05,29.04,49.04,98369.75,5.131,0.767,90,,,,,,
01,Thu, 17/09/28, 00:16:58,29.07,49.46,98355.00,4.839,0.749,90,,,,,,
01,Thu, 17/09/28, 00:49:50,29.11,49.70,98331.28,4.352,0.746,91,,,,,,
01,Thu, 17/09/28, 01:22:42,29.13,49.81,98303.05,4.161,0.746,88,,,,,,
01,Thu, 17/09/28, 09:36:38,25.04,45.12,98460.61,3.257,0.669,99,,,,,,
01,Thu, 17/09/28, 10:09:32,24.31,52.05,98454.31,2.995,0.607,92,,,,,,
01,Thu, 17/09/28, 10:42:24,36.90,16.58,98432.98,2.126,0.692,92,,,,,,

Regards
Pankaj

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

Re: Regarding GPS Program

Post by libelium-dev » Thu Sep 28, 2017 10:40 am

Hi,

How are the antennas installed? Could you try to put the antennas as in this image?
libelium_files/Antennas_4G.jpg

What API are you using? Could you try to increase the wait for signal time?

Code: Select all

error = _4G.waitForSignal(30000);
Regards

Pankaj
Posts: 29
Joined: Tue Oct 04, 2016 9:55 am

Re: Regarding GPS Program

Post by Pankaj » Thu Sep 28, 2017 10:53 am

Hi, Thanks for your reply.
OK I'll change the direction of antenna as per your recommendation. I am using "Wasp4G.h" and i had also changed the time interval 30000 already.
i.e. error1 = _4G.waitForSignal(30000);

Regards
Pankaj

Pankaj
Posts: 29
Joined: Tue Oct 04, 2016 9:55 am

Re: Regarding GPS Program

Post by Pankaj » Thu Sep 28, 2017 12:21 pm

Hi, After changing the same as above but still i am missing data (Latitude & Longitude). What next i should do.
If you need, i can send my program code also.

Pankaj
Posts: 29
Joined: Tue Oct 04, 2016 9:55 am

Re: Regarding GPS Program

Post by Pankaj » Thu Sep 28, 2017 12:45 pm

Look Below data -

01,Thu, 17/09/28, 13:47:20,36.20,9.89,98204.31,2.736,0.535,88,26.2275867462,78.2240295410,
01,Thu, 17/09/28, 14:20:12,38.20,7.23,98172.79,2.902,0.532,90,26.2275867462,78.2240295410,
01,Thu, 17/09/28, 14:53:04,40.06,3.56,98137.90,4.791,0.582,89,26.2275867462,78.2240295410,,
01,Thu, 17/09/28, 15:00:14,32.68,15.76,98122.25,4.472,0.577,98,,,
01,Thu, 17/09/28, 15:09:47,28.39,26.93,98115.53,3.014,0.557,95,,,
01,Thu, 17/09/28, 15:14:59,28.01,28.07,98093.89,2.691,0.567,90,,,
01,Thu, 17/09/28, 15:39:21,34.63,16.92,98071.45,2.506,0.562,89,,,
01,Thu, 17/09/28, 15:44:00,34.90,15.07,98070.11,2.196,0.527,89,,,
01,Thu, 17/09/28, 15:52:05,35.34,15.46,98061.51,2.371,0.534,89,,,
01,Thu, 17/09/28, 15:56:23,35.50,15.42,98061.84,2.727,0.534,91,,,
01,Thu, 17/09/28, 16:00:52,35.50,14.54,98056.49,2.398,0.533,94,26.2282047271,78.2224121093,


After missing data in few records again i started to receive data.
Only this problem i am facing continuously. What could be the possible solution ????

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

Re: Regarding GPS Program

Post by libelium-dev » Fri Sep 29, 2017 9:50 am

Hi,

It seems that there is bad signal for GPS. Could you try with these modes for GPS?
http://www.libelium.com/development/was ... -assisted/
http://www.libelium.com/development/was ... -ms-based/

Do you get signal?

Regard

Pankaj
Posts: 29
Joined: Tue Oct 04, 2016 9:55 am

Re: Regarding GPS Program

Post by Pankaj » Sun Oct 01, 2017 7:18 am

1. Ya i have tried MS assited but same output i received and i have not tried MS Based. what is the difference between all of them and which program is suitable for me.

2. At outdoor i received data some time but indoor i never received a single data row. Even same make sim i have in my mobile but it connects easily from GPS indoor also.

Pl suggest me what should i do for getting data smoothly.

Pankaj
Posts: 29
Joined: Tue Oct 04, 2016 9:55 am

Re: Regarding GPS Program

Post by Pankaj » Mon Oct 02, 2017 9:00 am

HI, In waiting of your reply......

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

Re: Regarding GPS Program

Post by libelium-dev » Mon Oct 02, 2017 9:13 am

Hi,

Here you can find all information about GPS
http://www.libelium.com/downloads/docum ... ide.pdf#38

It is normal behavior that 4G module doesn't find GPS signal indoor. If the node is indoor, you should try the A-GPS modes although we can't ensure its operation. The GPS features should be tested outside.

On the other hand, we are improving the 4G library, you can try to replace the Wasp4G library for this one. Let us know if this library works
http://www.libelium.com/forum/libelium_files/Wasp4G.zip

Regards

Pankaj
Posts: 29
Joined: Tue Oct 04, 2016 9:55 am

Re: Regarding GPS Program

Post by Pankaj » Mon Oct 02, 2017 9:34 am

Hi, Thanks for your reply.
I'll do the same as you recommended me and let you know.

One more information i want to know that what exactly range of Smart Environment Pro plug & sense device. Mean if i have to check the pollution of around 4 Km area then how much device i would have to install and on what distance ? Pl let me know.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest