Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to send Ctrl+z with gprs module

i want to send a picture with GPRS module and through a TCP connection to a server. but my picture contains some "1a" (CTRL+Z) value in some bytes. As we know this is the terminator character for sending sms or data with AT commands. how can I send ctrl+z as a byte of data ?

Also when sending process reaches to character \0, it stops and returns an error. I mean GPRS module sends ERROR to serial port. Example:

FF D8 FF E0 00 10

FF and D8 and FF and E0 will send successfully but error occurred at 00. what is the problem? thanks.

like image 951
s4eed Avatar asked Nov 04 '22 12:11

s4eed


1 Answers

I was working on a project to sen sms from pc using AT Commands. Here I was using following command for ctrl+z.

outputStream.write(26);
like image 87
Lucifer Avatar answered Dec 15 '22 05:12

Lucifer