4g modem DLINK DWR910
-
Yes, I used the command "camcontrol eject cd1" appears like this
ugen4.3: <mobile connect="">at usbus4 (disconnected)
umass0: at uhub5, port 2, addr 3 (disconnected)
da1 at umass-sim0 bus 0 scbus6 target 0 lun 0
da1: < SD Storage 0000> detached
cd1 at umass-sim0 bus 0 scbus6 target 0 lun 1
(da1:cd1: umass-sim0:0:< Mass Storage 0000>0: detached
0): Periph destroyed
(cd1:umass-sim0:0:0:1): Periph destroyed
ugen4.3: <mobile connect="">at usbus4
umass0: <mass storage="">on usbus4
da1 at umass-sim0 bus 0 scbus6 target 0 lun 0
da1: < SD Storage 0000> Removable Direct Access SCSI-2 device
da1: 40.000MB/s transfers
da1: Attempt to query device size failed: ILLEGAL REQUEST, Invalid command operation
da1: quirks=0x2 <no_6_byte>and the PPP interface still does not appear to configure…
</no_6_byte></mass></mobile></mobile> -
Check usbconfig after ejecting the virtual drive. Does the device change product ID?
Steve
-
before ejecting:
ugen4.3: <mobile connect="">at usbus4
umass0: <mass storage="">on usbus4
da1 at umass-sim0 bus 0 scbus6 target 0 lun 0
da1: < SD Storage 0000> Removable Direct Access SCSI-2 device
da1: 40.000MB/s transfers
da1: Attempt to query device size failed: ILLEGAL REQUEST, Invalid command operation
da1: quirks=0x2 <no_6_byte>cd1 at umass-sim0 bus 0 scbus6 target 0 lun 1
cd1: < Mass Storage 0000> Removable CD-ROM SCSI-2 device
cd1: 40.000MB/s transfers
cd1: 2MB (1312 2048 byte sectors)
cd1: quirks=0x10<10_BYTE_ONLY>ugen4.3: <mobile connect="" mobile="">at usbus4, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA)
bLength = 0x0012
bDescriptorType = 0x0001
bcdUSB = 0x0201
bDeviceClass = 0x0000 <probed by="" interface="" class="">bDeviceSubClass = 0x0000
bDeviceProtocol = 0x0000
bMaxPacketSize0 = 0x0040
idVendor = 0x2001
** idProduct = 0xa40d**
bcdDevice = 0x0228
iManufacturer = 0x0001 <mobile connect="">iProduct = 0x0002 <mobile connect="">iSerialNumber = 0x0003 <1139612372f4>
bNumConfigurations = 0x0001after ejecting:
ugen4.3: <mobile connect="">at usbus4 (disconnected)
umass0: at uhub5, port 1, addr 3 (disconnected)
da1 at umass-sim0 bus 0 scbus6 target 0 lun 0
da1: < SD Storage 0000> detached
cd1 at umass-sim0 bus 0 scbus6 target 0 lun 1
(da1:cd1: umass-sim0:0:< Mass Storage 0000>0: detached
0): Periph destroyed
(cd1:umass-sim0:0:0:1): Periph destroyed
ugen4.3: <mobile connect="">at usbus4
umass0: <mass storage="">on usbus4
da1 at umass-sim0 bus 0 scbus6 target 0 lun 0
da1: < SD Storage 0000> Removable Direct Access SCSI-2 device
da1: 40.000MB/s transfers
da1: Attempt to query device size failed: ILLEGAL REQUEST, Invalid command operation
da1: quirks=0x2 <no_6_byte>ugen4.3: <mobile connect="" mobile="">at usbus4, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA)bLength = 0x0012
bDescriptorType = 0x0001
bcdUSB = 0x0201
bDeviceClass = 0x0000 <probed by="" interface="" class="">bDeviceSubClass = 0x0000
bDeviceProtocol = 0x0000
bMaxPacketSize0 = 0x0040
idVendor = 0x2001
** idProduct = 0x7e38**
bcdDevice = 0x0228
iManufacturer = 0x0001 <mobile connect="">iProduct = 0x0002 <mobile connect="">iSerialNumber = 0x0003 <0123456789ABCDEF>
bNumConfigurations = 0x0002I noticed that it changes the "idProduct"</mobile></mobile></probed></mobile></no_6_byte></mass></mobile></mobile></mobile></mobile></probed></mobile></no_6_byte></mass></mobile>
-
DWR-910 has 2 configuration after mode switching, RNDIS as config #1 and CDC_ETHER as config #2.
After ejecting try running:
usbconfig -d ugen4.3 dump_all_config_desc
Steve
-
dump shows me all these device information:
ugen4.3: <mobile connect="" mobile="">at usbus4, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA)
Configuration index 0
bLength = 0x0009
bDescriptorType = 0x0002
wTotalLength = 0x0062
bNumInterfaces = 0x0003
bConfigurationValue = 0x0001
iConfiguration = 0x0000 <no string="">bmAttributes = 0x00a0
bMaxPower = 0x00faAdditional Descriptor
bLength = 0x08
bDescriptorType = 0x0b
bDescriptorSubType = 0x00
RAW dump:
0x00 | 0x08, 0x0b, 0x00, 0x02, 0xe0, 0x01, 0x03, 0x07Interface 0
bLength = 0x0009
bDescriptorType = 0x0004
bInterfaceNumber = 0x0000
bAlternateSetting = 0x0000
bNumEndpoints = 0x0001
bInterfaceClass = 0x00e0 <wireless controller="">bInterfaceSubClass = 0x0001
bInterfaceProtocol = 0x0003
iInterface = 0x0005 <rndis communications="" control="">Additional DescriptorbLength = 0x05
bDescriptorType = 0x24
bDescriptorSubType = 0x00
RAW dump:
0x00 | 0x05, 0x24, 0x00, 0x10, 0x01Additional Descriptor
bLength = 0x05
bDescriptorType = 0x24
bDescriptorSubType = 0x01
RAW dump:
0x00 | 0x05, 0x24, 0x01, 0x00, 0x01Additional Descriptor
bLength = 0x04
bDescriptorType = 0x24
bDescriptorSubType = 0x02
RAW dump:
0x00 | 0x04, 0x24, 0x02, 0x00Additional Descriptor
bLength = 0x05
bDescriptorType = 0x24
bDescriptorSubType = 0x06
RAW dump:
0x00 | 0x05, 0x24, 0x06, 0x00, 0x01Endpoint 0
bLength = 0x0007
bDescriptorType = 0x0005
bEndpointAddress = 0x0082 <in>bmAttributes = 0x0003 <interrupt>wMaxPacketSize = 0x0008
bInterval = 0x0009
bRefresh = 0x0000
bSynchAddress = 0x0000Interface 1
bLength = 0x0009
bDescriptorType = 0x0004
bInterfaceNumber = 0x0001
bAlternateSetting = 0x0000
bNumEndpoints = 0x0002
bInterfaceClass = 0x000a <cdc-data>bInterfaceSubClass = 0x0000
bInterfaceProtocol = 0x0000
iInterface = 0x0006 <rndis ethernet="" data="">Endpoint 0
bLength = 0x0007
bDescriptorType = 0x0005
bEndpointAddress = 0x0081 <in>bmAttributes = 0x0002 <bulk>wMaxPacketSize = 0x0200
bInterval = 0x0000
bRefresh = 0x0000
bSynchAddress = 0x0000Endpoint 1
bLength = 0x0007
bDescriptorType = 0x0005
bEndpointAddress = 0x0001 <out>bmAttributes = 0x0002 <bulk>wMaxPacketSize = 0x0200
bInterval = 0x0000
bRefresh = 0x0000
bSynchAddress = 0x0000Interface 2
bLength = 0x0009
bDescriptorType = 0x0004
bInterfaceNumber = 0x0002
bAlternateSetting = 0x0000
bNumEndpoints = 0x0002
bInterfaceClass = 0x0008 <mass storage="">bInterfaceSubClass = 0x0006
bInterfaceProtocol = 0x0050
iInterface = 0x0004 <mass storage="">Endpoint 0
bLength = 0x0007
bDescriptorType = 0x0005
bEndpointAddress = 0x0083 <in>bmAttributes = 0x0002 <bulk>wMaxPacketSize = 0x0200
bInterval = 0x0000
bRefresh = 0x0000
bSynchAddress = 0x0000Endpoint 1
bLength = 0x0007
bDescriptorType = 0x0005
bEndpointAddress = 0x0002 <out>bmAttributes = 0x0002 <bulk>wMaxPacketSize = 0x0200
bInterval = 0x0001
bRefresh = 0x0000
bSynchAddress = 0x0000Configuration index 1
bLength = 0x0009
bDescriptorType = 0x0002
wTotalLength = 0x0067
bNumInterfaces = 0x0003
bConfigurationValue = 0x0002
iConfiguration = 0x0000 <no string="">bmAttributes = 0x00a0
bMaxPower = 0x00faInterface 0
bLength = 0x0009
bDescriptorType = 0x0004
bInterfaceNumber = 0x0000
bAlternateSetting = 0x0000
bNumEndpoints = 0x0001
bInterfaceClass = 0x0002 <communication device="">bInterfaceSubClass = 0x0006
bInterfaceProtocol = 0x0000
iInterface = 0x0008 <cdc ethernet="" control="" model="" (ecm)="">Additional DescriptorbLength = 0x05
bDescriptorType = 0x24
bDescriptorSubType = 0x00
RAW dump:
0x00 | 0x05, 0x24, 0x00, 0x10, 0x01Additional Descriptor
bLength = 0x05
bDescriptorType = 0x24
bDescriptorSubType = 0x06
RAW dump:
0x00 | 0x05, 0x24, 0x06, 0x00, 0x01Additional Descriptor
bLength = 0x0d
bDescriptorType = 0x24
bDescriptorSubType = 0x0f
RAW dump:
0x00 | 0x0d, 0x24, 0x0f, 0x0a, 0x00, 0x00, 0x00, 0x00,
0x08 | 0xea, 0x05, 0x00, 0x00, 0x00Endpoint 0
bLength = 0x0007
bDescriptorType = 0x0005
bEndpointAddress = 0x0082 <in>bmAttributes = 0x0003 <interrupt>wMaxPacketSize = 0x0010
bInterval = 0x0009
bRefresh = 0x0000
bSynchAddress = 0x0000Interface 1
bLength = 0x0009
bDescriptorType = 0x0004
bInterfaceNumber = 0x0001
bAlternateSetting = 0x0000
bNumEndpoints = 0x0000
bInterfaceClass = 0x000a <cdc-data>bInterfaceSubClass = 0x0000
bInterfaceProtocol = 0x0000
iInterface = 0x0000 <no string="">Interface 1 Alt 1
bLength = 0x0009
bDescriptorType = 0x0004
bInterfaceNumber = 0x0001
bAlternateSetting = 0x0001
bNumEndpoints = 0x0002
bInterfaceClass = 0x000a <cdc-data>bInterfaceSubClass = 0x0000
bInterfaceProtocol = 0x0000
iInterface = 0x0009 <cdc ethernet="" data="">Endpoint 0
bLength = 0x0007
bDescriptorType = 0x0005
bEndpointAddress = 0x0081 <in>bmAttributes = 0x0002 <bulk>wMaxPacketSize = 0x0200
bInterval = 0x0000
bRefresh = 0x0000
bSynchAddress = 0x0000Endpoint 1
bLength = 0x0007
bDescriptorType = 0x0005
bEndpointAddress = 0x0001 <out>bmAttributes = 0x0002 <bulk>wMaxPacketSize = 0x0200
bInterval = 0x0000
bRefresh = 0x0000
bSynchAddress = 0x0000Interface 2
bLength = 0x0009
bDescriptorType = 0x0004
bInterfaceNumber = 0x0002
bAlternateSetting = 0x0000
bNumEndpoints = 0x0002
bInterfaceClass = 0x0008 <mass storage="">bInterfaceSubClass = 0x0006
bInterfaceProtocol = 0x0050
iInterface = 0x0004 <mass storage="">Endpoint 0
bLength = 0x0007
bDescriptorType = 0x0005
bEndpointAddress = 0x0083 <in>bmAttributes = 0x0002 <bulk>wMaxPacketSize = 0x0200
bInterval = 0x0000
bRefresh = 0x0000
bSynchAddress = 0x0000Endpoint 1
bLength = 0x0007
bDescriptorType = 0x0005
bEndpointAddress = 0x0002 <out>bmAttributes = 0x0002 <bulk>wMaxPacketSize = 0x0200
bInterval = 0x0001
bRefresh = 0x0000
bSynchAddress = 0x0000and nothing new in interfaces and interfaces / PPPs</bulk></out></bulk></in></mass></mass></bulk></out></bulk></in></cdc></cdc-data></no></cdc-data></interrupt></in></cdc></communication></no></bulk></out></bulk></in></mass></mass></bulk></out></bulk></in></rndis></cdc-data></interrupt></in></rndis></wireless></no></mobile>
-
Try running:
usbconfig -d ugen4.3 set_config 1
Does it appear as a USB Ethernet device? ue0?
If so you can add a usb quirk to make that always happen. Or add it as a shellcmd.
Steve
-
Great! Thanks
We are on the way … :)In interfaces now this is showing me "ue0", I tried to activate the interface but it still does not show me the port for the PPP settings for the modem model ...
-
Yes, it appears that modem cannot, easily, appear as a ppp device. It's running in 'router mode' (HiLink mode).
If you assign ue0 as you would any other interface and set it to dhcp it will probably get an IP and gateway. That gateway might be your provider directly or it might be the modem. You might be able to change that mode in the modem, try browsing to it.
Steve
-
Solved here, Steve! :)
That's it! I know the interface as DHCP, everything ok the LINK …
I'll set up a quirk usb now to finalize the settings ...Thanks a lot for the help!
-
No problem. :)
There are some issues. pfSense will have a mini freak out if one of it's assigned interfaces goes missing. It will not boot up again for example because ue0 is not present and it will leave you at the interfaces assign screen.
So that means, don't unplug the modem and also don't allow it to go into some power saving mode which some modems do.
In this case the device does not appear at all until it's been 'ejected' so that makes it even harder to work with. :-\
Using earlyshellcmd may not be early enough. You might have to do something with a devd script….
It may be possible to disable that virtual CD mode entirely from the modems gui, some do allow that.
Steve
-
Okay, I'll check these cases and monitor …
Thanks again!