The invention discloses an
Internet of Things equipment
simulation online test method,
system and equipment and a medium. The method comprises the steps that information of equipment to be tested is collected and then imported into a
database through a
data information issuing platform; an equipment
simulation module pulls written equipment information from a
database to create an event cycle based on syncio, an independent simulator is instantiated for each piece of
Internet of Things equipment, an exclusive asynchronous
coroutine is created for each simulator, each simulator creates an independent
MQTT client side through aiomqtt to monitor a message channel of an instruction issued by an
Internet of Things platform, and the message channel is sent to
the Internet of Things platform; and analyzing and
processing the arrangement task, constructing equipment attributes and
event data, and reporting the equipment attributes and
event data to
the Internet of Things platform. According to the method, a simulator is adopted to replace real equipment for testing, multi-
coroutine concurrent scheduling in a single thread is realized through an asycio asynchronous
programming architecture and in combination with an aiomqtt asynchronous
MQTT client, the thread switching overhead of a traditional synchronous architecture is avoided, a
single server can support
parallel simulation of more equipment, and the method is simple and convenient to operate. And the
online test requirements of massive equipment can be met while the
test efficiency is improved.