Specifications
CUSTOMATCOMMANDS
189 HSPA+ATCommandsReferenceGuide
ParametersandValues
<closure_type>
0
Abortingthecallsetupbyreceptionofacharacterisgenerallypossibleatany
timebeforetheDCEentersconnectedstate.Default:0.
1 AbortingthecallsetupisdisableduntiltheDCEentersconnectedstate.
ReadtoI2C#I2CRD
UsethiscommandtosenddatatoanI2CperipheralconnectedtomoduleGPIOs.
Testcommandreportsthesupportedlistofcurrentlyavailable<service>s.
Syntax
Command Commandtype
AT#I2CRD=<sdaPin>,<sclPin>,<deviceId>,<registerId>,<len>
AT#I2CRD=? Test
ParametersandValues
<sdaPin>
GPIOnumberforSDA.Validrangeis“anyinput/outputpin”.Todeterminethe
range,usetheTestcommand.
<sclPin>
GPIOnumbertobeusedforSCL.Validrangeis“anyoutputpin”Todeterminethe
range,usetheTestcommand.
<deviceId>
AddressoftheI2Cdevice,withtheLSB,use
dforread\writecommand.Itdoesnot
matteriftheLSBissetto0orto1.10bitaddressingsupported.
Valuemustbewritteninhexadecimalform,without0xbefore.
<registerId> Registertoreaddatafrom.Range:0‐255.
Valuehastobewritteninhexadecimalform(without0xbefore).
<len> Numberofdatatore
ceive.Range:1‐254.
DataReadfromI2CisdumpedinHex.SeeNotessection.
Notes
Ifdatarequestedaremorethandataavailableinthedevice,dummydata(normally0x00or0xff)isdumped.
AttheendoftheexecutionGPIOisrestoredtotheoriginalsetting.SeeAT#GPIOcommand.
Deviceaddress,registeraddresswheretoreadfrom\writeto,anddatebytesmustbewritteninhexadecimal
formwithout0x.
Examples
AT#I2CRD=2,3,20,10,12
#I2CRD: 00112233445566778899AABBCC
OK
PowerSavingModeRing#PSMRI
SetcommandenablesordisablestheRingIndicatorpinresponsetoanURCmessagewhilemodemisinpower
savingmode.
Ifenabled,anegativegoingpulseisgeneratedwhenURCmessageforspecificeventisinvoked.Thedurationof
thispulseisdeterminedbythevalueof<x>.