Products for USB Sensing and Control
It is currently Mon May 20, 2013 5:30 am

All times are UTC - 7 hours [ DST ]




Post new topic Reply to topic  [ 15 posts ] 
Author Message
PostPosted: Sat Apr 16, 2011 6:56 am 
Offline
Phidgetly

Joined: Wed Nov 24, 2010 10:26 am
Posts: 46
I have problem with my SBC2 + TextLCD + RFID. After cca. 7h constantly in 1 sec interval updating LCD row with data I get error:
Code:
04/16/2011 00:40:15: charging() : Phidgets.PhidgetException: PhidgetException 13 (Given timeout has been exceeded.)
  at Phidgets.TextLCDRow.set_DisplayString (System.String value) [0x00000] in <filename unknown>:0
  at Client.Module.startCharging () [0x00000] in <filename unknown>:0


What can be wrong that I get this error? Is updating every second to much for TextLCD?


Top
 Profile Send private message  
 
PostPosted: Mon Apr 18, 2011 9:02 am 
Offline
Lead Developer
User avatar

Joined: Mon Jun 20, 2005 8:46 am
Posts: 2345
Location: Canada
This is an application running directly on the SBC? Can you enable logging in the library and post the output - also, are there any USB related messages in the system log?

You shouldn't have any trouble updating the LCD every second.

-Patrick


Top
 Profile Send private message  
 
PostPosted: Mon Apr 18, 2011 9:48 am 
Offline
Phidgetly

Joined: Wed Nov 24, 2010 10:26 am
Posts: 46
Patrick wrote:
This is an application running directly on the SBC? Can you enable logging in the library and post the output - also, are there any USB related messages in the system log?

You shouldn't have any trouble updating the LCD every second.

-Patrick


Yes it run directly on SBC. It is started by deamon which run it on boot... Application is written in VS2010 and runmono installed by this instructions:LINK

currently when Im for testing puroposes change updating lcd every 2 sec work more than 12h without problem.
current log's from control panel Im upload in attachment.

One day when Im first time test device and it has stop working Im get next errors:
Code:
04/15/2011 00:06:32: UserLogin() : Phidgets.PhidgetException: PhidgetException 5 (Phidget not physically attached.)
  at Phidgets.TextLCDRow.set_DisplayString (System.String value) [0x00000] in <filename unknown>:0
  at Client.Module.UserLogin (System.String RFIDCode) [0x00000] in <filename unknown>:0


Restarting application is not work(kill process and start it again). Only reboot has fix problem...


Attachments:
Kernel Ring Buffer .txt [9.53 KiB]
Downloaded 67 times
Syslog Messages.txt [15.26 KiB]
Downloaded 63 times
Top
 Profile Send private message  
 
PostPosted: Mon Apr 18, 2011 11:38 pm 
Offline
Phidgetly

Joined: Wed Nov 24, 2010 10:26 am
Posts: 46
Ok today crash again...
Code:
04/17/2011 21:22:50: Client name and surname: XXXX XXXX
04/19/2011 05:27:45: charging() : Phidgets.PhidgetException: PhidgetException 13 (Given timeout has been exceeded.)
  at Phidgets.TextLCDRow.set_DisplayString (System.String value) [0x00000] in <filename unknown>:0
  at Client.Module.startCharging () [0x00000] in <filename unknown>:0


Log files attached.
In Kernel Ring Buffer.txt you can see 3 errors:
Code:
usb 1-1.5: usbfs: USBDEVFS_CONTROL failed cmd mono rqt 33 rq 9 len 8 ret -110


Attachments:
Syslog Messages.txt [15.43 KiB]
Downloaded 75 times
Kernel Ring Buffer.txt [9.76 KiB]
Downloaded 61 times
Top
 Profile Send private message  
 
PostPosted: Tue Apr 19, 2011 11:40 am 
Offline
Lead Developer
User avatar

Joined: Mon Jun 20, 2005 8:46 am
Posts: 2345
Location: Canada
Are you able to enable the phidget library logging (Phidget.enableLogging)?

-Patrick


Top
 Profile Send private message  
 
PostPosted: Tue Apr 19, 2011 11:53 am 
Offline
Phidgetly

Joined: Wed Nov 24, 2010 10:26 am
Posts: 46
Patrick wrote:
Are you able to enable the phidget library logging (Phidget.enableLogging)?

-Patrick

I can enable it. Which loglevel? I can set:
Code:
PHIDGET_LOG_CRITICAL
PHIDGET_LOG_DEBUG
PHIDGET_LOG_ERROR
PHIDGET_LOG_INFO
PHIDGET_LOG_VERBOSE
PHIDGET_LOG_WARNING


Top
 Profile Send private message  
 
PostPosted: Tue Apr 19, 2011 1:09 pm 
Offline
Lead Developer
User avatar

Joined: Mon Jun 20, 2005 8:46 am
Posts: 2345
Location: Canada
INFO

-Patrick


Top
 Profile Send private message  
 
PostPosted: Wed Apr 20, 2011 1:04 am 
Offline
Phidgetly

Joined: Wed Nov 24, 2010 10:26 am
Posts: 46
Ok Im enable logging in INFO mode and reproduce error.
At 04/20/2011 08:29:00 Im receive error. In attachment you have log file.
Thanks for your help.


Attachments:
PhidgetLog.log [48 KiB]
Downloaded 76 times
Top
 Profile Send private message  
 
PostPosted: Wed Apr 20, 2011 9:34 am 
Offline
Lead Developer
User avatar

Joined: Mon Jun 20, 2005 8:46 am
Posts: 2345
Location: Canada
What version of TextLCD is it? Are you using a USB cable with a ferrite bead? What kind of environment are you running in?

It's odd that USB is having trouble like this and it's not showing up in the system log.

I know that restarting won't fix the problem - how about unplugging/replugging the TextLCD?

-Patrick


Top
 Profile Send private message  
 
PostPosted: Wed Apr 20, 2011 9:51 am 
Offline
Phidgetly

Joined: Wed Nov 24, 2010 10:26 am
Posts: 46
If I unplug/replug TextLCD and restart application it start working.
At cca. 17:40 Im unplug and replug it and restart application.
Log attached and here are my own log when Im reconnect it:
Code:
04/20/2011 08:29:00: charging() : Phidgets.PhidgetException: PhidgetException 13 (Given timeout has been exceeded.)
  at Phidgets.TextLCDRow.set_DisplayString (System.String value) [0x00000] in <filename unknown>:0
  at Client.Module.startCharging () [0x00000] in <filename unknown>:0
04/20/2011 17:40:07: IKLCD_Error Event : Channel 0: 15 sample overrun detected.
04/20/2011 17:40:07: IKLCD_Error Event : Channel 1: 15 sample overrun detected.
04/20/2011 17:40:07: IKLCD_Error Event : Channel 2: 15 sample overrun detected.
04/20/2011 17:40:07: IKLCD_Error Event : Channel 3: 15 sample overrun detected.
04/20/2011 17:40:07: IKLCD_Error Event : Channel 4: 15 sample overrun detected.
04/20/2011 17:40:07: IKLCD_Error Event : Channel 5: 15 sample overrun detected.
04/20/2011 17:40:07: IKLCD_Error Event : Channel 6: 15 sample overrun detected.
04/20/2011 17:40:08: IKLCD_Error Event : Channel 7: 15 sample overrun detected.
04/20/2011 17:40:08: IKLCD_Error Event : Channel 4: 1 sample overrun detected.
04/20/2011 17:40:08: IKLCD_Error Event : Channel 5: 1 sample overrun detected.
04/20/2011 17:40:08: IKLCD_Error Event : Channel 6: 1 sample overrun detected.
04/20/2011 17:40:08: IKLCD_Error Event : Channel 7: 1 sample overrun detected.
04/20/2011 17:40:08: IKLCD_Error Event : One or more data packets were lost
04/20/2011 17:40:08: IKLCD_Error Event : Channel 6: 1 sample overrun detected.
04/20/2011 17:40:08: IKLCD_Error Event : Channel 7: 1 sample overrun detected.
04/20/2011 17:40:46: Loading Configuration...
04/20/2011 17:40:49: Hostname: phidgetsbc
04/20/2011 17:40:50: MACAddress: 00:1B:0B:00:09:00


Cable is white with white feritte like this:
LINK

TextLCd is version 201
Serial number is 121095


Attachments:
PhidgetLog.log [39.31 KiB]
Downloaded 63 times
Top
 Profile Send private message  
 
PostPosted: Wed Apr 20, 2011 10:06 am 
Offline
Lead Developer
User avatar

Joined: Mon Jun 20, 2005 8:46 am
Posts: 2345
Location: Canada
And after failure - your rfid reader is still working, but the 8/8/8 part of the TextLCD has stopped reporting data? At least that's what it looks like. Is the 7 hours fairly consistent? Does it fail if you just don't have the rfid reader attached? Do you have any other USB devices attached?

If you write to the TextLCD as fast as possible, does it fail quicker?

I'll hook a TextLCD up to a SBC2 here and see if I can replicate this.

-Patrick


Top
 Profile Send private message  
 
PostPosted: Wed Apr 20, 2011 10:38 am 
Offline
Phidgetly

Joined: Wed Nov 24, 2010 10:26 am
Posts: 46
Hi patrick.
Im try increase updating LCD from 1000ms to 2000ms and it need more time to fail... Now Im change in app updating to 500ms and will see how long need to fail...
I have latest updates on SBC2 on it is connected only RFID and TextLCD other 4 USB are free.
It looks like fail after same time...

For now I have logged only this times.
Code:
04/15/2011 17:04:09:
04/16/2011 00:40:15:

cca. 7h 35min
Code:
04/19/2011 21:45:09:
04/20/2011 08:29:00:

cca. 10h 45min

We will see how long will work with 500ms update time.
Yes once when Im test if RFID work it has detect TAG.
Im not try without RFID because application is designed that start writing on lcd when user has logged...


Top
 Profile Send private message  
 
PostPosted: Wed Apr 20, 2011 11:11 pm 
Offline
Phidgetly

Joined: Wed Nov 24, 2010 10:26 am
Posts: 46
Ok here is with 500ms updating time:
Code:
04/20/2011 18:35:51:
04/21/2011 04:12:34:


Attachments:
PhidgetLog.log [32 KiB]
Downloaded 67 times
Top
 Profile Send private message  
 
PostPosted: Sun May 01, 2011 8:56 am 
Offline
Phidgetly

Joined: Wed Nov 24, 2010 10:26 am
Posts: 46
Im find one strange thing.
When I get error and stop application on SBC I can normaly connect to TEXTLCD interface of TEXTLCD from my PC trough SBC web service but when I try connect to IK interface of TEXTLCD It disapear from list and get attached=false
Screenshot:
Attachment:
Brez naslova.jpg [106.99 KiB]
Not downloaded yet


Top
 Profile Send private message  
 
PostPosted: Tue Aug 09, 2011 11:24 pm 
Offline
Phidgetly

Joined: Wed Nov 24, 2010 10:26 am
Posts: 46
It is over 3 months from my last post and there is still not any answer from support team...
System still don't work. Im little research and figure out next thing:
1.)If I connect TextLCD directly to PC(Win Server 2008 R2 with installed Phidget-x64_2.1.8.20110329.exe) and run application which is attached in this post all work ok.
2.)If I connect TextLCD with SAME USB cable to SBC2 and run SAME application(Same exe file) it fail after 6-10 hours with error:
Code:
08/10/2011 00:12:53: charging() : Phidgets.PhidgetException: PhidgetException 13 (Given timeout has been exceeded.)
  at Phidgets.TextLCDRow.set_DisplayString (System.String value) [0x00000] in <filename unknown>:0
  at Client.Module.startCharging () [0x00000] in <filename unknown>:0


I would like to know what I doing wrong that code do not run ok on SBC2 as soon as possible?


Attachments:
Program.txt [5.37 KiB]
Downloaded 68 times
Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 15 posts ] 

All times are UTC - 7 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group