Disclosure of Invention
In order to solve the technical problems, the invention aims to provide a computer equipment connection system based on the internet of things, which is intelligently connected to a secondary play module or a mobile terminal according to the number of people in each room, the use condition of the secondary play module and the activity condition of people in the room, so that wireless streaming of audio and video data is realized, a user can continuously watch the audio and video data when walking into each room, and the continuity of user experience is ensured.
The technical problem to be solved by the invention is as follows:
A. how to connect each output device in the house through control realizes the continuity of audio and video playing when the user moves in the house.
The purpose of the invention can be realized by the following technical scheme:
a computer equipment connection system based on the Internet of things comprises a room labeling module, a human body identification module, a sleep monitoring module, a computer processing module, a streaming module, a main output module, an auxiliary output module, a main input module, a computer control module, a working state monitoring module and a mobile terminal;
the room marking module is used for importing a house type diagram, marking each room of the house as a bedroom, a living room, a toilet and a kitchen according to the house type diagram, marking the room where the computer is located as a main room, and marking other rooms as auxiliary rooms and numbering the auxiliary rooms;
the main input module is used for acquiring input information of a user;
the mobile terminal is used for acquiring input information of a user and receiving audio and video data;
the main output module and the main input module are both arranged in a main room and are in wired connection with a computer; the auxiliary output module is arranged in the auxiliary room and is in series flow connection with the computer, and the auxiliary output module is associated with the number of the corresponding auxiliary room through the room marking module;
each room is provided with a human body identification module which is used for monitoring the number of human bodies in each room;
each bedroom is internally provided with a sleep monitoring module which is used for monitoring the sleep state information of people in the bedroom;
the computer processing module is used for selecting a connection mode of audio and video data according to data collected by the working state monitoring module, the room marking module, the human body identification module and the sleep monitoring module, and the connection mode comprises streaming and wired transmission; the computer control module is also used for acquiring input information of one of the main input module or the mobile terminal, converting the input information into a control instruction, transmitting the control instruction to the computer processing module, and controlling the computer through the computer processing module;
the streaming module is used for transmitting audio and video data to one of the auxiliary output module or the mobile terminal according to data collected by the working state monitoring module, the room labeling module, the human body identification module and the sleep monitoring module;
the working state monitoring module is used for acquiring the working state of each auxiliary output module;
the mobile terminal positioning module is connected with the computer processing module and used for positioning a room where the mobile terminal is located.
Further, the connection method of the system is as follows:
s1, after the user plays audio and video data through the main input module, starting the human body recognition module of each room to obtain the initial number of people in each room;
s2, when the number of the initial people in the main room is reduced, the computer processing module is connected with the streaming module to acquire all auxiliary rooms with the increased number of the initial people as streaming rooms;
s3, for the streaming room with the initial number of people being 0, obtaining a secondary output module related to the streaming room;
when the streaming room has the associated auxiliary output module, the streaming module is connected with the auxiliary output module of the streaming room, the audio and video data are displayed through the auxiliary output module of the streaming room, and meanwhile, the computer control module is connected with the mobile terminal in the room, so that the mobile terminal only collects the input information of the user;
when no associated auxiliary output module exists in the streaming room, the computer control module and the computer processing module are connected with a mobile terminal in the room, and the mobile terminal acquires input information of a user and displays audio and video data;
s4, for the streaming room with the number of people being not 0, acquiring sleep state information of a sleep monitoring module in a bedroom in the streaming room;
if the sleep state information is in sleep, the computer control module and the computer processing module are connected with the mobile terminal in the room, and the mobile terminal is used for acquiring input information of a user and displaying audio and video data;
if the sleep state information is active, acquiring a secondary output module associated with the streaming room;
when the streaming room has the associated auxiliary output module, acquiring the working state of the auxiliary output module, if the working state is unused, establishing connection between the streaming module and the auxiliary output module of the streaming room, displaying audio and video data through the auxiliary output module of the streaming room, and establishing connection between the computer control module and a mobile terminal in the room so that the mobile terminal only collects input information of a user;
when the working state is in use or no associated auxiliary output module exists in the streaming room, the computer control module and the computer processing module are connected with the mobile terminal in the room, so that the mobile terminal collects input information of a user and displays audio and video data.
Further, the step of determining whether the number of the initial people increases or decreases is:
the human body identification module acquires the number of the real-time people, calculates the difference value between the number of the real-time people and the number of the initial people, judges that the number of the initial people is increased if the difference value is any positive number and continuously exceeds n seconds, and judges that the number of the initial people is reduced if the difference value is any negative number and continuously exceeds n seconds; after the judgment is finished, the real-time number of people at the time of the judgment is used as a new initial number of people.
Furthermore, before the streaming module starts streaming the audio and video, a confirmation request is sent to the mobile terminal, and the audio and video is automatically played after the user mobile terminal clicks the confirmation.
The invention has the beneficial effects that:
(1) when the user plays videos, the user can intelligently connect to the auxiliary playing module or the mobile terminal according to the number of people in each room, the using condition of the auxiliary playing module and the activity condition of people in the room, wireless streaming of audio and video data is achieved, the user can continuously watch the audio and video data when the user walks into each room, and continuity of user experience is guaranteed.
(2) The large-screen television in each auxiliary room is played preferentially, viewing experience is guaranteed, remote control is conducted through the intelligent terminal, and playing and control are achieved through the intelligent terminal for the room without the auxiliary playing device, so that portability and flexibility are guaranteed.
(3) Aiming at the auxiliary playing equipment which is used and the room where people have a rest, the other people are prevented from being disturbed, and playing and control are realized through the intelligent terminal.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, the embodiment provides a computer device connection system based on the internet of things, which includes a room labeling module, a human body identification module, a sleep monitoring module, a computer processing module, a streaming module, a main output module, an auxiliary output module, a main input module, a computer control module, a working state monitoring module, and a mobile terminal;
the room marking module is used for importing a house type diagram, marking each room of the house as a bedroom, a living room, a toilet and a kitchen according to the house type diagram, marking the room where the computer is located as a main room, and marking other rooms as auxiliary rooms and numbering the auxiliary rooms;
the main input module is used for acquiring input information of a user; the main input module can adopt a keyboard, a mouse and the like
The mobile terminal is used for acquiring input information of a user and receiving audio and video data; the mobile terminal is an intelligent tablet or an intelligent mobile phone, and the input information is streaming confirmation, volume adjustment, progress bar adjustment, startup and shutdown and the like.
The main output module and the main input module are both arranged in a main room and are in wired connection with a computer, the main output module and the main input are default input and output devices, and the main output module comprises display devices and audio playing devices, such as a display and a sound box; the auxiliary output module is arranged in an auxiliary room and is connected with a computer in a series flow mode, the auxiliary output equipment comprises an intelligent television and a sound device in a living room or a bedroom, and the auxiliary output module is associated with the number of the corresponding auxiliary room through the room marking module;
each room is provided with a human body identification module which is used for monitoring the number of human bodies in each room;
each bedroom is internally provided with a sleep monitoring module which is used for monitoring the sleep state information of people in the bedroom; if the sleep monitoring module adopts an intelligent bracelet or a sleep monitor, the sleep state information comprises activity and sleep.
The computer processing module is used for selecting a connection mode of audio and video data according to data collected by the working state monitoring module, the room marking module, the human body identification module and the sleep monitoring module, wherein the connection mode comprises streaming and wired transmission, and the connection transmission of the audio and video data can be realized through at least one mode; the computer control module is also used for acquiring input information of one of the main input module or the mobile terminal, converting the input information into a control instruction, transmitting the control instruction to the computer processing module, and controlling the computer through the computer processing module;
the streaming module is used for transmitting audio and video data to one of the auxiliary output module or the mobile terminal according to data collected by the working state monitoring module, the room labeling module, the human body identification module and the sleep monitoring module;
the working state monitoring module is used for acquiring the working state of each auxiliary output module;
the mobile terminal positioning module is connected with the computer processing module and used for positioning a room where the mobile terminal is located. And a wifi network can be adopted to be matched with gps, so that the room precision is positioned.
The connection method of the system is as follows:
s1, after the user plays audio and video data through the main input module, starting the human body recognition module of each room to obtain the initial number of people in each room; the connection system can be started only when the audio and video are played, and the user can conveniently continue to watch the audio and video in each room.
S2, when the number of the initial people in the main room is reduced, the situation that people leave the main room is indicated, the watching continuation is ensured by streaming the audio and video to the equipment in the room where the people are located, and the computer processing module is connected with the streaming module to obtain all the auxiliary rooms with the increased number of the initial people as streaming rooms; illustrating that persons walking out of the main room have entered these sub-rooms.
S3, for the streaming room with the initial number of people being 0, obtaining a secondary output module related to the streaming room; an initial number of people of 0 indicates that the room is unattended before entering a person and thus can be used at will.
When the streaming room has the associated auxiliary output module, it indicates that there is a device capable of streaming, at this time, the connection can be made directly, the audio and video are streamed to the playing device in the room for playing, the streaming module is connected with the auxiliary output module in the streaming room, the audio and video data are displayed through the auxiliary output module in the streaming room, and at the same time, the computer control module is connected with the mobile terminal in the room, so that the mobile terminal only collects the input information of the user; at the moment, the audio and video data are played through the television sound, and the intelligent terminal is used as a controller.
When no associated auxiliary output module exists in the streaming room, the computer control module and the computer processing module are connected with a mobile terminal in the room, and the mobile terminal acquires input information of a user and displays audio and video data; because the room is not provided with the auxiliary output module, the playing and control functions can be simultaneously completed through the intelligent terminal.
S4, for the streaming room with the initial number of people being not 0, indicating that people are originally in the room, further judging by considering the use condition of the room, and acquiring the sleep state information of the sleep monitoring module in the bedroom in the streaming room;
for a bedroom, if the sleep state information is in sleep, in order to not influence the sleep of other people, the computer control module and the computer processing module are connected with a mobile terminal in the room, and input information of a user is collected through the mobile terminal and audio and video data are displayed; at the moment, the playing and controlling functions are completed through the intelligent terminal.
If the sleep state information is in activity and the use condition of the auxiliary output module needs to be further judged, acquiring the auxiliary output module associated with the streaming room;
when the streaming room has the associated auxiliary output module, acquiring the working state of the auxiliary output module, if the working state is unused, the surface of the streaming room has the auxiliary output module and the streaming room is not used, establishing connection between the streaming module and the auxiliary output module of the streaming room, displaying audio and video data through the auxiliary output module of the streaming room, and establishing connection between the computer control module and the mobile terminal in the streaming room so that the mobile terminal only collects input information of a user; at the moment, the audio and video data are played through the television sound, and the intelligent terminal is used as a controller.
When the working state is that no associated auxiliary output module exists in the using or streaming room, which indicates that no auxiliary output module exists, the computer control module and the computer processing module are connected with the mobile terminal in the room, so that the mobile terminal collects input information of a user and displays audio and video data, and at the moment, the playing and controlling functions are simultaneously completed through the intelligent terminal.
The step of judging whether the initial number of people is increased or decreased comprises the following steps:
the human body identification module acquires the number of the real-time people, calculates the difference value between the number of the real-time people and the number of the initial people, if the difference value is any positive number and continuously exceeds n seconds, n can be set manually, if 30 seconds, the number of the initial people is determined to be increased, and if the difference value is any negative number and continuously exceeds n seconds, the number of the initial people is determined to be decreased; after the judgment is finished, the real-time number of people at the time of the judgment is used as a new initial number of people.
And before the streaming module starts streaming the audio and video, sending a confirmation request to the mobile terminal, and automatically playing the audio and video after clicking confirmation by the mobile terminal of the user. Or if the determination is not made after m seconds, the streaming is cancelled.
When the number of people in the main room is reduced, if the number of people in the room is reduced to 0, the main output module is disconnected, and the main output module is only connected through the streaming module, and if the number of people in the room is not 0, the main output module and the streaming module are simultaneously connected.
The present embodiment has the following use scenarios:
(1) when the video is played, such as live broadcast or match, the video is played and controlled through the main input module and the main output module by default, when the user needs to leave the main room, such as entering a bedroom from a living room to sleep or going to a toilet, when the user leaves the main room, the human body identification module of the main room detects that someone leaves, at the moment, the human body identification module of the auxiliary room detects that someone enters the auxiliary room, namely, the user enters the room, at the moment, whether the user has a rest or not and whether the auxiliary output module is occupied or not are judged, whether the television which is streamed to a large screen continues to be played or the television which is streamed to a mobile terminal continues to be played is judged according to whether the room does not have the auxiliary output module, whether the person is in rest or not, and whether the auxiliary output module is occupied or not.
(2) The use scenes of a single person or a plurality of persons can be covered by the equipment with a plurality of streams, for example, two persons are simultaneously removed from the main room, and the two persons walk into different rooms, and then the two persons can be streamed to the two rooms, so that the synchronous watching of the plurality of persons in the different rooms is realized.
The foregoing is merely exemplary and illustrative of the present invention and various modifications, additions and substitutions may be made by those skilled in the art to the specific embodiments described without departing from the scope of the invention as defined in the following claims.