Disclosure of Invention
In order to solve the technical problems in the prior art, the invention provides a communication system, a method and an activity monitoring system, when a plurality of slave machines need to communicate with a host machine, many-to-one communication is realized through frequency differentiation and switching, the requirement on hardware cost is reduced, and the cost is reduced.
A first aspect of an embodiment of the present invention provides a communication system, including: the system comprises a master machine and a slave machine, wherein the slave machine at least comprises the following two parts: a first slave and a second slave;
the host operates at a first frequency f1 in a first time period T1 of a communication cycle T, and operates at a second frequency f2 in a second time period T2 of the T, wherein T is T1+ T2; the f1 and f2 are different;
the working frequency of the first slave machine is f1, and the working frequency of the second slave machine is f 2;
the first slave sends first data to the master at both t1 and t2, and the second slave sends second data to the master at both t1 and t 2.
Optionally, t1 and t2 are equal.
Optionally, the host includes: the system comprises a host controller, a host radio frequency module and a host antenna;
the first slave and the second slave each include: the system comprises a slave controller, a slave radio frequency module and a slave antenna;
the slave controller is used for controlling the slave radio frequency module to send data through the slave antenna;
and the host controller is used for controlling the host radio frequency module to receive the data sent by the slave antenna through the host antenna.
Optionally, the host antenna is an omni-directional antenna; the slave antenna is a directional antenna.
Optionally, the master antenna and the slave antenna both receive and transmit radio frequency signals in a 2.45GHz band.
A second aspect of an embodiment of the present invention provides a communication method applied to the communication device of the first aspect, where the method includes:
the master receives first data sent by a first slave in a first time period T1 of a communication cycle T, and the working frequency of the master in the first time period T1 of the communication cycle T is a first frequency f 1;
the master receives second data sent by a second slave in a second time period T2 of the T, and the working frequency of the master in the second time period T2 of the T is a second frequency f2, wherein T is T1+ T2; the f1 and f2 are different;
the first slave sends first data at both t1 and t2, and the second slave sends second data at both t1 and t 2.
Optionally, t1 and t2 are equal.
A third aspect of an embodiment of the present invention provides an activity monitoring system, including: the system comprises a master machine and a slave machine which are installed indoors, wherein the slave machine at least comprises the following two parts: a first slave and a second slave;
the host operates at a first frequency f1 in a first time period T1 of a communication cycle T, and operates at a second frequency f2 in a second time period T2 of the T, wherein T is T1+ T2; the f1 and f2 are different;
the working frequency of the first slave machine is f1, and the working frequency of the second slave machine is f 2;
the first slave machine comprises a first type sensor, and the second slave machine comprises a second type sensor;
the first slave is installed in a first room, and the second slave is installed in a second room;
the first slave sends first activity data monitored by the first type of sensor to the master at both t1 and t2, and the second slave sends second activity data monitored by the second type of sensor to the master at both t1 and t 2.
Optionally, the activity detection system further includes: a server;
the host further comprises: a GSM module;
the host is also used for sending activity data to the server through the GSM module;
and the server is used for analyzing the activity of the monitored object according to the activity data.
Optionally, the master machine and the slave machine are both installed indoors within a first preset height range from the ground.
Compared with the prior art, the invention has at least the following advantages:
the communication system respectively allocates different working frequencies, namely a first frequency f1 and a second frequency f2, to the first slave machine and the second slave machine, the working frequency of the master machine in a first time period T1 of a communication cycle T is f1, and the first data sent by the first slave machine are received; receiving second data sent by a second slave machine at a second time period t2 with the working frequency f2, wherein the first slave machine sends the first data in the time t1 and the time t 2; the second slave transmits the second data at both t1 and t 2.
Therefore, according to the technical scheme of the invention, in a many-to-one communication system, different slave machines respectively have different working frequencies, the working frequencies of the slave machines are fixed, and the working frequency of the master machine is periodically jumped, so that the master machine can receive data sent by the multiple slave machines, and the master machine can be ensured to completely receive the data sent by the slave machines even if the synchronous clocks of the master machine and the slave machines have some differences due to the same contents sent by the slave machines in the time periods of the communication cycles t1 and t2, therefore, on one hand, the communication interference among the slave machines is effectively reduced due to the fact that the slave machines are distributed with different working frequencies, and on the other hand, the accuracy of the synchronous clocks between the master machine and the slave machines is reduced, so that the requirement on communication hardware can be reduced, and the communication cost is reduced.
Detailed Description
In order to make the technical solutions of the present invention better understood, 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.
In order to facilitate understanding of the technical solutions provided by the present invention, the following briefly describes the background art of the technical solutions of the present invention.
The inventor finds in research that, in the existing multiple access technology, when a plurality of user equipment communicate with a base station, the requirement on a synchronous clock for communication between the user equipment and the base station is high, so that the information which can be accurately transmitted by the user equipment and the base station can be ensured. For example, in frequency division multiple access FDMA, the operating frequencies of different user equipments are different, when a first user equipment transmits information at a time period t0 by using a frequency f, a base station must operate at the frequency f within a time period t0 so as to accurately receive the information transmitted by the first user equipment, and if the first user equipment and the base station are different in synchronization, the base station cannot completely receive the information transmitted by the first user equipment, resulting in partial information loss.
That is, with FDMA, the requirement for synchronization of the user equipment with the base station is high. However, for communication systems with general synchronization requirements, the hardware and software requirements are high, making it expensive if existing multiple access techniques are used.
Based on this, an embodiment of the present invention provides a communication system, which includes a master and slaves, where the slaves include at least a first slave and a second slave, an operating frequency of the first slave is f1, an operating frequency of the second slave is f2, and the master receives first data sent by the first slave at a first time period T1 of a communication cycle T, where the operating frequency of the master is f 1; receiving second data sent by a second slave machine at a second time period t2 with the working frequency f2, wherein the first slave machine sends the first data at the time periods t1 and t2, the second slave machine sends the second data at the time periods t1 and t2,
therefore, according to the technical scheme of the invention, in a many-to-one communication system, different slave machines respectively have different working frequencies, the working frequencies of the slave machines are fixed, and the working frequency of the master machine is periodically jumped, so that the master machine can receive data sent by the slave machines, and even if the synchronous clocks of the master machine and the slave machines have some differences due to the same contents sent by the slave machines in the time periods of the communication cycles t1 and t2, the situation of partial data loss caused by asynchronization can be avoided, therefore, on one hand, the interference of communication between the slave machines is effectively reduced due to the distribution of the different working frequencies of the slave machines, and on the other hand, the accuracy of the synchronous clocks between the master machine and the slave machines is reduced, so that the requirement on communication hardware can be reduced, and the communication cost is reduced.
In order to facilitate understanding of the present invention by those skilled in the art, a communication system provided by the present invention will be explained below with reference to an embodiment.
Example one
Referring to fig. 1A, a diagram of a communication system structure according to an embodiment of the present invention is shown.
The communication system provided by the embodiment comprises: a master 10 and a slave, wherein the slave comprises at least two of: a first slave 21 and a second slave 22.
The operating frequency of the host 10 is a first frequency f1 in a first time period T1 of a communication cycle T, and the operating frequency of the host 10 is a second frequency f2 in a second time period T2 of the T, wherein T is T1+ T2; the f1 and f2 are different.
The working frequency of the first slave 21 is f1, and the working frequency of the second slave 22 is f 2;
the first slave 21 sends first data to the master 10 at both t1 and t2, and the second slave 22 sends second data to the master 10 at both t1 and t 2.
The first time period T1 and the second time period T2 may be equal, that is, the communication cycle T is divided into two time periods, and the master 10 operates at different frequencies in the two different time periods, so that the data sent by the first slave 21 and the data sent by the second slave 22 may be received in the different time periods.
For convenience of understanding, referring to fig. 1B, which is a schematic diagram illustrating switching of the operating frequency of a host provided in this embodiment at different time periods, in fig. 1B, T1+ T2 is T, the operating frequency of the host is f1 during a time period T1, and the operating frequency is switched to f2 during a time period T2.
In this embodiment, the number of the slaves may be determined according to the scale of the communication system and the actual communication situation, and when the number of the slaves increases, different slave devices need to be allocated with different operating frequencies, so as to ensure that the different slave devices use different frequencies to communicate, thereby reducing mutual interference. For example, in the communication system, in addition to the first slave 21 and the second slave 22, there are a third slave and a fourth slave, the operating frequency of the third slave may be f3, and the operating frequency of the fourth slave may be f 4.
It can be understood that when the number of the slaves changes, the communication cycle needs to be divided into time periods corresponding to the number of the slaves, so that the master receives data sent by different slaves in different time periods. For example, when the communication system includes four slaves, the cycle T may be divided into four time periods, and the master receives the first data sent by the first slave at the first time period T1 with the operating frequency f 1; receiving second data sent by a second slave machine at a second time period t2 with the working frequency f 2; receiving third data sent by a third slave machine in a third time period t3 with the working frequency f 3; and receiving fourth data sent by the fourth slave machine in a fourth time period t4 with the working frequency of f 4.
For convenience of understanding, referring to another schematic diagram of switching the operating frequency of the host in different time periods shown in fig. 2, T1+ T2+ T3+ T4 is T, the operating frequency of the host in T1 is f1, the operating frequency of the host in T2 is f2, the operating frequency of the host in T3 is f3, the operating frequency of the host in T4 is T4, and the operating frequency of the host in the next communication period T is cyclically switched.
In this embodiment, each slave in the communication system transmits the same data in the whole communication cycle T, because the master receives the data transmitted by different slaves in a frequency switching manner, theoretically, the master can only receive part of the data transmitted by the slaves due to frequency hopping, for example, the data received by the master is only the data of the first slave at time T1, while the data transmitted by the first slave at time T2 cannot be received due to different operating frequencies of the master and the first slave, which results in data loss. Similarly, the second slave also appears.
To solve this problem, in this embodiment, the data transmitted by the slave during the time periods t1 and t2 must be the same, so as to avoid the data loss of the slave and ensure the communication quality. Moreover, the slave machines transmit the same data in the same communication cycle, so that the data sent by the slave machines can be completely received even if the master machine and the slave machines have some synchronization errors, the synchronization requirements are reduced, and the hardware and software requirements and the manufacturing cost of the communication equipment are further reduced.
For example, the first slave sends the first data to the master in time periods t1, t2, t3 and t 4; the second slave sends second data to the master in time periods t1, t2, t3 and t 4; the third slave sends third data to the master in time periods t1, t2, t3 and t 4; the fourth slave machines t1, t2, t3 and t4 all send fourth data to the master machine in time periods. According to the hopping cycle of the master, the working frequency of the master in the time period t3 is f3, the third data sent by the third slave is received, and the master loses a part of data due to the fact that the master is not synchronized in time and delay occurs. Because the working time of the master on f3 is fixed, the time for the master to jump is correspondingly delayed, and the third slave sends the third data in the time period t3 and the time period t4, the master can receive the lost data before jumping, thereby ensuring that the master can receive complete data from the third slave and ensuring the communication quality.
Therefore, according to the technical scheme of the invention, in a many-to-one communication system, different slave machines respectively have different working frequencies, the working frequencies of the slave machines are fixed, and the working frequency of the master machine is periodically jumped, so that the master machine can receive data sent by the multiple slave machines, and the master machine can be ensured to completely receive the data sent by the slave machines even if the synchronous clocks of the master machine and the slave machines have some differences due to the same content sent by the slave machines in the time periods of the communication cycles t1 and t2, therefore, on one hand, the interference of communication between the slave machines is effectively reduced due to the fact that different working frequencies are distributed to the different slave machines, and on the other hand, the accuracy of the synchronous clocks between the master machine and the slave machines is reduced, so that the requirement on communication hardware can be reduced, and the communication cost is reduced.
The first embodiment describes the communication between the master and the slave in the communication system, and the following description will be made with reference to specific components of the two pairs of the master and the slave according to the first embodiment
Example two
Referring to fig. 3, a block diagram of another communication system according to an embodiment of the present invention is shown.
In the present embodiment, the communication system includes a master 10, a first slave 20, and a second slave 30.
Wherein, host computer 10 includes: a host controller 11, a host radio frequency module 12 and a host antenna 13.
The first slave 20 and the third slave 30 each include: the system comprises a slave controller, a slave radio frequency module and a slave antenna.
It is understood that the first slave 20 comprises: a slave controller 21, a slave radio frequency module 22 and a slave antenna 23; the second slave 30 includes: a slave controller 31, a slave radio frequency module 32 and a slave antenna 33.
The slave controller 21 is configured to control the slave rf module 22 to transmit data through the slave antenna 23.
The slave controller 31 is configured to control the slave rf module 32 to transmit data through the slave antenna 33.
The master controller 11 is configured to control the master rf module 12 to receive data sent by the slave antenna 23 or the slave antenna 33 through the master antenna 13.
The master antenna 13, the slave antenna 23 and the slave antenna 33 all transmit and receive radio frequency signals in a 2.45G frequency band.
In this embodiment, the slave controller 21 controls the slave rf module 22 to transmit data through the slave antenna 23 by using the working frequency f 1; the slave controller 31 controls the slave rf module 32 to transmit data through the slave antenna 33 using the operating frequency f 2. The host controller 11 controls the host rf module 12 to receive data transmitted from the slave antenna 23 through the host antenna 13 at a first time period t1 with a working frequency f 1; at the second time period t2, the operating frequency is f2, and the data transmitted from the slave antenna 33 is received by the master antenna 13.
In some embodiments, the master antenna 13 is an omni-directional antenna, the slave antennas 23 and 33 are directional antennas.
The omnidirectional antenna radiates uniformly in 360 degrees in the horizontal direction; a directional antenna radiates over a range of angles in both the horizontal and vertical directions.
In practical application, because the energy of the data signal sent by the slave radio frequency module is constant and the attenuation is severe in the propagation process, if the antenna of the slave is an omnidirectional antenna, the energy of the data signal transmitted in each direction is small, and in addition, the attenuation in the propagation process causes the data signal to be weak and not to reach a target position, and finally the communication between the slave and the host cannot be realized, so that the antenna of the slave uses the directional antenna to transmit the data signal in a certain angle range, the data signal is ensured to reach the target position, and the communication between different devices is completed.
Through the communication system provided by the embodiment, the master controller controls the master radio frequency module to work at different frequencies in different time periods, so that data sent by different slaves is received through the master antenna, many-to-one communication is realized, and meanwhile, because the slaves send the same content in the time periods of the communication cycles t1 and t2, even if the synchronous clocks of the master and the slaves have some differences, the master can be ensured to completely receive the data sent by the slaves, so that on one hand, the interference of communication among the slaves is effectively reduced because different working frequencies are allocated to the different slaves, and on the other hand, the accuracy of the synchronous clocks between the master and the slaves is reduced, thereby reducing the requirement on communication hardware and reducing the communication cost.
Based on the communication system provided in the foregoing embodiment, the present embodiment further provides a communication method, which is described below with reference to the third embodiment.
EXAMPLE III
Referring to fig. 4, a flowchart of a communication method according to an embodiment of the present invention is shown.
The communication method described in this embodiment may be applied to the communication devices described in the first and second embodiments, and the method may include:
s401: the master receives the first data sent by the first slave in the first time period T1 of the communication cycle T, and the working frequency of the master is the first frequency f1 in the first time period T1 of the communication cycle T.
S402: the master receives second data sent by a second slave in a second time period T2 of the T, and the working frequency of the master in the second time period T2 of the T is a second frequency f2, wherein T is T1+ T2; the f1 and f2 are different.
It should be noted that the operating frequency of the first slave is f1, and it sends the first data at both t1 and t 2; the second slave operating frequency is f2, which sends the second data at both t1 and t 2.
In some embodiments, T1 and T2 are equal, that is, the communication cycle T is divided into two equal time periods, and the master receives the first data transmitted by the first slave in the first time period T1 and receives the second data transmitted by the second slave in the second time period T2. And continuously receiving the fifth data generated by the first slave in the first time period T1 of the next communication period T, and receiving the sixth data transmitted by the second slave in the second time period T2. And sequentially circulating, wherein the master receives data sent by different slaves in different time periods of the communication period T. The contents of the first data, the second data, the fifth data and the sixth data are different.
According to the communication method provided by the implementation, the working frequencies of the master machine in different time periods of one communication cycle are different so as to receive data sent by different slave machines, and because the slave machines send the same content in the communication cycles t1 and t2, even if the synchronous clocks of the master machine and the slave machines have some differences, the situation that partial data are lost due to asynchronization can be avoided, so that on one hand, the interference of communication between the slave machines is effectively reduced due to the fact that different working frequencies are distributed by the different slave machines, and on the other hand, the accuracy of the synchronous clocks between the master machine and the slave machines is reduced, so that the requirement on communication hardware can be reduced, and the communication cost is reduced.
The embodiment provides a communication system and a communication method, and many-to-one communication can be realized by using the communication system and the communication method, wherein many-to-one communication modes can be applied to many scenes, such as home care, smart home or nursing home and the like. Use house care for the old man as an example, the old man alone is at home, for in time knowing solitary old man's law of life and situation, can monitor the daily of the old man of solitary at home, sets up a plurality of monitoring facilities in the environment that the old man lives, utilizes a plurality of monitoring facilities to acquire old man's daily life state to the activity data that will acquire and be used for reflecting old man's life state sends for the host computer.
In order to achieve the monitoring purpose by using the above communication system, this embodiment further provides an activity monitoring system, which is described below with reference to the fourth embodiment.
Example four
Referring to fig. 5, a diagram of an activity monitoring system according to an embodiment of the present invention is shown.
The activity monitoring system in this embodiment includes: a master unit 10 and a slave unit installed indoors, wherein the slave unit includes at least two of: a first slave 20 and a second slave 30.
The operating frequency of the host 10 is a first frequency f1 in a first time period T1 of a communication cycle T, and the operating frequency of the host 10 is a second frequency f2 in a second time period T2 of the T, wherein T is T1+ T2; the f1 and f2 are different.
The working frequency of the first slave computer 20 is f1, and the working frequency of the second slave computer 30 is f 2.
The first slave 20 comprises a first type of sensor 201 and the second slave 30 comprises a second type of sensor 301.
The first slave 20 is installed in a first room, and the second slave 30 is installed in a second room.
In this embodiment, the number of slaves may be set according to the size of the house or the number of rooms occupied by the user. For example, since the environment where the elderly people live includes a plurality of rooms, or the living area is large, and if the number of slave devices is small, the activity of the elderly people may not be monitored comprehensively, a plurality of slave devices may be provided to monitor the activity of the elderly people in the room.
The type of the sensor included in the slave can be determined according to the actual application situation. If the slave is installed in the kitchen, a sensor included in the slave can be a pyroelectric sensor, and the body movement of the old people is detected through the pyroelectric sensor; if the slave is installed in a washroom, the sensor included in the slave can be an acceleration sensor, and the acceleration sensor is used for monitoring water flow so as to reflect the activity state of the old.
The first slave 20 sends the first activity data monitored by the first type sensor 201 to the master 10 at both the t1 and the t2, and the second slave 30 sends the second activity data monitored by the second type sensor 301 to the master 10 at both the t1 and the t 2.
The first slave machine 20 and the second slave machine 30 respectively monitor the activity conditions of the user in the first room and the second room in real time through respective sensors, and send the respective monitored activity data to the master machine.
In some embodiments, the activity monitoring system further comprises: a server 40; the host 10 further includes: a GSM module 101; the host 10 is further configured to send the activity data to the server 40 through the GSM module 101; the server 40 is configured to perform activity analysis on the monitored object according to the activity data.
The activity data may include first activity data transmitted by the first slave 20 and second activity data transmitted by the second slave 30.
In specific application, the server may receive activity data sent by the host through the ethernet, and perform activity analysis on the monitored object according to the received activity data, so as to obtain the activity of the monitored object in a certain time period.
In this embodiment, the host may connect to the ethernet through the base station by using its own GSM module, and send the activity data of the monitored object to the server through the ethernet. The communication protocol used when the host communicates with the server may be a TCP/IP protocol or a UDP protocol.
In practical application, if the relatives of the monitored object need to check the activity of the monitored object, the terminals can log in the server to obtain the activity of the monitored object. Of course, the server may be provided with a transmission cycle so that the server can transmit the counted activity amount of the object at regular time, so that the relatives of the object can know the activity amount of the object in time. The terminal device can be a mobile phone, a notebook computer, a tablet, a computer WEB page and the like.
It should be noted that, in this embodiment, the communication between the master and the slave may be realized by referring to the embodiments described in fig. 1A, fig. 1B, or fig. 2, and details are not repeated here.
With the activity monitoring system according to the present embodiment, the first slave and the second slave installed indoors monitor the activity of the object in the first room and the second room, respectively, and transmit the activity data monitored by the respective sensors to the master, the master receives the first activity data transmitted by the first slave at T1 of the communication cycle T, receives the second activity data transmitted by the second slave at T2, and transmits the activity data to the server, and the server analyzes the activity amount of the object based on the received activity data, thereby achieving the purpose of monitoring the activity amount of the object.
It should be understood that in the present application, "at least one" means one or more, "a plurality" means two or more. "and/or" for describing an association relationship of associated objects, indicating that there may be three relationships, e.g., "a and/or B" may indicate: only A, only B and both A and B are present, wherein A and B may be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of single item(s) or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", wherein a, b, c may be single or plural.
The foregoing is merely a preferred embodiment of the invention and is not intended to limit the invention in any manner. Although the present invention has been described with reference to the preferred embodiments, it is not intended to be limited thereto. Those skilled in the art can make numerous possible variations and modifications to the present teachings, or modify equivalent embodiments to equivalent variations, without departing from the scope of the present teachings, using the methods and techniques disclosed above. Therefore, any simple modification, equivalent change and modification made to the above embodiments according to the technical essence of the present invention are still within the scope of the protection of the technical solution of the present invention, unless the contents of the technical solution of the present invention are departed.