[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4699: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4701: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4702: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4703: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Current Cost Support Forum • View topic - Stops receiving data on cable.

Current Cost Support Forum

A support forum for Current Cost users, partners and developers. Covering hardware, software and web.
Site Announcements

The support forum is moderated Monday to Friday, UK time. To submit a support ticket, please email: helpme [at] currentcost .com

It is currently Sun Nov 28, 2021 9:47 pm

All times are UTC [ DST ]




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
PostPosted: Tue Feb 21, 2012 3:06 pm 
Offline

Joined: Wed Jan 25, 2012 3:01 am
Posts: 6
I'm using a .NET application to retrieve the data from my EnviR over the white data cable that was received with the unit. I have downloaded the drivers from the CC website.

I have found that if I leave my PC for a while, the connection on the serial port get disconnected, and thus data is no longer retrieved. After some tinkering, I worked out that this appears to be the powermanagement of Windows shutting down the USB port to conserve energy. How useful, except that the port is in use.

This would appear to be a driver issue not responding to the selective suspend query in Windows (this occurs every 5 seconds apparently) with the correct response, but only after the PC has been running idle for a while (no specific time, but I suspect 30 mins which is my screen power down time, and no the USB port is in the PC, not the screen unit).

Does anyone know if the v3.4.25.218 driver on the Prolific site will fix this issue (CC driver is 3.3.2.102). Unfortunately they do not have a full history revision available to the public, although CC appear to have one.


Top
 Profile  
 
PostPosted: Sat Feb 25, 2012 3:44 am 
Offline

Joined: Mon Apr 18, 2011 5:26 pm
Posts: 138
Location: Melbourne, Australia
I had similar problems when I set up my server (HP Proliant micro server / Win 7 ultimate).

I got around it by setting up a new power plan. I can't remember which settings I changed but I think it was mainly Sleep/hibernate after 1440. I've put a full dump of my plan "monitor" at .
Sorry there no nice screen print available.

Just another thought... [Its one of those "have you turned the power on?" type. So just ignore me if I'm off the mark].
I assume you are using the system.io.ports serialport class and doing synchronous reads? Have you set a low readtimeout? On occasions I have noticed the ENVI waiting considerable time, 10-15 seconds, between messages. A low ReadTimeout may break your loop. Of course not setting it is just as bad as it defaults to infiniteTimeout. ...just a thought.

_________________
Seeker
"The Truth is out there!"


Top
 Profile  
 
PostPosted: Mon Feb 27, 2012 5:04 pm 
Offline

Joined: Wed Jan 25, 2012 3:01 am
Posts: 6
As a workaround I originally disabled the USB Selective Suspend setting in my power management plan, but after this worked and stopped the disconnections, I've ended up reenabling this, and changing the power management settings in the device manager for the USB Root Hub that the data cable is plugged into. I've set this so Windows will not "turn off this device to save power". As most computers these days seem to have just about one hub per port, this allows all the other USB devices to shutdown nicely, while not affecting the data cable.

I am using the SerialPort class, and no have not specified a timeout. I don't mind the waiting indefinately, although with the limits of the class, this means that unplugging the data cable and then plugging back in is not handled particularly well at this time. Will get around to fixing that one day.

Although the workaround sorts the problem out, I do think that the driver for the data cable, should not allow itself to be shutdown though when there is an active connection on it.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC [ 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

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group