Discussion in "Embedded GSM Development" started by    hmn16    Jul 26, 2017.
Wed Jul 26 2017, 06:38 am
#1
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.
Thu Jul 27 2017, 01:05 am
#2
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.





[ Edited Thu Jul 27 2017, 03:29 am ]

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

Davidbab
Tue Apr 23 2024, 10:41 am
Richardrit
Tue Apr 23 2024, 09:54 am
HenryLaf
Mon Apr 22 2024, 03:50 pm
bleradrar
Mon Apr 22 2024, 06:38 am
ppu-pro_ka
Sun Apr 21 2024, 07:39 pm
Infewow
Sun Apr 21 2024, 06:30 pm
HumanTak
Sun Apr 21 2024, 12:26 pm
Zacharybus
Sun Apr 21 2024, 02:45 am