So I have been running into an issue with a USB Modem where if someone ends their dialin connection abruptly from the other side the modem gets stuck
and I found that the only way to fix it is to either unplug the USB Modem and plug it back in, or just reboot. I'd rather not reboot if that's possible, and since this
PC will be in a remote location where I won't have access to it physically, I was hoping to find another solution...
So after searching around a bit online I found this C program that is supposed to do exactly what I was trying to do, but it doesn't seem to be working properly.
Not sure if something is incorrect in the code below seeing that I have only limited knowledge of C, I was wondering if someone elswe could tell...?
If not does anyone know of any other soultion that I might try? I saw there was a command called "udevadm", and with that your supposed to be able to
control udev and devices, I believe... But I'm not sure if that command will help my cause..?
The C code at the end of the post seems to "shutdown" that USB port, but it doesn't seem to re-rigester the device...
*The USB Modem is the device labeled "Conexant Systems (Rockwell), Inc."....
If I run lsusb before I execute the C program I see:
Then I execute the C program, and when that's done I run lsusb again and I get:
As you can see this time the Modem is missing... If I watch /var/log/messages when I physically unplug the modem AFTER I execute the C program I get
no output at all, so it seems like the Kernel doesn't know its there, since normally I would get output on unplugging ANY usb device...
But this is /var/log/messages while executing the C program:
So it seems like it's recognizing the modem, but when I physically unplug and re-plug back in the modem I get more messages printed then what you see above...
Here is the C code:
If anyone has ANY thoughts or suggestion, please feel free to share... Not really sure what else I can try here..?
hi all,
I have been trying to setup network on solaris10 from a long time but am unable to do so..
I tried it with the ethernet card i have(dfe -520tx) but since i was not able to find drivers for that particular device, i thought of using the usb mode to run network..
However am not able... (0 Replies)
Hello AIX Group Members,
I have two systems: (1) IBM pSeries 640, 7026-B80. (2) A 5-month old HP laptop with Windows Vista. It has no serial port and only has USB ports on it.
My question are: How can I use the laptop as the p640's terminal? How can I make the connection? What type of cable... (4 Replies)
Hi,
I have PC with Linux OS RHEL3 and USB port is disabled from BIOS. BIOS access is protected using password. But, I have root access. Now, how can I enable USB port using root access? Is there any trick that I can do using root access that can enable USB port once my PC has booted up? (3 Replies)
I want to watch the USB ports.
If any device is connected to the USB port I want to take the name of the device and
I want to log the device name. how to watch all the USB ports.
How to find the device is connected in which usb port. (1 Reply)
Hi
I have to buy my selfe external case for hdd but I don't know whether my ubuntu linux, needs some driver to be able to work with this device or it has inside of itselfe this driver ?
rhx for help. (1 Reply)
Hi @all,
i am currently having a Problem:
I want to restart 2 USB Bluetooth Dongles from the shell at the same time. It is very important that they are restarted nearly simultaneously, so that their clocks are starting to run at the same time.
At the moment i am using a command called... (3 Replies)
Hello,
I have an unloaded T5140 machine and want to access the ILOM for the first time and subsequently the network port after that., and then load Solaris 10 the final January 2011 build.
The first part is what confuses me -the cabling.
I am coming from a Windows machine (w/appropriate... (5 Replies)
In ubuntu etopic i create this udev rules for prolink 3g usb modem:
SUBSYSTEM=="block",
SUBSYSTEM=="scsi",
ATTRS{idVendor}=="1e0e",
ATTRS{idProduct}=="f000",
ACTION=="add",
RUN+="/sbin/modprobe usbserial Vendor=0X1e0e Product=0Xf000"
After plugging the usb modem, ubuntu assigns the ports... (4 Replies)
Hi everybody! :)
I am a complete newbie. :D Is it possible to write a script (shell or python) to listen to usb port event and to notify me every time an usb storage key is plugged or ejected? I want it to echo the device to mount (eg. /dev/sdb).
I wrote an udev rule wich runs a script after... (1 Reply)
I have someone wanting to connect to the serial management port of a switch from a PC running CentOS6. The management port on the switch is apparently baud 9600, 8 data bits, 1 stop bit & no parity They have plugged in a cable to connect and the output from lsusb is:-Bus 001 Device 001: ID... (7 Replies)