Discussion:
Change device every reboot
f***@libero.it
2017-02-06 15:20:56 UTC
Permalink
My raspberry PI change device ttyUSB0 ttyUSB1 ttyUSB2 each time I reboot or restart gammu-smsd .How can avoid it and align this device in gammu-config and gammu-smsd configuration? I have after modification of gammu-config to restart daemon gammu-smsd?
Michal Čihař
2017-02-06 15:29:20 UTC
Permalink
Hi
Post by f***@libero.it
My raspberry PI change device ttyUSB0 ttyUSB1 ttyUSB2 each time I
reboot or restart gammu-smsd .
How can avoid it and align this device in gammu-config and gammu-smsd
configuration? I have after modification of gammu-config to restart
daemon gammu-smsd?
Take a look at our FAQ:

https://wammu.eu/docs/manual/faq/general.html#device-name-always-change
s-on-linux-how-to-solve-that
--
Michal Čihař | https://cihar.com/ | https://weblate.org/
f***@libero.it
2017-02-06 15:46:11 UTC
Permalink
once I found the rules, how to use udev command?
----Messaggio originale----
Data: 06/02/2017 16.29
Ogg: Re: Change device every reboot
Hi
Post by f***@libero.it
My raspberry PI change device ttyUSB0 ttyUSB1 ttyUSB2 each time I
reboot or restart gammu-smsd .
How can avoid it and align this device in gammu-config and gammu-smsd
configuration? I have after modification of gammu-config to restart
daemon gammu-smsd?
https://wammu.eu/docs/manual/faq/general.html#device-name-always-change
s-on-linux-how-to-solve-that
--
Michal Čihař | https://cihar.com/ | https://weblate.org/
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.
link/slashdot_______________________________________________
Gammu-users mailing list - https://lists.sourceforge.net/lists/listinfo/gammu-
users
f***@libero.it
2017-02-08 10:43:57 UTC
Permalink
I created a rule in /etc/udev/rules.d
ACTION=="add", SUBSYSTEMS=="usb", ATTRS{idProduct}=="1001", ATTRS{idVendor}=="
12d1", SYMLINK+="HuaweiMobile"
I put on gammu-config
as device /dev/HuaweiMobile and also on gammu-smsdrc,
restarted the rule
and the device
but still I cannot find the device with gammu identify.
HuaweiMobile E169.

Thanks
----Messaggio originale----
Data: 06/02/2017 16.29
Ogg: Re: Change device every reboot
Hi
Post by f***@libero.it
My raspberry PI change device ttyUSB0 ttyUSB1 ttyUSB2 each time I
reboot or restart gammu-smsd .
How can avoid it and align this device in gammu-config and gammu-smsd
configuration? I have after modification of gammu-config to restart
daemon gammu-smsd?
https://wammu.eu/docs/manual/faq/general.html#device-name-always-change
s-on-linux-how-to-solve-that
--
Michal Čihař | https://cihar.com/ | https://weblate.org/
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.
link/slashdot_______________________________________________
Gammu-users mailing list - https://lists.sourceforge.net/lists/listinfo/gammu-
users
f***@libero.it
2017-02-10 11:05:16 UTC
Permalink
The problem is that ttyUSB0 , 1, and 2 change at every reboot....
the result of  udevadm info --name=/dev/ttyUSB1 --attribute-walk    
command                
is:
looking at device '/devices/platform/bcm2708_usb/usb1/1-1/1-1.3/1-1.3:1.0
/ttyUSB0/tty/ttyUSB0':
    KERNEL=="ttyUSB0"
    SUBSYSTEM=="tty"
    DRIVER==""
  looking at parent device '/devices/platform/bcm2708_usb/usb1/1-1/1-1.3/1-1.3:
1.0/ttyUSB0':
    KERNELS=="ttyUSB0"
    SUBSYSTEMS=="usb-serial"
    DRIVERS=="option1"
    ATTRS{port_number}=="0"
  looking at parent device '/devices/platform/bcm2708_usb/usb1/1-1/1-1.3/1-1.3:
1.0':
    KERNELS=="1-1.3:1.0"
    SUBSYSTEMS=="usb"
    DRIVERS=="option"
    ATTRS{bInterfaceClass}=="ff"
    ATTRS{bInterfaceSubClass}=="ff"
    ATTRS{bInterfaceProtocol}=="ff"
    ATTRS{bNumEndpoints}=="03"
    ATTRS{supports_autosuspend}=="1"
    ATTRS{bAlternateSetting}==" 0"
    ATTRS{bInterfaceNumber}=="00"
    ATTRS{interface}=="Data Interface"
  looking at parent device '/devices/platform/bcm2708_usb/usb1/1-1/1-1.3':
    KERNELS=="1-1.3"
    SUBSYSTEMS=="usb"
    DRIVERS=="usb"
    ATTRS{bDeviceSubClass}=="00"
    ATTRS{bDeviceProtocol}=="00"
    ATTRS{devpath}=="1.3"
    ATTRS{idVendor}=="12d1"
    ATTRS{speed}=="12"
    ATTRS{bNumInterfaces}==" 3"
    ATTRS{bConfigurationValue}=="1"
    ATTRS{bMaxPacketSize0}=="64"
    ATTRS{busnum}=="1"
    ATTRS{devnum}=="4"
    ATTRS{configuration}==""
    ATTRS{bMaxPower}=="500mA"
    ATTRS{authorized}=="1"
    ATTRS{bmAttributes}=="a0"
    ATTRS{bNumConfigurations}=="1"
    ATTRS{maxchild}=="0"
    ATTRS{bcdDevice}=="0000"
    ATTRS{avoid_reset_quirk}=="0"
    ATTRS{quirks}=="0x0"
    ATTRS{version}==" 1.10"
    ATTRS{urbnum}=="104433"
    ATTRS{ltm_capable}=="no"
    ATTRS{removable}=="removable"
    ATTRS{idProduct}=="1001"
    ATTRS{bDeviceClass}=="00"
    ATTRS{product}=="HUAWEI Mobile"
  looking at parent device '/devices/platform/bcm2708_usb/usb1/1-1':
    KERNELS=="1-1"
    SUBSYSTEMS=="usb"
    DRIVERS=="usb"
    ATTRS{bDeviceSubClass}=="00"
    ATTRS{bDeviceProtocol}=="02"
    ATTRS{devpath}=="1"
    ATTRS{idVendor}=="0424"
    ATTRS{speed}=="480"
    ATTRS{bNumInterfaces}==" 1"
    ATTRS{bConfigurationValue}=="1"
    ATTRS{bMaxPacketSize0}=="64"
    ATTRS{busnum}=="1"
    ATTRS{devnum}=="2"
    ATTRS{configuration}==""
    ATTRS{bMaxPower}=="  2mA"
    ATTRS{authorized}=="1"
    ATTRS{bmAttributes}=="e0"
    ATTRS{bNumConfigurations}=="1"
    ATTRS{maxchild}=="3"
    ATTRS{bcdDevice}=="0200"
    ATTRS{avoid_reset_quirk}=="0"
    ATTRS{quirks}=="0x0"
    ATTRS{version}==" 2.00"
    ATTRS{urbnum}=="36"
    ATTRS{ltm_capable}=="no"
    ATTRS{removable}=="unknown"
    ATTRS{idProduct}=="9512"
    ATTRS{bDeviceClass}=="09"
  looking at parent device '/devices/platform/bcm2708_usb/usb1':
    KERNELS=="usb1"
    SUBSYSTEMS=="usb"
    DRIVERS=="usb"
    ATTRS{bDeviceSubClass}=="00"
    ATTRS{bDeviceProtocol}=="01"
    ATTRS{devpath}=="0"
    ATTRS{idVendor}=="1d6b"
    ATTRS{speed}=="480"
    ATTRS{bNumInterfaces}==" 1"
    ATTRS{bConfigurationValue}=="1"
    ATTRS{bMaxPacketSize0}=="64"
    ATTRS{authorized_default}=="1"
    ATTRS{busnum}=="1"
    ATTRS{devnum}=="1"
    ATTRS{configuration}==""
    ATTRS{bMaxPower}=="  0mA"
    ATTRS{authorized}=="1"
    ATTRS{bmAttributes}=="e0"
    ATTRS{bNumConfigurations}=="1"
    ATTRS{maxchild}=="1"
    ATTRS{bcdDevice}=="0306"
    ATTRS{avoid_reset_quirk}=="0"
    ATTRS{quirks}=="0x0"
    ATTRS{serial}=="bcm2708_usb"
    ATTRS{version}==" 2.00"
    ATTRS{urbnum}=="25"
    ATTRS{ltm_capable}=="no"
    ATTRS{manufacturer}=="Linux 3.6.11+ dwc_otg_hcd"
    ATTRS{removable}=="unknown"
    ATTRS{idProduct}=="0002"
    ATTRS{bDeviceClass}=="09"
    ATTRS{product}=="DWC OTG Controller"
  looking at parent device '/devices/platform/bcm2708_usb':
    KERNELS=="bcm2708_usb"
    SUBSYSTEMS=="platform"
    DRIVERS=="dwc_otg"
    ATTRS{hnp}=="HstNegScs = 0x0"
    ATTRS{srp}=="SesReqScs = 0x1"
    ATTRS{regvalue}=="invalid offset"
    ATTRS{hsic_connect}=="HSIC Connect = 0x1"
    ATTRS{guid}=="GUID = 0x2708a000"
    ATTRS{mode}=="Mode = 0x1"
    ATTRS{srpcapable}=="SRPCapable = 0x1"
    ATTRS{regdump}=="Register Dump"
    ATTRS{gpvndctl}=="GPVNDCTL = 0x00000000"
    ATTRS{ggpio}=="GGPIO = 0x00000000"
    ATTRS{hprt0}=="HPRT0 = 0x00001405"
    ATTRS{wr_reg_test}=="Time to write GNPTXFSIZ reg 10000000 times: 570 msecs
(57 jiffies)"
    ATTRS{hcd_frrem}=="HCD Dump Frame Remaining"
    ATTRS{mode_ch_tim_en}=="Mode Change Ready Timer Enable = 0x0"
    ATTRS{gnptxfsiz}=="GNPTXFSIZ = 0x01000306"
    ATTRS{remote_wakeup}=="Remote Wakeup Sig = 0 Enabled = 0 LPM Remote Wakeup
= 0"
    ATTRS{busconnected}=="Bus Connected = 0x1"
    ATTRS{hcddump}=="HCD Dump"
    ATTRS{gotgctl}=="GOTGCTL = 0x001c0001"
    ATTRS{spramdump}=="SPRAM Dump"
    ATTRS{grxfsiz}=="GRXFSIZ = 0x00000306"
    ATTRS{gsnpsid}=="GSNPSID = 0x4f54280a"
    ATTRS{gusbcfg}=="GUSBCFG = 0x00001700"
    ATTRS{hptxfsiz}=="HPTXFSIZ = 0x02000406"
    ATTRS{devspeed}=="Device Speed = 0x0"
    ATTRS{fr_interval}=="Frame Interval = 0x1d4c"
    ATTRS{rem_wakeup_pwrdn}==""
    ATTRS{bussuspend}=="Bus Suspend = 0x0"
    ATTRS{buspower}=="Bus Power = 0x1"
    ATTRS{hnpcapable}=="HNPCapable = 0x1"
    ATTRS{rd_reg_test}=="Time to read GNPTXFSIZ reg 10000000 times: 1200 msecs
(120 jiffies)"
    ATTRS{enumspeed}=="Device Enumeration Speed = 0x1"
    ATTRS{inv_sel_hsic}=="Invert Select HSIC = 0x0"
    ATTRS{regoffset}=="0xffffffff"
  looking at parent device '/devices/platform':
    KERNELS=="platform"
    SUBSYSTEMS==""
    DRIVERS==""
----Messaggio originale----
Data: 06/02/2017 16.46
Ogg: R: Re: Change device every reboot
once I found the rules, how to use udev command?
----Messaggio originale----
Data: 06/02/2017 16.29
Ogg: Re: Change device every reboot
Hi
Post by f***@libero.it
My raspberry PI change device ttyUSB0 ttyUSB1 ttyUSB2 each time I
reboot or restart gammu-smsd .
How can avoid it and align this device in gammu-config and gammu-smsd
configuration? I have after modification of gammu-config to restart
daemon gammu-smsd?
https://wammu.eu/docs/manual/faq/general.html#device-name-always-change
s-on-linux-how-to-solve-that
--
Michal Čihař | https://cihar.com/ | https://weblate.org/
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.
link/slashdot_______________________________________________
Gammu-users mailing list - https://lists.sourceforge.
net/lists/listinfo/gammu-
users
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Gammu-users mailing list - https://lists.sourceforge.net/lists/listinfo/gammu-
users
f***@libero.it
2017-02-10 12:20:45 UTC
Permalink
In other words

I created a rule in /etc/udev/rules.d
ACTION=="add", SUBSYSTEMS=="usb", ATTRS{idProduct}=="1001", ATTRS{idVendor}=="
12d1", SYMLINK+="HuaweiMobile"
I put on gammu-config
as device /dev/HuaweiMobile and also on gammu-smsdrc,
restarted the rule
and the device
but still I cannot find the device with gammu identify.
HuaweiMobile E169.

Thanks

Loading...