# AC Socket


- The top is where goes in the AC plug, and the relay control inside would switch on and off the power in here.
- To get more AC socket connected in series, we would use an HT3.96 terminal connectors, as you can see the orange socket in the picture.
- The bottom part is mainly in charge of converting the AC power 220V to DC 5V to power the microprocessor STM32F030F4 and RS485 related circult. As you can see from the picture, two parts wire connected by M-Bus socket and a pair of power wire. A red led indication is placed on top.
## Product Features
- RS485 OUTLET
- Serial communication protocol: ModBUS-RTU
- support Mutiple device Series connection
- STM32F030F4
- Embedded 4x M3 Nut
- Build with BASE26
- INPUT : 100-240V
- OUTPUT: 10A
- Power Status indicator
## Include
- 1x AC Socket
## Applications
- Smart AC Socket Outlet With wire control of RS485
## Specification
| Resources | Parameter |
| Net weight | 120g |
| Gross weight | 158g |
| Product Size | 52*52*60mm |
| Package Size | 72*102*72mm |
| Send content | bytes | Send a message | Remarks |
| module address | 1 | AAH | 00H is the broadcast address |
| Function code | 1 | 05H | Write a single coil |
| start register address | 2 | 0000H | Coil 0 Address |
| Write data | 2 | FF00H | FF00H: indicates coil closure | 0000H: indicates coil disconnection |
| CRC check | 2 | XXXXH | CRC code of all previous data (CRC16) |
| Send content | bytes | Send a message | Remarks |
| module address | 1 | AAH | 00H is the broadcast address |
| Function code | 1 | 01H | read coil |
| start register address | 2 | 0000H | Coil 0 Address |
| Read quantity | 2 | 0001H | can only be 0001H |
| CRC check | 2 | XXXXH | CRC code of all previous data (CRC16) |
| Address | Function code | Return data length | Coil Status | CRC_L | CRC_H |
| AA | 01 | 01 | 01 | B0 | 6C |
| Send content | bytes | Send a message | Remarks |
| module address | 1 | AAH | 00H is the broadcast address |
| Function code | 1 | 41H | Set module address |
| start register address | 2 | 0000H | Address |
| module new address | 1 | 12H | 1 byte |
| CRC check | 2 | XXXXH | CRC code of all previous data (CRC16) |
| Send content | bytes | Send a message | Remarks |
| broadcast address | 1 | 00H | 00H is the broadcast address |
| Function code | 1 | 42H | Recovery address is AAH |
| start register address | 2 | 0000H | Address |
| CRC check | 2 | XXXXH | CRC code of all previous data (CRC16) |