udev and Kyocera 7135 smart phone.
From: Mark Healey (die_at_spammer.die)
Date: 01/30/05
- Next message: drwxr-xr-x: "Re: Grep For Line Containing 1or 2 Words"
- Previous message: Eric Haase: "Wireless internet concerns"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 30 Jan 2005 00:05:30 GMT
I'd like to use linux to sync my Kyocera 7135 smart phone. The problem is
that udev doesn't seem to recognize it correctly. When I plug the phone
in the cradle and hit the sync button /dev/ttyUSB0 and /dev/ttyUSB1 are
created but no /dev/pilot. I read the udev docs and can't quite figure
out what to fix. I know that I need to create a rules file that is parsed
before /etc/udev/rules.d/50-udev.rules. I believe that I have the
language of the files figured out. The problem is that I don't know the
values to look for. I was hoping to crib /etc/udev/rules.d/50-udev.rules
and place a modified version 05-marks.rules but can't find the lines
that create /dev/ttyUSB0 and /dev/ttyUSB1.
I also don't know the values of various SYSFS{whatever}. I tried udevinfo
on /dev/ttyUSB0 and /dev/ttyUSB1 and it isn't clear [output below]. Which
is the phone?
I understand that you can have a program executed depending upon what's
plugged in. I'd like to have a script that syncs the phone even when no
one is logged in.
TIA
Mark Healey
marknews(at)healeyonline(dot)com
udevinfo starts with the device the node belongs to and then walks up the
device chain, to print for every device found, all possibly useful attributes
in the udev key format.
Only attributes within one device section may be used together in one rule,
to match the device for which the node will be created.
looking at class device '/sys/class/tty/ttyUSB0':
SYSFS{dev}="188:0"
follow the class device's "device"
looking at the device chain at '/sys/devices/pci0000:00/0000:00:09.0/usb1/1-2/1-2.4/1-2.4:1.0/ttyUSB0':
BUS="usb-serial"
ID="ttyUSB0"
SYSFS{detach_state}="0"
looking at the device chain at '/sys/devices/pci0000:00/0000:00:09.0/usb1/1-2/1-2.4/1-2.4:1.0':
BUS="usb"
ID="1-2.4:1.0"
SYSFS{bAlternateSetting}=" 0"
SYSFS{bInterfaceClass}="ff"
SYSFS{bInterfaceNumber}="00"
SYSFS{bInterfaceProtocol}="00"
SYSFS{bInterfaceSubClass}="00"
SYSFS{bNumEndpoints}="04"
SYSFS{detach_state}="0"
looking at the device chain at '/sys/devices/pci0000:00/0000:00:09.0/usb1/1-2/1-2.4':
BUS="usb"
ID="1-2.4"
SYSFS{bConfigurationValue}="1"
SYSFS{bDeviceClass}="00"
SYSFS{bDeviceProtocol}="00"
SYSFS{bDeviceSubClass}="00"
SYSFS{bMaxPower}=" 2mA"
SYSFS{bNumConfigurations}="1"
SYSFS{bNumInterfaces}=" 1"
SYSFS{bcdDevice}="0100"
SYSFS{bmAttributes}="a0"
SYSFS{detach_state}="0"
SYSFS{devnum}="10"
SYSFS{idProduct}="0021"
SYSFS{idVendor}="0c88"
SYSFS{maxchild}="0"
SYSFS{speed}="12"
SYSFS{version}=" 1.00"
looking at the device chain at '/sys/devices/pci0000:00/0000:00:09.0/usb1/1-2':
BUS="usb"
ID="1-2"
SYSFS{bConfigurationValue}="1"
SYSFS{bDeviceClass}="09"
SYSFS{bDeviceProtocol}="00"
SYSFS{bDeviceSubClass}="00"
SYSFS{bMaxPower}="100mA"
SYSFS{bNumConfigurations}="1"
SYSFS{bNumInterfaces}=" 1"
SYSFS{bcdDevice}="0312"
SYSFS{bmAttributes}="e0"
SYSFS{detach_state}="0"
SYSFS{devnum}="3"
SYSFS{idProduct}="9254"
SYSFS{idVendor}="058f"
SYSFS{manufacturer}="ALCOR"
SYSFS{maxchild}="4"
SYSFS{product}="Generic USB Hub"
SYSFS{speed}="12"
SYSFS{version}=" 1.10"
looking at the device chain at '/sys/devices/pci0000:00/0000:00:09.0/usb1':
BUS="usb"
ID="usb1"
SYSFS{bConfigurationValue}="1"
SYSFS{bDeviceClass}="09"
SYSFS{bDeviceProtocol}="00"
SYSFS{bDeviceSubClass}="00"
SYSFS{bMaxPower}=" 0mA"
SYSFS{bNumConfigurations}="1"
SYSFS{bNumInterfaces}=" 1"
SYSFS{bcdDevice}="0206"
SYSFS{bmAttributes}="c0"
SYSFS{detach_state}="0"
SYSFS{devnum}="1"
SYSFS{idProduct}="0000"
SYSFS{idVendor}="0000"
SYSFS{manufacturer}="Linux 2.6.10-1.741_FC3 uhci_hcd"
SYSFS{maxchild}="2"
SYSFS{product}="UHCI Host Controller"
SYSFS{serial}="0000:00:09.0"
SYSFS{speed}="12"
SYSFS{version}=" 1.10"
looking at the device chain at '/sys/devices/pci0000:00/0000:00:09.0':
BUS="pci"
ID="0000:00:09.0"
SYSFS{class}="0x0c0300"
SYSFS{detach_state}="0"
SYSFS{device}="0x3038"
SYSFS{irq}="5"
SYSFS{local_cpus}="1"
SYSFS{subsystem_device}="0x8080"
SYSFS{subsystem_vendor}="0x1043"
SYSFS{vendor}="0x1106"
looking at the device chain at '/sys/devices/pci0000:00':
BUS=""
ID="pci0000:00"
SYSFS{detach_state}="0"
udevinfo starts with the device the node belongs to and then walks up the
device chain, to print for every device found, all possibly useful attributes
in the udev key format.
Only attributes within one device section may be used together in one rule,
to match the device for which the node will be created.
looking at class device '/sys/class/tty/ttyUSB1':
SYSFS{dev}="188:1"
follow the class device's "device"
looking at the device chain at '/sys/devices/pci0000:00/0000:00:09.0/usb1/1-2/1-2.4/1-2.4:1.0/ttyUSB1':
BUS="usb-serial"
ID="ttyUSB1"
SYSFS{detach_state}="0"
looking at the device chain at '/sys/devices/pci0000:00/0000:00:09.0/usb1/1-2/1-2.4/1-2.4:1.0':
BUS="usb"
ID="1-2.4:1.0"
SYSFS{bAlternateSetting}=" 0"
SYSFS{bInterfaceClass}="ff"
SYSFS{bInterfaceNumber}="00"
SYSFS{bInterfaceProtocol}="00"
SYSFS{bInterfaceSubClass}="00"
SYSFS{bNumEndpoints}="04"
SYSFS{detach_state}="0"
looking at the device chain at '/sys/devices/pci0000:00/0000:00:09.0/usb1/1-2/1-2.4':
BUS="usb"
ID="1-2.4"
SYSFS{bConfigurationValue}="1"
SYSFS{bDeviceClass}="00"
SYSFS{bDeviceProtocol}="00"
SYSFS{bDeviceSubClass}="00"
SYSFS{bMaxPower}=" 2mA"
SYSFS{bNumConfigurations}="1"
SYSFS{bNumInterfaces}=" 1"
SYSFS{bcdDevice}="0100"
SYSFS{bmAttributes}="a0"
SYSFS{detach_state}="0"
SYSFS{devnum}="10"
SYSFS{idProduct}="0021"
SYSFS{idVendor}="0c88"
SYSFS{maxchild}="0"
SYSFS{speed}="12"
SYSFS{version}=" 1.00"
looking at the device chain at '/sys/devices/pci0000:00/0000:00:09.0/usb1/1-2':
BUS="usb"
ID="1-2"
SYSFS{bConfigurationValue}="1"
SYSFS{bDeviceClass}="09"
SYSFS{bDeviceProtocol}="00"
SYSFS{bDeviceSubClass}="00"
SYSFS{bMaxPower}="100mA"
SYSFS{bNumConfigurations}="1"
SYSFS{bNumInterfaces}=" 1"
SYSFS{bcdDevice}="0312"
SYSFS{bmAttributes}="e0"
SYSFS{detach_state}="0"
SYSFS{devnum}="3"
SYSFS{idProduct}="9254"
SYSFS{idVendor}="058f"
SYSFS{manufacturer}="ALCOR"
SYSFS{maxchild}="4"
SYSFS{product}="Generic USB Hub"
SYSFS{speed}="12"
SYSFS{version}=" 1.10"
looking at the device chain at '/sys/devices/pci0000:00/0000:00:09.0/usb1':
BUS="usb"
ID="usb1"
SYSFS{bConfigurationValue}="1"
SYSFS{bDeviceClass}="09"
SYSFS{bDeviceProtocol}="00"
SYSFS{bDeviceSubClass}="00"
SYSFS{bMaxPower}=" 0mA"
SYSFS{bNumConfigurations}="1"
SYSFS{bNumInterfaces}=" 1"
SYSFS{bcdDevice}="0206"
SYSFS{bmAttributes}="c0"
SYSFS{detach_state}="0"
SYSFS{devnum}="1"
SYSFS{idProduct}="0000"
SYSFS{idVendor}="0000"
SYSFS{manufacturer}="Linux 2.6.10-1.741_FC3 uhci_hcd"
SYSFS{maxchild}="2"
SYSFS{product}="UHCI Host Controller"
SYSFS{serial}="0000:00:09.0"
SYSFS{speed}="12"
SYSFS{version}=" 1.10"
looking at the device chain at '/sys/devices/pci0000:00/0000:00:09.0':
BUS="pci"
ID="0000:00:09.0"
SYSFS{class}="0x0c0300"
SYSFS{detach_state}="0"
SYSFS{device}="0x3038"
SYSFS{irq}="5"
SYSFS{local_cpus}="1"
SYSFS{subsystem_device}="0x8080"
SYSFS{subsystem_vendor}="0x1043"
SYSFS{vendor}="0x1106"
looking at the device chain at '/sys/devices/pci0000:00':
BUS=""
ID="pci0000:00"
SYSFS{detach_state}="0"
- Next message: drwxr-xr-x: "Re: Grep For Line Containing 1or 2 Words"
- Previous message: Eric Haase: "Wireless internet concerns"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]