B4R Question AT commands

davelew1s

Active Member
Licensed User
Longtime User
Is it possible to send and receive AT commands in B4r.
I have tried using this code

LoRa RYLR998 wait for transmission to complete before sending another​

by

Tim Chapman

but got nowhere. Any help
Thanks Dave.
 

Cableguy

Expert
Licensed User
Longtime User
I have worked with a GSM800 module that uses AT commands, sent by serial as strings... nothing else needed but the correct commands to send
 
Upvote 0

embedded

Active Member
Licensed User
Longtime User
Yes .it is possible....here an example...tested o
LORA RLY99:
Sub Command_Transmit_By_Lora(CMDType As String ,ID As String,Msg As String)
    Dim Command As String
    Dim Totalmsg As String
    Totalmsg=JoinStrings(Array As String(CMDType,",",ID,",",Msg,",",100))
    Command=JoinStrings(Array As String("AT+SEND=100",",",Totalmsg.Length,",",Totalmsg,CRLF))
    SerialNative2.WriteBytes(Command,0,Command.Length)
    Log("send lora tx=",Command)
    Timer1.Enabled=True
End Sub
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…