A peripheral assemblage (220-234) applied to a toy building system , the peripheral assemblage (220-234) comprising: a plug-in apparatus comprising: a battery module ; a wireless transmission module connectable to another assemblage of the toy building system in a wireless manner; and a plug-in connection module electrically connected to the battery module and the wireless transmission module ; and a function apparatus comprising: a function module configured to produce data or operate according to received data; a wired transmission module connectable to the another assemblage of the toy building system in a wired manner; a function connection module detachably connected to the plug-in connection module ; and a control module electrically connected to the function module , the wired transmission module , and the function connection module , and the control module configured to transmit and receive data via a data connection; wherein when the wired transmission module is connected to the another assemblage of the toy building system in the wired manner, the control module forms the data connection and a power connection to the another assemblage of the toy building system through the wired transmission module ; when the function connection module is detachably connected to the plug-in connection module , the control module forms the data connection to the another assemblage of the toy building system through the wireless transmission module and forms the power connection to the battery module . a battery module ; a wireless transmission module connectable to another assemblage of the toy building system in a wireless manner; and a plug-in connection module electrically connected to the battery module and the wireless transmission module ; and a function apparatus comprising: a function module configured to produce data or operate according to received data; a wired transmission module connectable to the another assemblage of the toy building system in a wired manner; a function connection module detachably connected to the plug-in connection module ; and a control module electrically connected to the function module , the wired transmission module , and the function connection module , and the control module configured to transmit and receive data via a data connection; wherein when the wired transmission module is connected to the another assemblage of the toy building system in the wired manner, the control module forms the data connection and a power connection to the another assemblage of the toy building system through the wired transmission module ; when the function connection module is detachably connected to the plug-in connection module , the control module forms the data connection to the another assemblage of the toy building system through the wireless transmission module and forms the power connection to the battery module . a function module configured to produce data or operate according to received data; a wired transmission module connectable to the another assemblage of the toy building system in a wired manner; a function connection module detachably connected to the plug-in connection module ; and a control module electrically connected to the function module , the wired transmission module , and the function connection module , and the control module configured to transmit and receive data via a data connection; wherein when the wired transmission module is connected to the another assemblage of the toy building system in the wired manner, the control module forms the data connection and a power connection to the another assemblage of the toy building system through the wired transmission module ; when the function connection module is detachably connected to the plug-in connection module , the control module forms the data connection to the another assemblage of the toy building system through the wireless transmission module and forms the power connection to the battery module . <EOS>