or it is possible w/ chat to find out device IMEI?Yes. I could send atd*#06# and got a long number as answer. I wrote a script to give single commands, using chat in it. I will try to rewrite it later today, so that it is more generally useful.
Attempt to talk to modem using the chat command. ( could not test it, no modem here now ) #!/bin/bash # 2010-1007 Jasper / talk to a USB-modem exit_msg () { echo -e $1; exit; } modem_device=/dev/ttyUSB0 [ -e $modem_device ] || exit_msg "no modem at $modem_device ?" modem_chat_script=/tmp/modem_chat_script [ -n "$1" ] || exit_msg "use: modem_cmd -command- " echo "ABORT ERROR" > $modem_chat_script echo "\"\" $1" >> $modem_chat_script echo "OK \"\"" >> $modem_chat_script echo chat -E -s -V -f $modem_chat_script <$modem_device >$modem_device # ( or: /usr/sbin/chat .... ) echo