A

p

e

r

s

o

n

a

l

B

l

o

g

12d1:1001 Huawei Technologies

$ mkdir medion; cd medion
$ gem install serialport
$ curl -o medion.rb http://pastebin.com/raw.php?i=nm4nzmnf
$ curl -o pdu.rb http://pastebin.com/raw.php?i=qVFUak4D

Usage: medion.rb [options]
    -v, --[no-]verbose               Run verbosely
    -b, --[no-]balance               Print balance
    -d, --device STRING              Device file
    -p, --pin STRING                 Personal identification number
    -a, --ascii STRING               Convert ASCII
    -u, --pdu STRING                 Convert PDU

$ ruby medion.rb -d /dev/ttyUSB2 
    /dev/ttyUSB2 responding ...

    Manufacturer: huawei
    Model: E160
    Revision: 11.608.06.00.52

Gist, Huawei E1550 3G modem, MEDIONmobile web stick S4001