HJC18 control box have different versions, please check the cord labels on the top.
The control box has 5 left-to-right connectors: head recline motor (8-pin), foot recline motor (8-pin), head massage (01-pin), foot massage (01-pin), and USB (01-pin).
Richmat hjc18 control box replacement worked with bed motors and wireless bed remote, to control an adjustable bed frame recline
Reset coding button on the side to pairing to adjustable bed controller