Manual ETH-DIO-4814Low Level Interface InformationThe following information is provided for users who cannot or choose to not useAIOETHW.dll. This is necessary in non-windows operating systems. For your referenceconsider reading the source code for AIOETHW.dll provided with your software install.More information is available in the HTML API reference installed in your software directoryPacket StructureA packet is a byte-lengthed string; the first byte is the length(in bytes) of the body. Apacket's body consists of a 4-byte ASCII type and zero or more bytes of payload.Defined packet types are as follows:Type Direction Meaning PayloadChNW M>SChangenetworksettings.IP address, subnet mask, and gateway IP address, each in 4-bytebig-endian format. For example, C0 A8 01 AE FF FF 00 00 C0 A801 01 for 192.168.1.174, 255.255.0.0, and 192.168.1.1. Deviceshould reply with W_OK or _Err.ChIP M>S Change IPaddress.4-byte big-endian IP address. For example, C0 A8 01 AE for192.168.1.174. Device should reply with W_OK or _Err.ChSN M>S Changesubnet mask.4-byte big-endian subnet mask. For example, FF FF 00 00 for255.255.0.0. Device should reply with W_OK or _Err.ChGW M>SChangegateway IPaddress.4-byte big-endian gateway IP address. For example, C0 A8 01 01for 192.168.1.1. Device should reply with W_OK or _Err.RSta M>S Read status. No payload defined at this time. Device should reply with R_OKor _Err.RADI M>S Read "all"DIO data.No payload defined at this time. Device should reply with R_OKor _Err.RPDI Reserved for reading partial DIO data.WADO M>S Write "all"DIO data.1-byte length of DIO data, then DIO data. For example, 06 01 0204 08 10 20 to set bit 0 on the first byte of DIO, bit 1 on the nextbyte of DIO, etc. up to bit 5 on the last byte of DIO. Device shouldreply with W_OK or _Err.WPDO M>S Write partialDIO data.1-byte length of mask+DIO data, then mask, then DIO data. Eachbit set in mask corresponds to a bit in DIO data to write. Forexample, 0C 03 00 00 00 00 00 01 00 00 00 00 00 to set bit 0high and bit 1 low on the first byte of DIO, without changing bits 2-7 or any other byte. Device should reply with W_OK or _Err.W_OK S>M Writesucceeded.1-byte length of written data. For example, 01 to indicate successof a 1-byte write.R_OK S>M Readsucceeded.1-byte length of read data, then read data. For example, 03 42 494F to read 42h, 49h, and 4Fh._Err S>M Transactionfailed.4-byte little-endian Windows error code. For example, 42 00 0000 for ERROR_BAD_DEV_TYPE, indicating read from a write-only device or vice versa.Table 5-1: Packet Type Definitions