How to send Ctrl + z using gprs module

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

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

FF D8 FF E0 00 10

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

+4
source share
2 answers

I was working on a project to transfer sms from a PC using AT Commands. Here I used the following command for ctrl + z.

outputStream.write(26); 
+3
source

Try sending 0x1A or $1A if this does not work for type $ 1A.

-1
source

All Articles