Data Sheet
9/24/2015 GroveSerialRFProWiki
http://www.seeedstudio.com/wiki/index.php?title=Twig__Serial_RF_Pro_v0.9b 3/6
ConnectanotherGrove-SerialRFProtoSeeeduinousingthesamemethod.
ConfigandInquirymethods
ThemodulewillbereadyforConfigstatusifENABLEpinislow,CONFIGpinislow.ItwillbeinConfigiftheredandgreenLED
keeplighting.ThenyoucanConfig&inquiryonthemodule.
ConnectCONpintoLOW/GNDtoenterconfiguremode.
Sendcommandtomodifyandquerytheconfigofthemodule.Config&InquiryinstructiondescriptionseeReference
(http://www.seeedstudio.com/wiki/Grove_-_Serial_RF_Pro#Reference).
TheConfiginstructionformatisasAA+FA+[instruction]+[parameter].Theinstructionis1byte,theparameteristheHEXdataof
0-4bytes(inbig-endianordering,withthehighbytebeforethelowbyte).
Note:
1)DoremembertheUARTtransferspeed(defaultis9600,betternotchange)ifyoumakesomechange,oryouwon'tbeable
tocontrolthemodule.Theinstruction’stransferspeedwillchangeaccordinglyifchangesthetransferspeedofUART.The
rangeoftransferspeedoftheinstructionisfrom1.2Kbps–115.2Kbps.
2)LEDFunctionDescription:
TheredandgreenLEDwillflashwhenthereispowerandthemoduleisworking.
ThemodulewillbereadyforconfigurationmodeifEN(ENABLE)pinislow(defaultislow),CON(Config)pinislow.
Wheninconfigurationmode,theredandgreenLEDwillbothbesolidlylit.ThegreenandredLEDwillnotbesolidlylit
ifthemoduleisnotinconfigurationmode.
TheredLEDflashwhenthemoduleistransmitting,theredLEDwillbeoffwhenthetransmissionisfinished.
ThegreenLEDisoffwhenthemoduleiswaitingfordatatobereceived,thegreenLEDwillflashoncewhenthemodule
receivesdata.
CommunicationMode
UploadthebelowcodeintoSeeeduino,Pleaseclickhere(http://www.seeedstudio.com/wiki/Upload_Code)ifyoudonot
knowhowtoupload.
//senddataroutine
//linkbetweenthecomputerandtheSoftSerialShield
//at9600bps8‐N‐1
//ComputerisconnectedtoHardwareUART
//SoftSerialShieldisconnectedtotheSoftwareUART:D2&D3
#include<SoftwareSerial.h>
SoftwareSerialSoftSerial(11,10);//TX,RX
intbuffer[64];
intcount=0;
voidsetup()
{
SoftSerial.begin(9600);//theSoftSerialbaudrate