* [usbserial] device 0421:069a is supported, in fact.
@ 2022-02-08 12:00 Felix Becker
2022-02-08 15:20 ` Greg KH
0 siblings, 1 reply; 7+ messages in thread
From: Felix Becker @ 2022-02-08 12:00 UTC (permalink / raw)
To: linux-usb
[-- Attachment #1: Type: text/plain, Size: 2307 bytes --]
Dear "linux-usb" mailing list people,
I was directed here by the email-bot of Greg Kroah-Hartman.
First I was contactim him directly, since at [1] it is written that
things regarding the `usbserial` driver should be directed to him,
which in turn I was getting from a question on where-to-address-this
which I asked here [2].
Here the issue I want to address:
I have a device which is ignored by any in-kernel driver, but when I
tell `usbserial` manually to drive that device (via
`modprobe usbserial vendor=0x0421 product=0x069a`), it provides two
serial ports where useful things can be made via the second.
It is a Nokia 130 mobile phone, and it provides an "AT"-style serial
interface where things like address book synchronisation can be made.
It has the following vendor:product number 0421:069a.
So I suggest to you to add that device as a supported device to
`usbserial`, so that hotplug works.
In `lsusb` it shows up as
`Nokia Mobile Phones 130 [RM-1035] (Charging only)`, so the string
`(Charging only)` should be removed then, too.
(The phone itself has two USB modes: "Memory card" (which will make it
behave as mass storage with access to the microSD-card) and a mode
which is called in the phone's menu as "Charging only", which is the
mode interesting here and which in fact is more than "carging only").
I have also made a Linux bugtracker issue out of this [3], but my
experience is that issues posted there are sometimes very unreliably
noticed (depending on the subsystem, some parts of the bugtracker seem
to not get attention at all). That's why I followed the suggestion in
[1] instead at first. I am still confused about what is the correct way
to give this information to the people able to deal with it properly.
[1] Linux kernel documentation "USB serial":
http://kernel.org/doc/html/latest/usb/usb-serial.html#generic-serial-driver
> For any questions or problems with this driver, please contact Greg
> Kroah-Hartman at greg@kroah.com
[2] Answer to the question where to address this on stackexchange:
http://unix.stackexchange.com/a/689577/133286
[3] Enhancement-Issue of this at the Linux bugtracker:
http://bugzilla.kernel.org/show_bug.cgi?id=215579
--
| sed 's/\([Mm]\)an[n]*/\1ensch/g'
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [usbserial] device 0421:069a is supported, in fact.
2022-02-08 12:00 [usbserial] device 0421:069a is supported, in fact Felix Becker
@ 2022-02-08 15:20 ` Greg KH
2022-02-08 19:15 ` Felix Becker
0 siblings, 1 reply; 7+ messages in thread
From: Greg KH @ 2022-02-08 15:20 UTC (permalink / raw)
To: Felix Becker; +Cc: linux-usb
On Tue, Feb 08, 2022 at 01:00:48PM +0100, Felix Becker wrote:
> Dear "linux-usb" mailing list people,
>
> I was directed here by the email-bot of Greg Kroah-Hartman.
>
> First I was contactim him directly, since at [1] it is written that
> things regarding the `usbserial` driver should be directed to him,
> which in turn I was getting from a question on where-to-address-this
> which I asked here [2].
>
>
> Here the issue I want to address:
>
>
> I have a device which is ignored by any in-kernel driver, but when I
> tell `usbserial` manually to drive that device (via
> `modprobe usbserial vendor=0x0421 product=0x069a`), it provides two
> serial ports where useful things can be made via the second.
>
> It is a Nokia 130 mobile phone, and it provides an "AT"-style serial
> interface where things like address book synchronisation can be made.
>
> It has the following vendor:product number 0421:069a.
>
> So I suggest to you to add that device as a supported device to
> `usbserial`, so that hotplug works.
>
> In `lsusb` it shows up as
> `Nokia Mobile Phones 130 [RM-1035] (Charging only)`, so the string
> `(Charging only)` should be removed then, too.
>
> (The phone itself has two USB modes: "Memory card" (which will make it
> behave as mass storage with access to the microSD-card) and a mode
> which is called in the phone's menu as "Charging only", which is the
> mode interesting here and which in fact is more than "carging only").
Can you provide the output of `lsusb -v -d 0421:069a` for us?
thanks,
greg k-h
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [usbserial] device 0421:069a is supported, in fact.
2022-02-08 15:20 ` Greg KH
@ 2022-02-08 19:15 ` Felix Becker
2022-02-24 13:35 ` Johan Hovold
0 siblings, 1 reply; 7+ messages in thread
From: Felix Becker @ 2022-02-08 19:15 UTC (permalink / raw)
To: linux-usb
[-- Attachment #1.1: Type: text/plain, Size: 375 bytes --]
On Tue, 8 Feb 2022 16:20:33 +0100, Greg KH <gregkh@linuxfoundation.org>
wrote about "Re: [usbserial] device 0421:069a is supported, in fact.":
> Can you provide the output of `lsusb -v -d 0421:069a` for us?
Attached (without `usbserial` loaded to specifically drive this phone):
`lsusb_0421:069a.nodriver.log`
--
This email has been sent from a computer.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: lsusb_0421:069a.nodriver.log --]
[-- Type: text/x-log, Size: 3265 bytes --]
Bus 001 Device 009: ID 0421:069a Nokia Mobile Phones 130 [RM-1035] (Charging only)
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x0421 Nokia Mobile Phones
idProduct 0x069a 130 [RM-1035] (Charging only)
bcdDevice 1.00
iManufacturer 1 Nokia
iProduct 2 Nokia 130 (RM-1035)
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 0x0037
bNumInterfaces 2
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 255 Vendor Specific Subclass
bInterfaceProtocol 255 Vendor Specific Protocol
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01 EP 1 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 255 Vendor Specific Subclass
bInterfaceProtocol 255 Vendor Specific Protocol
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Device Status: 0x0000
(Bus Powered)
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [usbserial] device 0421:069a is supported, in fact.
2022-02-08 19:15 ` Felix Becker
@ 2022-02-24 13:35 ` Johan Hovold
2022-02-24 18:28 ` Felix Becker
2022-02-26 17:47 ` Felix Becker
0 siblings, 2 replies; 7+ messages in thread
From: Johan Hovold @ 2022-02-24 13:35 UTC (permalink / raw)
To: Felix Becker; +Cc: linux-usb, Greg Kroah-Hartman
[-- Attachment #1: Type: text/plain, Size: 769 bytes --]
On Tue, Feb 08, 2022 at 08:15:36PM +0100, Felix Becker wrote:
> On Tue, 8 Feb 2022 16:20:33 +0100, Greg KH <gregkh@linuxfoundation.org>
> wrote about "Re: [usbserial] device 0421:069a is supported, in fact.":
>
> > Can you provide the output of `lsusb -v -d 0421:069a` for us?
>
> Attached (without `usbserial` loaded to specifically drive this phone):
> `lsusb_0421:069a.nodriver.log`
Thanks for reporting this. I've just sent you a patch adding a new
"simple" driver for Nokia phones that should allow you to use this
device without adding the device id manually.
You just need to remember to enable the USB_SERIAL_SIMPLE Kconfig
option in your kernel build.
Will you be able to test the patch and let us know if it works as
intended?
Johan
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [usbserial] device 0421:069a is supported, in fact.
2022-02-24 13:35 ` Johan Hovold
@ 2022-02-24 18:28 ` Felix Becker
2022-02-26 17:47 ` Felix Becker
1 sibling, 0 replies; 7+ messages in thread
From: Felix Becker @ 2022-02-24 18:28 UTC (permalink / raw)
To: linux-usb
[-- Attachment #1: Type: text/plain, Size: 1256 bytes --]
On Thu, 24 Feb 2022 14:35:48 +0100, Johan Hovold <johan@kernel.org>
wrote about "Re: [usbserial] device 0421:069a is supported, in fact.":
> On Tue, Feb 08, 2022 at 08:15:36PM +0100, Felix Becker wrote:
>
> > On Tue, 8 Feb 2022 16:20:33 +0100, Greg KH
> > <gregkh@linuxfoundation.org> wrote about "Re: [usbserial] device
> > 0421:069a is supported, in fact.":
> > > Can you provide the output of `lsusb -v -d 0421:069a` for us?
> >
> > Attached (without `usbserial` loaded to specifically drive this
> > phone): `lsusb_0421:069a.nodriver.log`
>
> Will you be able to test the patch and let us know if it works as
> intended?
Yes, with some delay, I will come back to you.
I suppose also other Nokia phones will work like that, but I cannot
name any specific.
Regards & thanks!
--
Mamihlapinatapai:
"Der Blick zwischen zwei Personen, von denen jede wünschte, die andere
würde etwas initiieren, was beide begehren, aber keine wagt den ersten
Schritt zu tun."
"The look shared by two people, each wishing that the other will
initiate something that they both desire, but are unwilling to suggest
or start themselves."
(Ein Wort aus der Sprache der "Yaghan" / A word from the language of
the "Yaghan").
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [usbserial] device 0421:069a is supported, in fact.
2022-02-24 13:35 ` Johan Hovold
2022-02-24 18:28 ` Felix Becker
@ 2022-02-26 17:47 ` Felix Becker
2022-02-28 8:51 ` Johan Hovold
1 sibling, 1 reply; 7+ messages in thread
From: Felix Becker @ 2022-02-26 17:47 UTC (permalink / raw)
To: linux-usb
[-- Attachment #1: Type: text/plain, Size: 3213 bytes --]
Hej,
On Thu, 24 Feb 2022 14:35:48 +0100, Johan Hovold <johan@kernel.org>
wrote about "Re: [usbserial] device 0421:069a is supported, in fact.":
> On Tue, Feb 08, 2022 at 08:15:36PM +0100, Felix Becker wrote:
> > On Tue, 8 Feb 2022 16:20:33 +0100, Greg KH
> > <gregkh@linuxfoundation.org> wrote about "Re: [usbserial] device
> > 0421:069a is supported, in fact.":
> > > Can you provide the output of `lsusb -v -d 0421:069a` for us?
> >
> > Attached (without `usbserial` loaded to specifically drive this
> > phone): `lsusb_0421:069a.nodriver.log`
>
> [...] I've just sent you a patch adding a new
> "simple" driver for Nokia phones that should allow you to use this
> device without adding the device id manually.
>
> [...]
>
> Will you be able to test the patch and let us know if it works as
> intended?
It works, but different than when I loaded the `usbserial` driver (not
`usb-serial-simple`) with the device ID manually:
I now get 4 (instead of 2) USB interfaces.
`dmesg` output when I connect the phone:
```
[ 160.876977] usb 1-2: new full-speed USB device number 9 using xhci_hcd
[ 161.060539] usb 1-2: New USB device found, idVendor=0421, idProduct=069a, bcdDevice= 1.00
[ 161.060549] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 161.060552] usb 1-2: Product: Nokia 130 (RM-1035)
[ 161.060554] usb 1-2: Manufacturer: Nokia
[ 161.140899] usbcore: registered new interface driver usbserial_generic
[ 161.140915] usbserial: USB Serial support registered for generic
[ 161.147248] usbcore: registered new interface driver usb_serial_simple
[ 161.147265] usbserial: USB Serial support registered for carelink
[ 161.147273] usbserial: USB Serial support registered for zio
[ 161.147282] usbserial: USB Serial support registered for funsoft
[ 161.147292] usbserial: USB Serial support registered for flashloader
[ 161.147304] usbserial: USB Serial support registered for google
[ 161.147312] usbserial: USB Serial support registered for libtransistor
[ 161.147320] usbserial: USB Serial support registered for vivopay
[ 161.147327] usbserial: USB Serial support registered for moto_modem
[ 161.147337] usbserial: USB Serial support registered for motorola_tetra
[ 161.147346] usbserial: USB Serial support registered for nokia
[ 161.147355] usbserial: USB Serial support registered for novatel_gps
[ 161.147364] usbserial: USB Serial support registered for hp4x
[ 161.147374] usbserial: USB Serial support registered for suunto
[ 161.147382] usbserial: USB Serial support registered for siemens_mpi
[ 161.147412] usb_serial_simple 1-2:1.0: nokia converter detected
[ 161.147514] usb 1-2: nokia converter now attached to ttyUSB0
[ 161.147582] usb 1-2: nokia converter now attached to ttyUSB1
[ 161.147610] usb_serial_simple 1-2:1.1: nokia converter detected
[ 161.147665] usb 1-2: nokia converter now attached to ttyUSB2
[ 161.152908] usb 1-2: nokia converter now attached to ttyUSB3
```
and in this case it is `/dev/ttyUSB2` which responds to `AT`-commands.
Via this interface, I can sync contacts.
Regards!
--
I'll catch you if you fall.
- floor
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [usbserial] device 0421:069a is supported, in fact.
2022-02-26 17:47 ` Felix Becker
@ 2022-02-28 8:51 ` Johan Hovold
0 siblings, 0 replies; 7+ messages in thread
From: Johan Hovold @ 2022-02-28 8:51 UTC (permalink / raw)
To: Felix Becker; +Cc: linux-usb
[-- Attachment #1: Type: text/plain, Size: 1535 bytes --]
On Sat, Feb 26, 2022 at 06:47:32PM +0100, Felix Becker wrote:
> Hej,
>
> On Thu, 24 Feb 2022 14:35:48 +0100, Johan Hovold <johan@kernel.org>
> wrote about "Re: [usbserial] device 0421:069a is supported, in fact.":
>
> > On Tue, Feb 08, 2022 at 08:15:36PM +0100, Felix Becker wrote:
> > > On Tue, 8 Feb 2022 16:20:33 +0100, Greg KH
> > > <gregkh@linuxfoundation.org> wrote about "Re: [usbserial] device
> > > 0421:069a is supported, in fact.":
> > > > Can you provide the output of `lsusb -v -d 0421:069a` for us?
> > >
> > > Attached (without `usbserial` loaded to specifically drive this
> > > phone): `lsusb_0421:069a.nodriver.log`
> >
> > [...] I've just sent you a patch adding a new
> > "simple" driver for Nokia phones that should allow you to use this
> > device without adding the device id manually.
> >
> > [...]
> >
> > Will you be able to test the patch and let us know if it works as
> > intended?
>
> It works, but different than when I loaded the `usbserial` driver (not
> `usb-serial-simple`) with the device ID manually:
>
> I now get 4 (instead of 2) USB interfaces.
Yeah, that's a mistake on my part. I didn't look closely enough at the
lsusb output when preparing the patch. Should be fixed in v2:
https://lore.kernel.org/r/20220228084919.10656-1-johan@kernel.org
> `dmesg` output when I connect the phone:
> and in this case it is `/dev/ttyUSB2` which responds to `AT`-commands.
>
> Via this interface, I can sync contacts.
Thanks for testing.
Johan
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2022-02-28 8:51 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-08 12:00 [usbserial] device 0421:069a is supported, in fact Felix Becker
2022-02-08 15:20 ` Greg KH
2022-02-08 19:15 ` Felix Becker
2022-02-24 13:35 ` Johan Hovold
2022-02-24 18:28 ` Felix Becker
2022-02-26 17:47 ` Felix Becker
2022-02-28 8:51 ` Johan Hovold
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).