Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/video/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Serial port my Huawei E3531的切换模式_Serial Port_Gsm_At Command_Huawei Mobile Services - Fatal编程技术网

Serial port my Huawei E3531的切换模式

Serial port my Huawei E3531的切换模式,serial-port,gsm,at-command,huawei-mobile-services,Serial Port,Gsm,At Command,Huawei Mobile Services,我用的是Mac OS X。我买了这个华为E3531,因为我需要用它作为GSM调制解调器,通过AT命令发送短信。连接很好,一切都很好,但我需要切换模式,以便它可以作为串行调制解调器工作,我可以通过屏幕命令连接到它 screen /dev/tty... 根据这篇文章,我正在尝试切换模式。问题是它不起作用。 我给你看我的动作。 首先,我需要找到此产品的供应商Id和产品Id,因此我启动以下命令: lsusb 我觉得这句话很有趣: 总线038设备003:ID 12d1:14dc华为技术有限公司华为 流

我用的是Mac OS X。我买了这个华为E3531,因为我需要用它作为GSM调制解调器,通过AT命令发送短信。连接很好,一切都很好,但我需要切换模式,以便它可以作为串行调制解调器工作,我可以通过屏幕命令连接到它

screen /dev/tty...
根据这篇文章,我正在尝试切换模式。问题是它不起作用。 我给你看我的动作。 首先,我需要找到此产品的供应商Id和产品Id,因此我启动以下命令:

lsusb
我觉得这句话很有趣:

总线038设备003:ID 12d1:14dc华为技术有限公司华为 流动的

因此,供应商Id为12d1,产品Id为14dc。 现在我想通过以下命令切换模式:

sudo usb_modeswitch -R -v 12d1 -p 14dc -W -M '55534243123456780000000000000011062000000100000000000000000000'
因此,它为我提供了以下日志:

MacBook-Pro-di-mac:usb-modeswitch-2.5.2 mac$ sudo ./usb_modeswitch -R -v 12d1 -p 14dc -W -M '55534243123456780000000000000011062000000100000000000000000000'
Password:
Take all parameters from the command line


 * usb_modeswitch: handle USB devices with multiple modes
 * Version 2.5.2 (C) Josua Dietze 2017
 * Based on libusb1/libusbx

 ! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor=  0x12d1
DefaultProduct= 0x14dc
MessageContent="55534243123456780000000000000011062000000100000000000000000000"

Look for default devices ...
  found USB ID 12d1:14dc
   vendor ID matched
   product ID matched
  found USB ID 05ac:8213
  found USB ID 05ac:0237
  found USB ID 0a5c:4500
  found USB ID 05ac:8403
  found USB ID 05ac:8242
  found USB ID 05ac:8507
 Found devices in default mode (1)
Access device 003 on bus 038
Get the current device configuration ...
Current configuration number is 1
Use interface number 0
 with class 2
Error: can't use storage command in MessageContent with interface 0; interface class is 2, expected 8. Abort
如何解决此错误?我也搜索了其他论坛、网站等,但没有找到满意的解决方案。 谢谢您

I使用此过程“解决”了问题,不再使用AT命令: