|
|||||||
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
#1 |
|
mongo like boobies
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Joined: Jul 2008, #8256
Location: that funny thing hanging off Georgia
Age: 50
Gender: Male
Posts: 2,767
|
starting/stopping usb ports
Anyone know if there is a command that can be used in a .bat file that will stop and restart a specific USB port? Or a specific USB device?
My system has a weather station, scanner, and a X10 USB device that converts video input from a RCA jack to USB. The weather station and the X10 device butt heads on startup, the only way I can get them to play nice is to set the X10 service startup to manual, open the weather station, start the X10 service and then physically unplug and re-plug in the X10 device. The X10 device sets itself up as a COM port, Com4. The mappings are a bit odd, it doesn't use a specific address (EG 2F8) but it does use an interrupt (17). The weather station is on COM1 (2F8 INT4). So they SHOULDN'T butt heads, but they do. Would be nice to do all the service starting / stopping (that part I know) AND bounce the USB port in one batch file.
__________________
|
|
|
|
#2 |
|
Senior Member
![]() |
Can you reassign the COM port to a different address? That would probably be the easiest thing to do.
__________________
Que' pasa, ya'll? |
|
|
|
#3 |
|
mongo like boobies
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Joined: Jul 2008, #8256
Location: that funny thing hanging off Georgia
Age: 50
Gender: Male
Posts: 2,767
|
Both the scanner and the weather station software will only work on COM1 or COM2. I tricked the weather station to work on COM6 by editing it's .ini file, used a serial to USB adapter. Now the software fires up fine but it won't read the station. Figuring the station uses some sort of "counting" feature, something that opens/closes two terminals on the serial port like UPS monitoring does. So it has to be on a physical port.
Was thinking a few minutes ago, I could put in a Belkin USB card, plug just the X10 camera adapter into it, and figure out what service it uses, write a start / stop command into a batch file. Something to try later today.
__________________
|
|
|
|
#4 |
|
Senior Member
![]() |
Go through your Control Panel into the System section and look under the Hardware tab. You should be able to assign the COM port to a different interrupt which should clear the conflict. You will still be using the COM port, it will just be talking to the CPU through a different interrupt.
__________________
Que' pasa, ya'll? |
|
|
|
#5 |
|
mongo like boobies
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Joined: Jul 2008, #8256
Location: that funny thing hanging off Georgia
Age: 50
Gender: Male
Posts: 2,767
|
You can't on the X10 USB video adapter. Takes what it wants. No ini file to edit. Right now it's on 17 (which we know is a software based interrupt - that might be causing the problem).
Answer for now is for me to set the X10 service startup to manual on machine boot so the weather station works. Then start the X10 service with a NET START command. Then pull the USB connector for the video adapter out, plug it back in. It finds the camera and all of a sudden it works. Or quit busting my balls on this and get a cheap video capture board with a RCA input on it.... But I don't like to lose these battles!
__________________
|
|
|
|
#6 |
|
Senior Member
![]() |
I went back and re-read your original post. I thought you were using the COM port on the computer which can be reassigned. Sounds like the conflict is just at startup. Is it possible to have them start up in a different sequence? That way the interrupt 17 might be cleared by the time the second device wants it.
__________________
Que' pasa, ya'll? |
|
|
|
#7 |
|
mongo like boobies
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Joined: Jul 2008, #8256
Location: that funny thing hanging off Georgia
Age: 50
Gender: Male
Posts: 2,767
|
Unfortunately the X10 device is run by a service, and the weather software is an application, so the service starts first.
If I allow the X10 service to start on boot the weather software won't find it's port (COM 1). So I start the X10 service manually with a .bat file with NET START. No problem there. What I don't get is why I have to unplug / re-plug the X10 adapter to get XP to see the camera. I'm using the latest (if you can call 2001 latest) drivers from XP. There are no options with it, it's just a simple driver.
__________________
|
|
|
|
#8 |
|
Senior Member
![]() |
Why can't you reassign COM1? Isn't that hardware? That would leave Interrupt 17 available for your software COM4.
__________________
Que' pasa, ya'll? |
|
|
|
#9 |
|
mongo like boobies
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Joined: Jul 2008, #8256
Location: that funny thing hanging off Georgia
Age: 50
Gender: Male
Posts: 2,767
|
'cause the weather station will only recognize 2F8 INT4 or 3F8 INT3.
I'm gonna hit ebay and get a cheap video input card. Solves it all. Thanks for the help though!
__________________
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Thump on stopping | jimdu | 2nd Gen. Tacomas | 4 | 06-22-2009 09:41 AM |
| old post about truck stopping at light makes a thump!? | linkfeeney | 2nd Gen. Tacomas | 1 | 10-25-2008 02:38 AM |
| Rubberized undercoating or Rust Stopping Primer? | Toy4Life | Detailing | 6 | 07-08-2008 09:11 PM |
| Full time power ports | SteveS | 1st Gen. Tacomas | 2 | 12-13-2007 04:41 PM |
| Pioneer USB Adapter | tigerdongal | Audio & Video | 9 | 08-15-2007 06:37 PM |