04-29-2009 06:41 PM
Is there a way to configure the NI USB 485 single port USB converter to retain 2-wire auto tranceiver control during boot? This is sometimes refered to as "Tri-state" on boot by other serial interface vendors.
When ever the host PC with the USB converter preforms a cold boot, all the other slaves on the network are reset breifly.
This does not occure during a warm boot.
I susspect the reset is caused when the OS loads the driver, changing the transceiver control from its default value to 2-wire auto mode.
Thanks in advance for you help!
04-30-2009 02:51 PM
Tgog,
I'll have to research into this issue a bit before I can provide you with an adequate response.
Also, just a question on nomenclature, when you say cold boot, is this referring to when you manually turn off your PC without going through any shutdown procedure, and when you say warm boot I'm assuming that's when you go through Windows (or whatever OS you're using) to shutdown? Thanks
05-01-2009 10:48 AM
Hello Justin_E,
Thanks for looking in to this for me.
A hard reboot (also known as a cold reboot, cold boot or cold start) is when power to a computer is cycled (turned off and then on).
A soft reboot (also known as a warm reboot) is restarting a computer under software control, without removing the power.
Hopefully these definition will clear up my wording.
05-01-2009 04:15 PM
Hey Tgog,
I have a couple questions for you regarding this issue. Is the USB-485 device the master device in the system? How exactly is your network set up? When your machine reboots and you check the device in Device Manager, does it still show up as 2-wire auto? Are the slaves resetting a major issue for your system?
Also, do you have any other RS-485 cables/devices you can test this with, or even a different USB-485? What version of NI-Serial do you have on your machine? I know I'm throwing a lot of questions at you, but there could be a variety of things going on with this device.
05-04-2009 12:12 PM
05-05-2009 02:43 PM
Hey Tgog,
I'd like you to try something for me. Can you unplug the USB-485 and plug it back in while the computer is running, and see if the same behavior is exhibited?
I think that the firmware for the USB-485 is downloaded to the device upon detection. What you're saying could be true where the USB-485 defaults to some mode before the device is detected by the driver and the firmware is loaded to the device. I'd like to see what happens though when the device is unplugged and plugged back in to the machine.
05-05-2009 04:40 PM
Hey Justin_E
I tried unplugging the USB-485, then plugging it back in. I can see in windows device manager the port disappears then reappears once its plugged back in. It is Interesting, the same behavior is not exhibited when a hard boot is preformed. Although my application does not re-detect the port once its plugged back in. I can restart my app and it will connect to the port again.
So the USB-485 must retain its configured mode even through a power cycle?
good call!
I guess I need to look at how windows loads the port different on a hard boot?
05-06-2009 10:03 AM
Tgog,
It looks like it's either an issue with how Windows loads the port like you said, or how Windows loads the driver, or possibly even a combination of both.
05-06-2009 10:06 AM