CONTROL

  • Thread starter Thread starter Juanjo
  • Start date Start date
Hi,

As far as I remember, the code of this character is 26. So you could send a
byte with value 26 to the modem stream.

Hope this answers your question.
 
-----Original Message-----
Hi,

As far as I remember, the code of this character is 26. So you could send a
byte with value 26 to the modem stream.

Hope this answers your question.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

Juanjo said:
Hi, I need to know how can I send the CTRL + Z character
to a modem

.
thank you very much, I think I do it before, but I will
try to do it again. bye
 
I don´t know what is the problem but my gsm modem doesn´t
work with this lines of code

Buffer = "AT+CMGF = 1" + (char) 13;
oBuffer = (object)Buffer;
axNETComm1.set_Output(ref oBuffer);


Buffer = "AT+CSDH = 1" + (char) 13;
oBuffer = (object)Buffer;
axNETComm1.set_Output(ref oBuffer);

Buffer = "AT+CSMP = 17,167,0,0" +
(char) 13;
oBuffer = (object)Buffer;
axNETComm1.set_Output(ref oBuffer);

Buffer = "AT+CSCA
= '+34607003115'" + (char) 13;
oBuffer = (object)Buffer;
axNETComm1.set_Output(ref oBuffer);


Buffer = "AT+CMGS
= '+34624713696'" + (char) 13;
oBuffer = (object)Buffer;
axNETComm1.set_Output(ref oBuffer);

Buffer = "this is a SMS from my
computer" + (char) 26;
oBuffer = (object)Buffer;
axNETComm1.set_Output(ref oBuffer);



this is a part of the code of one example that I obtain
from AxNETCommOCX, any suggestion??
 
oBuffer = (object)Buffer;

I suppose the problem is with this (and similar) lines. You can try passing
the Buffer variable itself as an argument. Unfortunately, I have never
worked with the ActiveX you use so I probably cannot be more helpful.

Then, this type cast:

(char) 13

looks suspicious to me. You can try specifying special characters like this:

Buffer = "AT+CMGF = 1\x0d";

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

I don´t know what is the problem but my gsm modem doesn´t
work with this lines of code

Buffer = "AT+CMGF = 1" + (char) 13;
oBuffer = (object)Buffer;
axNETComm1.set_Output(ref oBuffer);


Buffer = "AT+CSDH = 1" + (char) 13;
oBuffer = (object)Buffer;
axNETComm1.set_Output(ref oBuffer);

Buffer = "AT+CSMP = 17,167,0,0" +
(char) 13;
oBuffer = (object)Buffer;
axNETComm1.set_Output(ref oBuffer);

Buffer = "AT+CSCA
= '+34607003115'" + (char) 13;
oBuffer = (object)Buffer;
axNETComm1.set_Output(ref oBuffer);


Buffer = "AT+CMGS
= '+34624713696'" + (char) 13;
oBuffer = (object)Buffer;
axNETComm1.set_Output(ref oBuffer);

Buffer = "this is a SMS from my
computer" + (char) 26;
oBuffer = (object)Buffer;
axNETComm1.set_Output(ref oBuffer);



this is a part of the code of one example that I obtain
from AxNETCommOCX, any suggestion??
 
Back
Top