Last active
August 29, 2015 14:24
-
-
Save werty1st/16dedc1b48804ebbc411 to your computer and use it in GitHub Desktop.
umts modem 3g at command
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get install usb-modeswitch-\* | |
/usr/sbin/usb_modeswitch -v 12d1 -p 1446 -t option-zerocd | |
#dann neu reinstecken | |
udev erstellen: | |
/etc/udev/rules.d/70-usb-modeswitch.rules | |
# eigene udev-Regeln für UMTS-Sticks | |
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1446", RUN+="/usr/sbin/usb_modeswitch -v 12d1 -p 1446 -M '55534243123456780000000000000011062000000100000000000000000000'" | |
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1001", RUN+="/bin/bash -c 'modprobe option && echo 12d1 1001 > /sys/bus/usb-serial/drivers/option1/new_id'" | |
KERNEL!="ttyUSB*", GOTO="umts_rules_end" | |
ACTION!="add|change", GOTO="umts_rules_end" | |
KERNEL=="ttyUSB*", ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1001", SYMLINK+="umts" | |
LABEL="umts_rules_end" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get install gammu | |
/home/ronny/.gammurc | |
[gammu] | |
port = /dev/ttyUSB0 | |
model = | |
connection = at19200 | |
synchronizetime = yes | |
logfile = | |
logformat = nothing | |
use_locking = | |
gammuloc = | |
apt-get install gammu-smsd | |
/etc/gammu-smsdrc | |
port = /dev/ttyUSB0 | |
/etc/init.d/gammu-smsd restart | |
restart erforderlich sonst | |
Failed to allocate shared memory segment!, Error 2: Datei oder Verzeichnis nicht gefunden | |
gammu-smsd-monitor[23982]: Mapped POSIX RO shared memory at 0x7f0413489000 | |
Client: Gammu 1.33.0 on Linux, kernel 3.19.0-22-generic (#22-Ubuntu SMP Tue Jun 16 17:15:15 UTC 2015) compiler GCC 4.8 | |
PhoneID: | |
IMEI: XXXXXXXX | |
Sent: 0 | |
Received: 6 | |
Failed: 0 | |
BatterPercent: 0 | |
NetworkSignal: 78 | |
https://github.com/browndav/gammu-json | |
apt-get install libgammu-dev | |
ln -s /etc/gammu-smsdrc /etc/gammurc | |
reload modem | |
modprobe --remove-dependencies option | |
modprobe option | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get install socat | |
socat - /dev/ttyUSB0,crnl | |
ATi | |
Manufacturer: huawei | |
Model: E160 | |
Revision: 11.604.18.01.00 | |
IMEI: xxx | |
+GCAP: +CGSM,+FCLASS,+DS | |
OK |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment