newlisp: SMS CDMA

Started by hs, July 20, 2008, 10:33:11 AM

Previous topic - Next topic

hs

I'd like to share my brief experiment with CDMA venus VT-21 modem (TIAN TUO XIN DIAN CDMA Technologies) for sending SMS



the modem works under windows (98/xp  tested) and linux (unreliable driver tho)



;COM4 from system property or /dev/ttyACM0 from dmesg

(set 'o (open "COM4" "update"))

;sending sms to 12345678 -- don't forget the r

(write-buffer o "AT*MB*MOREQ=0,12345678,,4098,TEXT TO SMSr")

;checking inbox -- again, don't forget the r

(write-buffer o "AT*MB*READTI=R,4098r"

(read-buffer o 'INBOX 102400)

(save "INBOX" 'INBOX)



The AT commands unfortunately are proprietary and differ from modem to modem; worse, not all CDMA devices (cellphones especially) have AT commands



I haven't used the code with GSM modem/phones mainly because I do not know how to connect to bluetooth device using newlisp (linux doesn't assign a node in /dev/ and i haven't tried it in xp ... no driver);



for now, ubuntu gui bluetooth+gnokii are sufficient for my GSM need so i won't actively look for solution



If you know how to use newlisp to talk to bluetooth devices, please let me know.  I love newlisp and would like to see it used in more places



thanks!