Modify

Opened 3 years ago

Last modified 3 years ago

#19089 reopened defect

4G XS Stick P14 does not work with the default usb-mode.json in Barrier Braker

Reported by: gabor+openwrt.org@… Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Barrier Breaker 14.07
Keywords: Cc:

Description

Hi,

I have an XS Stick P14, which already worked fine under 12.09 with some hacking around USB modeswitch. After upgrade to 14.07 it ceased working. Poking around the new configuration file I realised the wrong command string gets sent to the dongle (I already knew the correct one). So I changed the ordering in usb-mode.json, see the patch:

--- usb-mode.json.original	2015-03-02 23:11:26.000000000 +0100
+++ usb-mode.json	2015-03-02 23:11:52.000000000 +0100
@@ -2351,16 +2351,16 @@
 			}
 		},
 		"1c9e:f000": {
-			"*": {
+			":uMa=USB_Modem": {
 				"t_vendor": 7326,
 				"t_product": [ 36864, 38403, 38405, 38407, 39168 ],
-				"msg": [ 39 ],
+				"msg": [ 14 ],
 				"wait": 1
 			},
-			":uMa=USB_Modem": {
+			"*": {
 				"t_vendor": 7326,
 				"t_product": [ 36864, 38403, 38405, 38407, 39168 ],
-				"msg": [ 14 ],
+				"msg": [ 39 ],
 				"wait": 1
 			}
 		},

The initial USB ID is 1c9e:f000, after mode switch it becomes 1c9e:9605:

Bus 001 Device 004: ID 1c9e:9605 OMEGA TECHNOLOGY 

Perhaps it screws other devices with different "destination" USB ID's, I don't know.

Gabor

Attachments (0)

Change History (7)

comment:1 Changed 3 years ago by anonymous

My Longcheer WM71 USB modem had same problem, and worked by this patch. 1c9e:f000 to 1c9e:9603.

comment:2 Changed 3 years ago by blogic

latest upstream data files create this

"1c9e:f000": {

"*": {

"t_vendor": 7326,
"t_product": [ 36864, 38403, 38405, 38407, 39168 ],
"msg": [ 37 ],
"wait": 1

},
":uMa=USB_Modem": {

"t_vendor": 7326,
"t_product": [ 36864, 38403, 38405, 38407, 39168, 39424 ],
"msg": [ 12 ],
"wait": 1

}

},

does that work for you or does it also fail ?

comment:3 Changed 3 years ago by gabor+openwrt.org@…

I didn't try it, sorry. I am an end user, not a developer. Since my router works now properly, I would not like to screw up the working configuration.

comment:4 Changed 3 years ago by nbd

  • Resolution set to worksforme
  • Status changed from new to closed

please reopen if it fails with current trunk

comment:5 Changed 3 years ago by gabor+openwrt.org@…

OP here.

I upgraded to 15.05rc2 and it works with the default JSON file.

comment:6 Changed 3 years ago by gabor+openwrt.org@…

  • Resolution worksforme deleted
  • Status changed from closed to reopened

For some reason it does not work reliably. Might be my own device. Short story:

  1. I bought a 4G XSStick W21 to replace this, tried the new device, 1c9e:3003 is not yet in the JSON file, did not work.
  2. Plugged back the P14, usbmode detected it, but could not switch it to modem mode. Reboot did not help, either.
  3. I copied back my own JSON file (see the diff), it SWITCHED the device, started to work.
  4. Copied back the stock file from 15.05rc2, now usbmode WORKED.

So, using the same JSON file and same device in points 2. & 4., sometimes it works, sometimes it does not.

comment:7 Changed 3 years ago by gabor+openwrt.org@…

Perhaps #11245 is related. It's still open, after all.

Add Comment

Modify Ticket

Action
as reopened .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.