Kernel configuration about HL7539


#1

Hi There.

I’m going to use HL7539 into Android board via USB. The kernel is 2.6.35.
Then I turn on the following kernel configurations:

  • CONFIG_USB_NET_CDCETHER
  • CONFIG_USB_NET_CDC_EEM
  • CONFIG_USB_NET_CDC_SUBSET
  • CONFIG_USB_ACM

If we connected the HL7539 via USB, the following messages is displayed(dmesg).
[ 3976.890000] usb 1-2: USB disconnect, address 2
[ 3976.900000] usb 1-2.1: USB disconnect, address 5
[ 3976.910000] usb 1-2.2: USB disconnect, address 4
[ 3978.980000] usb 1-2: new high speed USB device using ehci_ec42xx and address 6
[ 3979.130000] hub 1-2:1.0: USB hub found
[ 3979.130000] hub 1-2:1.0: 2 ports detected
[ 3979.420000] usb 1-2.1: new high speed USB device using ehci_ec42xx and address 7
[ 3979.530000] usb 1-2.1: rejected 1 configuration due to insufficient available bus power
[ 3979.540000] usb 1-2.1: no configuration chosen from 1 choice
[ 3980.340000] usb 1-2.2: new full speed USB device using ehci_ec42xx and address 8
[ 3980.450000] cdc_acm 1-2.2:1.0: ttyACM0: USB ACM device
[ 3982.660000] usb 1-2.1: USB disconnect, address 7
[ 3986.490000] usb 1-2.1: new high speed USB device using ehci_ec42xx and address 9
[ 3986.640000] cdc_acm 1-2.1:1.0: This device cannot do calls on its own. It is not a modem.
[ 3986.650000] cdc_acm 1-2.1:1.0: ttyACM1: USB ACM device
[ 3986.660000] cdc_acm 1-2.1:1.2: This device cannot do calls on its own. It is not a modem.
[ 3986.670000] cdc_acm 1-2.1:1.2: ttyACM2: USB ACM device
[ 3986.680000] cdc_acm 1-2.1:1.4: This device cannot do calls on its own. It is not a modem.
[ 3986.690000] cdc_acm 1-2.1:1.4: ttyACM3: USB ACM device

The lsusb is as follow (Sorry, We used the lsusb via busybox):
Bus 001 Device 001: ID 1d6b:0002
Bus 002 Device 001: ID 1d6b:0001
Bus 001 Device 013: ID 04b4:6560
Bus 001 Device 016: ID 1519:0443
Bus 001 Device 015: ID 1546:01a8

The ttyACM0 is GPS module which is including USB dongle. I want to distinguish the ttyACM1 is modem.

Should we need to set other kernel configuration?
Or, Could you guys please tell me the point which we should check?


#2

Additional information:

We could find following devices:

  • /dev/ACM0
  • /dev/ACM1 - 3

The kernel detail version is ‘Linux version 2.6.35.8-arm1+ *** (gcc version 4.5.1 (Sourcery G++ Lite 2010.09-50) )’.
(*** is user name of build machine)

If I tried on Ubuntu 18.10, this device is identified as cdc_acm modules. The following dmesg was that plugged this device to Ubuntu18.10 desktop:
[ 8001.094612] usb 1-13.2: USB disconnect, device number 8
[10900.656985] usb 1-6: new high-speed USB device number 10 using xhci_hcd
[10900.805193] usb 1-6: New USB device found, idVendor=04b4, idProduct=6560
[10900.805199] usb 1-6: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[10900.806071] hub 1-6:1.0: USB hub found
[10900.806177] hub 1-6:1.0: 2 ports detected
[10901.093012] usb 1-6.1: new high-speed USB device number 11 using xhci_hcd
[10901.194203] usb 1-6.1: New USB device found, idVendor=8087, idProduct=0716
[10901.194210] usb 1-6.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[10901.194471] usb 1-6.1: rejected 1 configuration due to insufficient available bus power
[10901.194475] usb 1-6.1: no configuration chosen from 1 choice
[10902.009040] usb 1-6.2: new full-speed USB device number 12 using xhci_hcd
[10902.114087] usb 1-6.2: New USB device found, idVendor=1546, idProduct=01a8
[10902.114094] usb 1-6.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[10902.114098] usb 1-6.2: Product: u-blox GNSS receiver
[10902.114102] usb 1-6.2: Manufacturer: u-blox AG - www.u-blox.com
[10902.115141] cdc_acm 1-6.2:1.0: ttyACM0: USB ACM device
[10905.371019] usb 1-6.1: USB disconnect, device number 11
[10909.177093] usb 1-6.1: new high-speed USB device number 13 using xhci_hcd
[10909.293877] usb 1-6.1: New USB device found, idVendor=1519, idProduct=0443
[10909.293882] usb 1-6.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[10909.293886] usb 1-6.1: Product: FIH7160
[10909.293890] usb 1-6.1: Manufacturer: Intel Corp.
[10909.293893] usb 1-6.1: SerialNumber: 352632071138956
[10909.317703] cdc_acm 1-6.1:1.0: ttyACM1: USB ACM device
[10909.319858] cdc_acm 1-6.1:1.2: ttyACM2: USB ACM device
[10909.321679] cdc_acm 1-6.1:1.4: ttyACM3: USB ACM device
[10909.358669] cdc_ncm 1-6.1:1.6: MAC-Address: 00:00:11:12:13:14
[10909.358676] cdc_ncm 1-6.1:1.6: setting rx_max = 16384
[10909.360014] cdc_ncm 1-6.1:1.6 wwan0: register ‘cdc_ncm’ at usb-0000:00:14.0-6.1, Mobile Broadband Network Device (NO ARP), 00:00:11:12:13:14
[10909.401334] cdc_ncm 1-6.1:1.8: MAC-Address: 00:00:11:12:13:16
[10909.401339] cdc_ncm 1-6.1:1.8: setting rx_max = 16384
[10909.402696] cdc_ncm 1-6.1:1.8 wwan1: register ‘cdc_ncm’ at usb-0000:00:14.0-6.1, Mobile Broadband Network Device (NO ARP), 00:00:11:12:13:16
[10909.453351] cdc_ncm 1-6.1:1.10: MAC-Address: 00:00:11:12:13:18
[10909.453357] cdc_ncm 1-6.1:1.10: setting rx_max = 16384
[10909.455409] cdc_ncm 1-6.1:1.10 wwan2: register ‘cdc_ncm’ at usb-0000:00:14.0-6.1, Mobile Broadband Network Device (NO ARP), 00:00:11:12:13:18
[10909.492439] cdc_ncm 1-6.1:1.12: MAC-Address: 00:00:11:12:13:1a
[10909.492445] cdc_ncm 1-6.1:1.12: setting rx_max = 16384
[10909.493951] cdc_ncm 1-6.1:1.12 wwan3: register ‘cdc_ncm’ at usb-0000:00:14.0-6.1, Mobile Broadband Network Device (NO ARP), 00:00:11:12:13:1a
[10909.546021] cdc_ncm 1-6.1:1.6 wwx000011121314: renamed from wwan0
[10909.601967] cdc_ncm 1-6.1:1.8 wwx000011121316: renamed from wwan1
[10909.621163] cdc_ncm 1-6.1:1.10 wwx000011121318: renamed from wwan2
[10909.641082] cdc_ncm 1-6.1:1.12 wwx00001112131a: renamed from wwan3

best regards.


#3

Hi mantaroh,

In your case, 1.0 is for both GNSS and modem.
usb 1-6.2 is for GNSS receiver
usb 1-6.1 for HL7539.
So I suppose you can distinguish by them.


#4

Hi Sierra_klin1,

I could access HL7539 via a serial connection. I misunderstood that this kernel doesn’t recognize these devices. However, kernel recognized them.

Thanks.


#5

Hi mantaroh,

Good to hear that. :slight_smile: