Non-interfering household wireless communication system and networking method thereof

文档序号:1449024 发布日期:2020-02-18 浏览:12次 中文

阅读说明:本技术 一种互不干扰的户用无线通信系统及其组网方法 (Non-interfering household wireless communication system and networking method thereof ) 是由 徐国鹏 高纪凡 孙凯 董伟 全鹏 冯成 于 2019-11-09 设计创作,主要内容包括:本发明提供了一种互不干扰的户用无线通信系统及其组网方法,包括S1.更改待组网协调器和待组网协调器通信范围内所有路由从机的个人局域网ID为同一广播个人局域网ID;S2.由待组网协调器向所有指定路由发送修改指令并接收响应消息,指定路由修改个人局域网ID为待组网协调器的原个人局域网ID,非指定路由则恢复回各自的原个人局域网ID;S3.在所有指定路由修改完成后,待组网协调器恢复回原个人局域网ID,以由指定路由和待组网协调器组建待组网网络。本发明全程软件组网,方便高效,操作简单,省去了额外配置按键的过程,并且能够对同网络或不同网络内指定路由进行修改设置的同时保证相邻网络不受影响。(The invention provides a mutual noninterference user wireless communication system and a networking method thereof, which comprises S1, changing personal local area network IDs of a coordinator to be networked and all routing slave machines in the communication range of the coordinator to be networked into the same broadcasting personal local area network ID; s2, sending modification instructions to all the designated routes by the coordinator to be networked and receiving response messages, wherein the ID of the designated route modification personal local area network is the ID of the original personal local area network of the coordinator to be networked, and the IDs of the non-designated routes are recovered to the respective IDs of the original personal local area networks; and S3, after all the designated routes are modified, recovering the original personal area network ID by the coordinator to be networked so as to establish the network to be networked by the designated routes and the coordinator to be networked. The invention has the advantages of whole-course software networking, convenience, high efficiency and simple operation, saves the process of additionally configuring keys, and can modify and set the designated routes in the same network or different networks while ensuring that the adjacent networks are not influenced.)

1. A user wireless communication method without mutual interference is characterized by comprising a coordinator to be networked for establishing a network to be networked and a plurality of routing slave machines respectively positioned in the network to be networked and/or outside the network, and the method comprises the following steps:

s1, changing the personal local area network IDs of the coordinator to be networked and all the routing slave machines in the communication range of the coordinator to be networked into the same broadcasting personal local area network ID so that the coordinator to be networked can communicate with all the routing slave machines;

s2, sending modification instructions to all the designated routes by the coordinator to be networked and receiving response messages, wherein the ID of the designated route modification personal local area network is the ID of the original personal local area network of the coordinator to be networked, and the IDs of the non-designated routes are recovered to the respective IDs of the original personal local area networks;

and S3, after all the designated routes are modified, recovering the original personal area network ID by the coordinator to be networked so as to establish the network to be networked by the designated routes and the coordinator to be networked.

2. The method for wireless communication without interference according to claim 1, wherein in step S1, the coordinator to be networked broadcasts a change broadcast personal area network ID command to the surrounding networks through the cross-network communication technology in the zstack protocol stack to change the coordinator to be networked and all the routing slaves to the same broadcast personal area network ID.

3. The method according to claim 1 or 2, wherein the step S1 specifically comprises:

s11, scanning a surrounding network by a coordinator to be networked, and storing network information;

s12, the coordinator to be networked temporarily modifies the personal local area network ID of the coordinator to be a broadcast personal local area network ID, and sends a command for changing the broadcast personal local area network ID to the surrounding network broadcast;

s13, when receiving the broadcast information, any routing slave machine temporarily sets the routing slave machine to be a broadcast personal area network ID, and then broadcasts and sends the broadcast personal area network ID to the surrounding routing slave machines in different network segments until all the routing slave machines in the communication range are changed to be the same broadcast personal area network ID so that the coordinator to be networked can communicate with all the routing slave machines.

4. The method of claim 3, wherein in step S12, the coordinator to be networked stores the original personal area network ID before temporarily modifying its own personal area network ID to the broadcast personal area network ID; in step S13, each routing slave stores the original personal area network ID before receiving the broadcast information and changing to the broadcast personal area network ID.

5. The wireless communication method according to claim 1 or 2, wherein each of the route slaves determines whether it is the designated route according to the binding ID in the modification command at step S2.

6. The method according to claim 5, wherein the step S22 specifically comprises:

s21, sending modification instructions to all designated routes and receiving response messages by the coordinator to be networked;

s22, if the routing slave machine receives a modification instruction and the binding ID in the modification instruction is consistent with the equipment ID, modifying the personal local area network ID into the original personal local area network ID of the coordinator to be networked;

if the routing slave machine does not receive the modification instruction containing the binding ID consistent with the equipment ID after the pre-waiting time period, the personal local area network ID is recovered to be the original personal local area network ID so as to return to the original network.

7. The method according to claim 6, wherein the step S3 specifically comprises:

and S31, after receiving response information that all the specified routes are successfully modified, the to-be-networked coordinator changes the personal area network ID of the to-be-networked coordinator into the original personal area network ID and constructs the to-be-networked network.

8. The wireless communication method for the users without mutual interference according to claim 1 or 2, characterized in that in step S1, the network topology is identified while the route is changed from the personal area network ID of the slave:

s111, sending a response message to the coordinator to be networked after all the route slave machines change to the broadcasting personal local area network ID;

and S112, the to-be-networked coordinator extracts the local node device address and/or the father node device address of each routing slave from the response message so as to identify the network topology structure.

9. The method of claim 8, wherein in step S2, the coordinator to be networked determines the location of each routing slave according to the network topology, and sends modification commands to the designated route from far to near.

10. A non-interfering user wireless communication system based on the non-interfering user wireless communication method of any of claims 1-9.

Technical Field

The invention belongs to the technical field of photovoltaic monitoring and control technology, and particularly relates to a household wireless communication system without mutual interference and a networking method thereof.

Background

Along with the continuous expansion of the household photovoltaic market scale, the household power generation capacity is improved, the household power utilization safety problem is widely concerned, and the effect of the intelligent assembly is more and more prominent. Compared with the conventional assemblies, the intelligent assemblies have the advantages that the generated energy of each assembly can be monitored in real time, and the electrical connection among the assemblies can be timely disconnected to provide convenience for rescue when danger occurs. The intelligent components adopt a Zigbee wireless communication mode for data transmission, and how to prevent wireless crosstalk between two adjacent components has important significance on normal operation of the intelligent components. The household photovoltaic module has particularity, additional keys cannot be added, the requirement of automatically and automatically changing the network is met, and the normal operation of the adjacent network cannot be influenced while the network is changed.

Zigbee establishes networks by using ad hoc networks and dynamic routing and distinguishes each independent network by PANID (Personal area network ID). Currently, a ZigBee networking mode is to select a corresponding network to create or join a network by a key, or to select a time to join by a key, for example, a ZigBee networking module and a ZigBee networking method disclosed in chinese patent [ publication No.: CN106998562A ], which is a scheme that allows a device to join a Zigbee network by pressing a key for the number of times. For another example, a communication setting modification method for wireless communication networking [ publication No.: CN106162701A and CN ], although these two schemes avoid the use of extra keys and can modify the communication settings of the wireless communication networking, they only modify the same network and need to modify the personal area network ID and/or channel of all slaves in the same network, if there are more than two networks, the modification of the routing slaves in the adjacent network cannot be realized, otherwise the normal operation of the adjacent network will be affected.

Disclosure of Invention

The present invention is directed to the above-mentioned problems, and provides a wireless communication system for users without mutual interference;

another object of the present invention is to solve the above problems and provide a networking method of a wireless communication system for users without interfering with each other.

In order to achieve the purpose, the invention adopts the following technical scheme:

a mutual noninterference user wireless communication method comprises a coordinator to be networked for establishing a network to be networked and a plurality of routing slave machines respectively positioned in the network to be networked and/or outside the network, wherein the method comprises the following steps:

s1, changing the personal local area network IDs of the coordinator to be networked and all the routing slave machines in the communication range of the coordinator to be networked into the same broadcasting personal local area network ID so that the coordinator to be networked can communicate with all the routing slave machines;

s2, sending modification instructions to all the designated routes by the coordinator to be networked and receiving response messages, wherein the ID of the designated route modification personal local area network is the ID of the original personal local area network of the coordinator to be networked, and the IDs of the non-designated routes are recovered to the respective IDs of the original personal local area networks;

and S3, after all the designated routes are modified, recovering the original personal area network ID by the coordinator to be networked so as to establish the network to be networked by the designated routes and the coordinator to be networked.

In the above-described non-interfering user wireless communication method, in step S1, the to-be-networked coordinator sends a broadcast-change-personal-area-network-ID command to the surrounding network broadcast by using the cross-network communication technique in the zstack protocol stack so that the to-be-networked coordinator and all the routing slaves change to the same broadcast-personal-area-network-ID.

In the above-mentioned wireless communication method for the non-interfering users, step S1 specifically includes:

s11, scanning a surrounding network by a coordinator to be networked, and storing network information;

s12, the coordinator to be networked temporarily modifies the personal local area network ID of the coordinator to be a broadcast personal local area network ID, and sends a command for changing the broadcast personal local area network ID to the surrounding network broadcast;

s13, when receiving the broadcast information, any routing slave machine temporarily sets the routing slave machine to be a broadcast personal area network ID, and then broadcasts and sends the broadcast personal area network ID to the surrounding routing slave machines in different network segments until all the routing slave machines in the communication range are changed to be the same broadcast personal area network ID so that the coordinator to be networked can communicate with all the routing slave machines.

In the above-mentioned non-interfering user wireless communication method, in step S12, the coordinator to be networked stores the original personal area network ID before temporarily modifying its own personal area network ID to the broadcast personal area network ID; in step S13, each routing slave stores the original personal area network ID before receiving the broadcast information and changing to the broadcast personal area network ID.

In the above-described wireless communication method for the non-interfering users, in step S2, each of the route slaves determines whether it is a designated route according to the binding ID in the modification instruction.

In the above-mentioned wireless communication method for the non-interfering users, step S22 specifically includes:

s21, sending modification instructions to all designated routes and receiving response messages by the coordinator to be networked;

s22, if the routing slave machine receives a modification instruction and the binding ID in the modification instruction is consistent with the equipment ID, modifying the personal local area network ID into the original personal local area network ID of the coordinator to be networked;

if the routing slave machine does not receive the modification instruction containing the binding ID consistent with the equipment ID after the pre-waiting time period, the personal local area network ID is recovered to be the original personal local area network ID so as to return to the original network.

In the above-mentioned wireless communication method for the non-interfering users, step S3 specifically includes:

and S31, after receiving response information that all the specified routes are successfully modified, the to-be-networked coordinator changes the personal area network ID of the to-be-networked coordinator into the original personal area network ID and constructs the to-be-networked network.

In the above-described wireless communication method for a user without interference, in step S1, the network topology is identified while the routing slave personal area network ID is changed:

s111, sending a response message to the coordinator to be networked after all the route slave machines change to the broadcasting personal local area network ID;

and S112, the to-be-networked coordinator extracts the local node device address and/or the father node device address of each routing slave from the response message so as to identify the network topology structure.

In the above-mentioned wireless communication method for the non-interfering users, in step S2, the coordinator to be networked determines the location of each routing slave according to the network topology, and sends a modification command to the designated routing from far to near.

A non-interfering user wireless communication system based on the non-interfering user wireless communication method is provided.

The invention has the advantages that: 1. the whole software networking is convenient and efficient, the operation is simple, the process of additionally configuring keys is omitted, and the labor cost and the time cost can be saved when a large batch of equipment parameters are set; 2. in the network modification process, the adjacent routing slave machines do not receive the modification instruction, and then recover to respective original personal area network ID when the process is finished, and add the ID into the original network, so that the original network can be ensured not to be influenced; 3. the position of each routing slave in the network is automatically identified to form a corresponding network topology structure, and modification instructions are sent from far to near according to the network topology, so that each designated route can receive the modification instructions in time, and the reliability is high.

Drawings

FIG. 1 is a flowchart of the operation of the coordinator side to be networked according to the present invention;

FIG. 2 is a flow chart of the operation of the routing slave side of the present invention;

FIG. 3 is a diagram of the original state of the communication system of the present invention;

FIG. 4 is a state diagram of a communication system process of the present invention;

fig. 5 is a communication system end state diagram of the present invention.

Detailed Description

The present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.

The embodiment discloses a mutual noninterference user wireless communication method, which comprises a coordinator to be networked for establishing a network to be networked and a plurality of routing slave machines respectively positioned in the network to be networked and/or outside the network, and the specific method comprises the following steps:

1. powering on a Coordinator (Coordinator) to be networked, scanning surrounding networks, and storing network information and an ID (identity) of a personal area network of the Coordinator to be networked;

2. the method comprises the steps that a coordinator to be networked temporarily sets a personal area network ID (ID) of the coordinator to be a broadcast Personal Area Network ID (PANID), and sends a command for changing the broadcast personal area network ID to a surrounding network in a broadcast mode through an inter-PAN communication technology in a zstack protocol stack;

3. after receiving the command of changing the broadcast personal area network ID, the routing slave (Router) temporarily sets the Router to be the broadcast personal area network ID, and then broadcasts and sends the broadcast personal area network ID to the surrounding routing slave (Router) with a non-same network segment until all the routing slaves in the communication range are changed to be the same local area network ID, namely the broadcast personal area network ID, so that in the broadcast local area network, the coordinator to be networked can communicate with all the routing slaves in the communication range to facilitate subsequent work; each routing slave machine stores the original personal local area network ID before receiving the broadcast information and changing the broadcast information into the broadcast personal local area network ID;

4. at the moment, the coordinator to be networked and all the routing slave machines are in the same network, and the coordinator to be networked extracts the local node equipment address and/or the father node equipment address of each routing slave machine from the messages responded by all the routing slave machines through changing the broadcasting personal local area network ID so as to identify the corresponding network topological structure;

5. according to the network topology structure, the coordinator to be networked autonomously judges the position of each routing slave machine and modifies the channel of the designated routing and the personal area network ID from far to near. Each routing slave machine judges according to the received modification instruction, if the binding ID in the modification instruction is equal to the equipment ID of the routing slave machine, the personal local area network ID of the corresponding routing slave machine is changed to be the original personal local area network ID of the coordinator to be networked before restarting after preset time; if not, accumulating the waiting time;

6. the coordinator to be networked judges that all the specified devices receive the messages and complete modification according to the response messages of the specified routes, and if the modification is not completed, the step 5 is repeated; if the modification is finished, restoring the coordinator to be networked into the original personal area network ID, starting to build a network of the coordinator to be networked, and waiting for the designated routing design to join the network;

7. if the accumulated waiting time of the routing slave machines exceeds the pre-waiting time and no command for changing the personal local area network ID is received, the corresponding routing slave machines restore the personal local area network ID to be the original personal local area network ID so as to return to the original network, and the normal operation of the original network is not influenced.

The following describes the steps of the method from the perspective of the coordinator to be networked and the routing slave respectively:

as shown in fig. 1, the work flow of the coordinator to be networked is as follows:

1. when the power is on, the peripheral network is scanned and stored in the cache, and the personal area network ID of the user is stored at the same time, and the cache can be an internal nonvolatile memory, an external EEPROM, an external FLASH and other modules.

2. Temporarily modifying the self into a broadcast personal area network ID, and broadcasting the ID to a surrounding network through a cross-network communication technology of a zstack protocol stack;

3. sending a modification instruction to the designated route, and receiving a response message to judge whether the corresponding designated route is modified;

4. receiving response messages of all the designated routes, recovering the response messages into the ID of the original personal area network and establishing the network;

5. after waiting for all the routing slaves to join the network, the process ends.

As shown in fig. 2, the working flow of the routing slave is as follows:

1. if an instruction of changing into a broadcast personal area network ID is received, storing the original personal area network ID, changing the personal area network ID into the broadcast personal area network ID, and adding the personal area network ID into the broadcast local area network;

2. receiving a modification instruction, judging whether a binding ID in the modification instruction is equal to the ID of the equipment, if so, modifying the ID of the personal area network of the equipment, restarting after preset time, and adding the modified personal area network into a new network, namely the network to be networked;

3. if the binding ID in the modification instruction is judged not to be equal to the ID of the device, the waiting time is accumulated, if the waiting time exceeds the pre-waiting time, the routing slave machine is changed into the ID of the original personal local area network of the routing slave machine, the ID of the original personal local area network is added into the original network, and if the waiting time does not exceed the pre-waiting time, the processes 2 and 3 are repeated.

The method sends the modification instruction according to the network topology structure, and can ensure that all the routing slave machines in the communication range of the coordinator to be networked can receive the modification instruction; and when the route is appointed to receive the modification instruction to modify the personal local area network ID (PANID) within the pre-waiting time, the route slaves (routers) which do not receive the modification instruction are recovered to the respective original personal local area network ID (PANID) so as to avoid influencing the normal communication of the original network.

The following describes the present solution in detail with reference to specific examples:

in the initial state of the communication system, the original existing coordinator 1 has a personal area network ID of 0x1111, the existing routing slave 1 (having a personal area network ID of 0x2222), the routing slave 2 (having a personal area network ID of 0x1234), the routing slave 3 (having a personal area network ID of 0x5678), the routing slave 4 (having a personal area network ID of 0x1234) and the routing slave 5-8 having a personal area network ID of 0x1111 are newly added to the system, the coordinator 2 is the coordinator to be networked, and the personal area network ID is 0x2222, the connection relationship of the devices in the system is shown in fig. 3, the routing slave 5-8 is connected to the coordinator 1, the routing slave 1 is connected to the coordinator 2, and the routing slave 2-4 is not dependent on the local area network to which any coordinator host is located.

At this time, the routing slaves 1-4 are all added into the network where the coordinator 2 is located, and the steps are as follows: the coordinator 2 modifies itself to broadcast personal area network ID to 0x0001, and then broadcasts and sends the broadcast personal area network ID to the surrounding network through the cross-network communication technology of zstack protocol stack, so that the personal area network IDs of the surrounding routing slaves are all changed to broadcast personal area network ID (0x0001), as shown in fig. 4, at this time, in the broadcast local area network, the coordinator 2 and the routing slaves in all communication ranges can communicate.

Finally, the coordinator 2 sends a modification instruction to the designated routing slave 1-4 to modify the personal lan ID of the designated routing slave to 0x2222, and receives a response message that the modification is successful, after all the modifications are successful, the coordinator 2 changes the original personal lan ID (0x2222), the routing slave 5-8 which does not receive the modification instruction automatically changes the original personal lan ID (0x1111) after the pre-waiting time is over, at this time, the connection relationship in the system is as shown in fig. 5, the routing slave 5 is connected to the routing slave 8 on the coordinator 1, the routing slave 1 is connected to the routing slave 4 on the coordinator 2, and the modification process is completely over.

The specific embodiments described herein are merely illustrative of the spirit of the invention. Various modifications or additions may be made or substituted in a similar manner to the specific embodiments described herein by those skilled in the art without departing from the spirit or exceeding the scope of the invention as defined in the appended claims, the invention being expressed as directly or indirectly connected.

Although the terms to be networked coordinator, routing slave, designated route, personal area network ID, broadcasting personal area network ID, etc. are used more often herein, the possibility of using other terms is not excluded. These terms are used merely to more conveniently describe and explain the nature of the present invention; they are to be construed as being without limitation to any additional limitations that may be imposed by the spirit of the present invention.

11页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:基站的优化方法及设备

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!