Author Topic: Connection to USB GPS lost after running for a day  (Read 3061 times)

scsirob

Connection to USB GPS lost after running for a day
« on: September 06, 2017, 08:25:08 pm »
Yeaterday I received my bridgeboard and built the PilotAware system using the latest image. All seemed to work OK, except it suddenly lost GPS connectivity. The system log shows what appears to be a resource conflict. Unplugging and re-inserting the USB GPS resolves the issue (for now).

Use of uninitialized value $eth0_ip in concatenation (.) or string at htdocs/index.cgi line 152.
Use of uninitialized value $eth0_ip in concatenation (.) or string at htdocs/index.cgi line 152.
Use of uninitialized value $eth0_ip in concatenation (.) or string at htdocs/index.cgi line 152.
(19:18:02) BMP-I2C   : HW_OK
(19:18:01) GPS-USB   : Connected to /dev/usbp4
Use of uninitialized value $eth0_ip in concatenation (.) or string at htdocs/index.cgi line 152.
(19:17:56) GPS-USB   : Startup
(19:17:56) GPS-USB   : Disconnected
(19:17:56) GPS-USB   : Device Disconnecting
Use of uninitialized value $eth0_ip in concatenation (.) or string at htdocs/index.cgi line 152.
Use of uninitialized value $eth0_ip in concatenation (.) or string at htdocs/index.cgi line 152.
(19:17:48) HTTP      : Parent->pid(3125) +++++ Child Exited Bad +++++
(19:17:48) HTTP      : Parent->pid(3125) kill(3125)=0
(19:17:48) HTTP      : Parent->pid(3125) htdocs/logging.cgi send() Error: 32 Broken pipe
(19:17:48) HTTP      : send_pthread(): pid 1267 : Broken pipe
(19:17:48) INTERNAL  : PilotAware received SIGPIPE Continuing
(19:17:42) ADSB-USB  : Connected
(19:17:36) GPS-USB   : Select/Read Timeout=0 Count=-1 errno=Resource temporarily unavailable
(19:17:16) GPS-USB   : Select/Read Timeout=0 Count=-1 errno=Resource temporarily unavailable
(19:16:56) GPS-USB   : Select/Read Timeout=0 Count=-1 errno=Resource temporarily unavailable
Use of uninitialized value $eth0_ip in concatenation (.) or string at htdocs/index.cgi line 152.
Use of uninitialized value $eth0_ip in concatenation (.) or string at htdocs/index.cgi line 152.
(19:16:36) GPS-USB   : Select/Read Timeout=0 Count=-1 errno=Resource temporarily unavailable
Use of uninitialized value $eth0_ip in concatenation (.) or string at htdocs/index.cgi line 152.
Use of uninitialized value $eth0_ip in concatenation (.) or string at htdocs/index.cgi line 152.
Use of uninitialized value $eth0_ip in concatenation (.) or string at htdocs/index.cgi line 152.
Use of uninitialized value $eth0_ip in concatenation (.) or string at htdocs/index.cgi line 152.
(19:16:16) GPS-USB   : Select/Read Timeout=0 Count=-1 errno=Resource temporarily unavailable
Use of uninitialized value $eth0_ip in concatenation (.) or string at htdocs/index.cgi line 152.
Use of uninitialized value $eth0_ip in concatenation (.) or string at htdocs/index.cgi line 152.
Use of uninitialized value $eth0_ip in concatenation (.) or string at htdocs/index.cgi line 152.
(19:15:56) GPS-USB   : Select/Read Timeout=0 Count=-1 errno=Resource temporarily unavailable
Use of uninitialized value $eth0_ip in concatenation (.) or string at htdocs/index.cgi line 152.
(19:15:36) GPS-USB   : Select/Read Timeout=0 Count=-1 errno=Resource temporarily unavailable
(19:15:16) GPS-USB   : Select/Read Timeout=0 Count=-1 errno=Resource temporarily unavailable
(19:14:55) GPS-USB   : Select/Read Timeout=0 Count=-1 errno=Resource temporarily unavailable
(19:14:35) GPS-USB   : Select/Read Timeout=0 Count=-1 errno=Resource temporarily unavailable
.... more of these...

Admin

Re: Connection to USB GPS lost after running for a day
« Reply #1 on: September 06, 2017, 08:58:28 pm »
What version is this Rob ?

scsirob

Re: Connection to USB GPS lost after running for a day
« Reply #2 on: September 06, 2017, 08:59:57 pm »
PilotAware Version(20170721) License Expires(20180905)

Admin

Re: Connection to USB GPS lost after running for a day
« Reply #3 on: September 06, 2017, 09:05:42 pm »
PilotAware Version(20170721) License Expires(20180905)

I presume you are keeping your device up in order to monitor from the OGN-R station.
did you have an http browser connected all the time it was running ?

I have occasionally seen some issues when a browser is connected for a long period of time, particularly on things like the traffic page.

Thx
Lee

scsirob

Re: Connection to USB GPS lost after running for a day
« Reply #4 on: September 06, 2017, 09:35:06 pm »
That is correct. I had the radar screen open all the time and I was curious to see how it interacted with the OGN-R node.

My stats on the PAW clearly show they see eachother well:


   HOSTID    B827EB6C8B99
   PLATFORM    Model B Pi 2, kernel=4.9.35-v7+
   DATE    Wed Sep 6 20:31:25 2017
   ETH0-IP/GW    / 0.0.0.0
   WLAN0-IP    192.168.1.1
   UPTIME    20:31:25 up 1 days 02:12, Load 0.40:0.45:0.45, cpu_temp=48.7'C
   CLIENTS    Connected WiFi=2 TCP=0
   ADS-B (DVB-T)    Connected Msgs=7799797(+371)
   TRX (RXTX)    Connected TX=25038 RX=4953 CRCFAIL=0
   Pressure Altitude (BMP)    Connected (Auto) QNH=1018mb QNE=-108ft GNSS=46ft
   GPS    USB Msgs=56347(+71) Fix="DGPS fix" Mode="3D" Satellites=6
   USB 067b:2303    Prolific Technology Inc. USB-Serial Controller
   USB 0bda:2838    Realtek RTL2838UHIDIR
   USB 0df6:005f    Ralink 802.11 n WLAN
   USB 1d6b:0002    Linux 4.9.35-v7+ dwc_otg_hcd DWC OTG Controller


Let me know if there's anything I can do to help diagnose.

Admin

Re: Connection to USB GPS lost after running for a day
« Reply #5 on: September 06, 2017, 10:57:37 pm »
Hi Rob
Was it only the radar screen, I will try to reproduce
Thx
Lee

scsirob

Re: Connection to USB GPS lost after running for a day
« Reply #6 on: September 07, 2017, 07:53:11 am »
Hi Lee,
I only had the radar screen active. There was a big yellow button in the top rh corner of the radar, labelled "GS-OGN 1", I guess that was due to my OGN node being active? Not sure if that station right on top plays a role.

Rob