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

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -