Hexadecimal SMS
Discussion in "Embedded GSM Development" started by hmn16 Jul 26, 2017.
Wed Jul 26 2017, 06:38 am
Hello, I am current;y trying to send a hexadecimal value in a SMS message to a mobile phone, but all I am getting is empty messages as the gsm module (Quectel M10) is still configured to IRA characters.
The module does support hex format I just can't figure out the correct command structure to use.
The module does support hex format I just can't figure out the correct command structure to use.
Thu Jul 27 2017, 01:05 am
A byte such as 0xfa will not pass through the system as bit 7 is set and that is not allowed.
However a hexadecimal number is just a number, so you could send it as
letter F and letter A ("FA") then the receiver converts back to 0xfa, decimal 250.
Another way is to send "250".
There are functions in 'c' to do string to integer conversions.
However a hexadecimal number is just a number, so you could send it as
letter F and letter A ("FA") then the receiver converts back to 0xfa, decimal 250.
Another way is to send "250".
There are functions in 'c' to do string to integer conversions.
[ Edited Thu Jul 27 2017, 03:29 am ]
Powered by e107 Forum System