c++ - How to pass AT commands to dongle? -


i need send sms via usb dongle, , possible through @ commands. but, have no idea how pass @ commands dongle. internet has no well. can please instruct me how pass @ commands dongle simple code snippet?

most usb dongles show serial port on pc. can connect terminal program appropriate com port , send @ commands. sending sms works this, pressing enter after each line:

at+cfun=1             --> full functionality at+cmgf=1             --> text mode sms at+cmgs="+12345678"   --> phone number > text goes here      --> sms text ctrl-z                -->  end sequence, 0x1a in hex 

programatically qt or other languages open serial connection appropriate port , send sequence this.

also, keep in mind not usb dongles support this.


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -