Data Sheet
29
ETHERIO24TCPDATASHEET
AutoScanConfiguration
TheAutoScanmodewillallowthemoduletooriginatecommunicationwitha
remotedeviceoranotherEtherIO24module.Thismodeisveryusefulas
itallowsyoursoftwarethefreedomtonothavetopollthemoduleto
checkthestateoftheinputs.
AnoverviewoftheAutoScansettingscanbefoundintheAutoScansection
oftheWebInterfaceChapterabove.
BasicFunctionality
OnceAutoScanisconfigured,anyinputstatechangesontheconfigured
portwillautomaticallybesenttoahostoranotherEtherIO24module.
TheAutoScanresponseformatisshownbelow:
AutoScan
Response
Bytes Data
*PortValue 3
Port isthemodulePortinwhichthestatehad
changed
Valueisthenewvalueoftheport
TheAutoScanpacketisprefixedwitha‘*’toenableittobe
differentiatedfromanormalreadportreturn.Forexample,ifPortAis
configuredforAutoScan,anyinputpinchangeswillbesentintheform:
*A[New port value]
Tipsandtricks
• AutoscanwillonlyworkwithvaluesthataresettoInputs
• Don’tleavefloatinginputpinswhenusingautoscanasthepins
willchangestateandconstantlysenddata.Tiethemtoaknowstate
byusingthein‐builtPull‐ups,orsetthemasoutputsifnotbeing
used.
• TheAutoscanpacketsentbackfromtheEtherI/Ocontains3bytes
‘*’‘PortDesignator’‘HexPortValue’e.g.*A0datainpacketUDP
packetwillbe2a4100
• Besuretosetthescanperiodandscancountappropriatelyforyour
application
• UseaprogramcalledEtherealorWireSharktodebugthepackets
beingsentbackandforthfromthePCtotheEtherI/O24andvice
versa.(www.ethereal.comwww.wireshark.org)
• Knowwhatdataisbeingsentbackwiththevariouscommandssent.
E.g.SendingIO24willreturn12bytes,Readcommand2bytes,etc
©
2013ElexolPtyLtd Revision1.3