The invention discloses an equipment discovery method and
system based on a hardware buffer area, a terminal and a storage medium, and the method comprises the steps: obtaining the equipment information of a
server, carrying out the message packaging of the equipment information, obtaining a discovery message, writing the
payload of the discovery message into the hardware buffer area of the
server, and obtaining the
payload of a sent message; performing first message header packaging
processing on the message sending
payload according to the local port number of the
server to obtain a target discovery message, and sending the target discovery message to the
client to obtain a server broadcast result; obtaining a response message payload in a hardware buffer area of the
client, and performing second message header packaging
processing on the response message payload to obtain a
target response message; and sending the
target response message to the server according to the server broadcast result to obtain a
client response result. According to the invention, the sending and response of the CoAP message in the soft
bus discovery process are completed through hardware, and the CPU
occupancy rate in the soft
bus discovery process is reduced.