Questions tagged «gsm»

5
如何使用脚本重置USB设备?
我有一个不支持alwasys工作属性的USB GSM调制解调器(Huawei E367u-2)有时会重置(USB设备在日志中断开连接/重新连接),当它恢复时,它具有不同的ttyUSB编号。有时在启动时,usb_modswitch似乎没有被解雇。该计算机是运行Raspbian的Raspberry Pi。 我对此有一个简单的解决方案,CRON每分钟都会运行以下脚本: If WVDIAL is not running: Run WVDIAL 我想将脚本更改为: If /dev/ttyUSB0 is not present: If DevicePresent(12d1:1446): ResetDevice(12d1:1446) ElseIs DevicePresemt(12d1:1506) ResetUSB(12d1:1506) If WVDIAL is not running: Run WVDIAL 显然,这是伪代码,但是我需要将以下几行内容串在一起,但我不知道如何做: 如果未运行,则会加载wvdial: #! /bin/sh # /etc/init.d/wvdial ### BEGIN INIT INFO # Provides: TheInternet # Required-Start: $remote_fs $syslog # Required-Stop: …
11 raspbian  usb  gsm 

2
通过华为3G加密狗E220发送和接收短信
我有一个华为E220 3G加密狗。我已经通过执行sakis3g脚本将其与Raspberry Pi设置为连接到Internet。现在,我想通过3g加密狗向Raspberry pi发送短信和从Raspberry pi接收短信。我应该怎么做。请提出一些方法。
8 raspbian  gsm 
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.