On Sat, Dec 16, 2006 at 02:30:16AM +0600, salahuddin pasha wrote: > Hello there, > > I am having some problem with the USB address. > > I use the GPRS as my main internet connection & debian upgrade. But > some times my mobile's USB address change to /dev/ttyUSB0 to > /dev/ttyUSB1 > > Is there any way to lock the USB address for this.
if you're using udev, look into custom udev rules http://www.reactivated.net/writing_udev_rules.html is a good place to start. you can write a custom rule to do all kinds of stuff for your devices. A > > I am using Siemens SK65. > > output > --------------------------------------------------------------------------------------- > ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 > OK > --> Modem initialized. > --> Sending: ATDT*99***1# > --> Waiting for carrier. > ATDT*99***1# > CONNECT > [EMAIL PROTECTED] }9}"}&} }*} } }'}"}(}"}%}&E[11]B}#}#}%B#}%7`~ > --> Carrier detected. Waiting for prompt. > [EMAIL PROTECTED] }9}"}&} }*} } }'}"}(}"}%}&E[11]B}#}#}%B#}%7`~ > --> PPP negotiation detected. > --> Starting pppd at Fri Dec 15 15:20:42 2006 > --> Pid of pppd: 3608 > --> Using interface ppp0 > --> pppd: [08][06][08][10][06][08] > --> local IP address 10.87.24.219 > --> pppd: [08][06][08][10][06][08] > --> remote IP address 192.168.254.254 > --> pppd: [08][06][08][10][06][08] > --> primary DNS address 192.168.80.66 > --> pppd: [08][06][08][10][06][08] > --> secondary DNS address 202.134.13.3 > --> pppd: [08][06][08][10][06][08] > --> Connect time 544.0 minutes. > --> pppd: [08][06][08][10][06][08] > --> Disconnecting at Sat Dec 16 00:24:47 2006 > --> The PPP daemon has died: A modem hung up the phone (exit code = 16) > --> man pppd explains pppd error codes in more detail. > --> Try again and look into /var/log/messages and the wvdial and pppd > man pages for more information. > --> Auto Reconnect will be attempted in 5 seconds > --> Cannot open /dev/ttyUSB0: No such file or directory > --> Cannot open /dev/ttyUSB0: No such file or directory > --> Cannot open /dev/ttyUSB0: No such file or directory > --> Disconnecting at Sat Dec 16 00:24:48 2006 > [EMAIL PROTECTED]:/home/salahuddin# wvdial > ------------------------------------------------------------------------------------------------- > it move to /dev/ttyUSB1 > > -- > -salahuddin_66
signature.asc
Description: Digital signature