Hi E,
It should have been:
"ATDMCONNECT"+Chr$(13)+Chr$(10) and
"ATATAT"+Chr$(13)+Chr$(10)
My computer went wonky, and would allow me to edit, so I turned it off.
They were suggestions, but I think the proper commands are as we had them, AT+DMOCONNECT <CR><LF>, with perhaps changes like CD LF and no <>, as the data sheet states ASCII.
C
You mean "AT+DMCONNECT"+chr(13)+chr(10) ??
That would seem to be the correct format based on earlier posts.
Any text on the web (or manuals) that shows <CR> or <LF> means those are to be replaced with their binary equivalent, like chr$(13) and so on. Some terminal emulators just send <CR>, some send both. Some send neither unless instructed to do so. Oshonsoft compiler has a directive called CrLf, which inserts those binary values as a string. So, your string could read:
"AT+DMCONNECT"+CrLf
as Eric shows.
EDIT: BUG in Oshonsoft concatenating strings on standard pic compiler for 16F690 (not tested on PIC16 or PIC18)!
Camerart, you may be a victim of a faulty compiler concatenating strings...
I was playing around with the +chr(13) type of strings, and the compiler seems to mess up when concatenating on one line. For example, making a string and adding "CrLf" seems to be ok. However, setting a string and adding +chr(13)+chr(10) corrupts the string!
Below is sample code I ran in SIM, and set watch variables.
Dim i1 As Byte
Dim i2 As Byte
Dim i3 As Byte
Dim i4 As Byte
Dim j As String
j = "A" + CrLf
'Above works ok, get 3 byte string A plus CR and LF
i1 = Asc(MidStr(j, 1, 1))
i2 = Asc(MidStr(j, 2, 1))
i3 = Asc(MidStr(j, 3, 1))
i4 = Asc(MidStr(j, 4, 1))
j = "" 'Clear (not necessary, makes no difference)
j = "A" + Chr(13) + Chr(10)
i1 = Asc(MidStr(j, 1, 1))
i2 = Asc(MidStr(j, 2, 1))
i3 = Asc(MidStr(j, 3, 1))
i4 = Asc(MidStr(j, 4, 1))
'Above messes up, puts in double A and chr(10) !!
j = "A"
j = j + Chr(13)
j = j + Chr(10)
'Above concatenation, one at a time, works ok
i1 = Asc(MidStr(j, 1, 1))
i2 = Asc(MidStr(j, 2, 1))
i3 = Asc(MidStr(j, 3, 1))
i4 = Asc(MidStr(j, 4, 1))