CN113783586B - Method, device, electronic equipment and storage medium for automatically selecting communication frequency band - Google Patents

Method, device, electronic equipment and storage medium for automatically selecting communication frequency band Download PDF

Info

Publication number
CN113783586B
CN113783586B CN202111028244.7A CN202111028244A CN113783586B CN 113783586 B CN113783586 B CN 113783586B CN 202111028244 A CN202111028244 A CN 202111028244A CN 113783586 B CN113783586 B CN 113783586B
Authority
CN
China
Prior art keywords
communication
frequency band
appointed
dynamically
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111028244.7A
Other languages
Chinese (zh)
Other versions
CN113783586A (en
Inventor
李红霞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Hechuang Sanzen Energy Tech Stock Corp
Original Assignee
Beijing Hechuang Sanzen Energy Tech Stock Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Hechuang Sanzen Energy Tech Stock Corp filed Critical Beijing Hechuang Sanzen Energy Tech Stock Corp
Priority to CN202111028244.7A priority Critical patent/CN113783586B/en
Publication of CN113783586A publication Critical patent/CN113783586A/en
Application granted granted Critical
Publication of CN113783586B publication Critical patent/CN113783586B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/69Spread spectrum techniques
    • H04B1/713Spread spectrum techniques using frequency hopping
    • H04B1/715Interference-related aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/02Selection of wireless resources by user or terminal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/04Wireless resource allocation
    • H04W72/044Wireless resource allocation based on the type of the allocated resource
    • H04W72/0453Resources in frequency domain, e.g. a carrier in FDMA
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/20Control channels or signalling for resource management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/50Allocation or scheduling criteria for wireless resources
    • H04W72/54Allocation or scheduling criteria for wireless resources based on quality criteria
    • H04W72/541Allocation or scheduling criteria for wireless resources based on quality criteria using the level of interference
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/69Spread spectrum techniques
    • H04B1/713Spread spectrum techniques using frequency hopping
    • H04B1/715Interference-related aspects
    • H04B2001/7152Interference-related aspects with means for suppressing interference
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Quality & Reliability (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The present disclosure relates to a method, an apparatus, an electronic device and a storage medium for automatically selecting a communication frequency band, wherein the method comprises: determining a fixed appointed frequency band and a dynamic appointed frequency band for communication; under the condition that encrypted communication using the dynamically appointed frequency band fails, the automatic frequency hopping operation of communication is realized through a double-wireless communication module, so that the communication frequency band is hopped from the dynamically appointed frequency band to the fixedly appointed frequency band; implementing broadcast communication using the fixedly agreed frequency band, wherein the broadcast communication includes updating the dynamically agreed frequency band; and realizing the encrypted communication by using the updated dynamically agreed frequency band. By adopting the technical means, the problem that the communication stability and accuracy cannot be maintained under the condition that the current communication frequency band is interfered in the prior art is solved.

Description

Method, device, electronic equipment and storage medium for automatically selecting communication frequency band
Technical Field
The present disclosure relates to the field of internet technologies, and in particular, to a method and an apparatus for automatically selecting a communication frequency band, an electronic device, and a storage medium.
Background
The problem of multi-device interference inevitably exists in the communication process, and even after an anti-collision monitoring mode is used, the problems of frame loss and the like still possibly occur. For low-power consumption devices, the time for communication is very limited, and if the problems of frame loss and the like occur, the low-power consumption devices will increase power consumption to ensure the communication times and stability. Low power devices may cause problems with repeated occupation of the radio channel if retransmitted, and thus the communication system may enter a vicious circle. Since repeated communication causes a very large consumption of power, which reduces the lifetime of the device and the standby time of the device.
In the process of implementing the disclosed concept, the inventors found that at least the following technical problems exist in the related art: the problem that the communication stability and the accuracy can not be maintained under the condition that the interference occurs in the current communication frequency band.
Disclosure of Invention
In order to solve the above technical problem or at least partially solve the above technical problem, embodiments of the present disclosure provide a method, an apparatus, an electronic device, and a storage medium for automatically selecting a communication frequency band, so as to solve at least the problem in the prior art that stable and accurate communication cannot be maintained when interference occurs in a current communication frequency band.
The purpose of the present disclosure is realized by the following technical scheme:
in a first aspect, an embodiment of the present disclosure provides a method for automatically selecting a communication frequency band, including: determining a fixed appointed frequency band and a dynamic appointed frequency band for communication; under the condition that encrypted communication using the dynamically appointed frequency band fails, realizing communication automatic frequency hopping operation through a double-wireless communication module so as to hop the communication frequency band from the dynamically appointed frequency band to the fixedly appointed frequency band; implementing broadcast communication using the fixedly agreed frequency band, wherein the broadcast communication includes updating the dynamically agreed frequency band; and realizing the encrypted communication by using the updated dynamically appointed frequency band.
In an exemplary embodiment, the determining the fixed agreed frequency band and the dynamically agreed frequency band for communication includes: obtaining information of at least one of: communication range information, terrain information, obstacle information, and communication antenna information; and calling a communication frequency band determination service to determine the fixed appointed frequency band and the dynamic appointed frequency band according to the electromagnetic wave propagation characteristics and the information.
In an exemplary embodiment, before the communication automatic frequency hopping operation is implemented through a dual wireless communication module to hop the communication frequency band from the dynamically agreed frequency band to the fixedly agreed frequency band in case of a failure of the encrypted communication using the dynamically agreed frequency band, the method further includes: calculating the packet loss rate and the error rate of the encrypted communication, and calculating the accuracy of the encrypted communication according to the packet loss rate and the error rate; and determining that the encrypted communication fails under the condition that the accuracy is smaller than a preset threshold.
In an exemplary embodiment, the updating the dynamically agreed frequency band includes: acquiring fault information of the encrypted communication using the dynamically appointed frequency band, wherein the fault information is a fault of the encrypted communication and communication frequency band information of a communication network where the encrypted communication is located; determining a frequency protection band according to the fault information and the communication frequency band information; and updating the dynamically appointed frequency band according to the frequency guard band and the communication frequency band information.
In one exemplary embodiment, the communicating comprises: generating a unified address table for the communication according to a serial communication protocol, wherein the unified address table comprises: the address of the wired device, the address of the wireless device, the address of the wired device and the address of the wireless device are in a corresponding relationship, the communication is bidirectional communication, and both a receiver and a sender of the communication comprise: and the wired equipment and the wireless equipment realize the communication according to the unified address list.
In one exemplary embodiment, the communicating comprises: and under the condition that the communication distance is greater than a first preset distance, realizing the communication in a multi-stage cascade mode, wherein the multi-stage cascade mode comprises the following steps: determining a plurality of communication nodes between a receiver and a sender of the communication according to the communication distance, a second preset distance and communication node information of a communication network in which the communication is located, wherein the first preset distance is greater than the second preset distance; and the communication is realized in a mode that the sender sends communication information, the receiver receives the communication information, and the plurality of communication nodes forward the communication information between the sender and the receiver.
In an exemplary embodiment, the using the updated dynamically agreed frequency band to implement the encrypted communication includes: performing frequency extension operation on the updated dynamic appointed frequency band through a spread spectrum function; and realizing the encrypted communication by using the dynamically appointed frequency band after the frequency expansion operation.
In a second aspect, an embodiment of the present disclosure provides an apparatus for automatically selecting a communication frequency band, including: the determining module is used for determining a fixed appointed frequency band and a dynamic appointed frequency band for communication; the frequency hopping module is used for realizing automatic frequency hopping operation of communication through the double wireless communication modules under the condition that encrypted communication using the dynamically appointed frequency band fails so as to hop the communication frequency band from the dynamically appointed frequency band to the fixedly appointed frequency band; a first communication module, configured to implement broadcast communication using the fixedly agreed frequency band, where the broadcast communication includes updating the dynamically agreed frequency band; and the second communication module is used for realizing the encrypted communication by using the updated dynamically appointed frequency band.
In a third aspect, embodiments of the present disclosure provide an electronic device. The electronic equipment comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus; a memory for storing a computer program; and a processor for implementing the method for automatically selecting a communication band or the method for image processing as described above when executing the program stored in the memory.
In a fourth aspect, embodiments of the present disclosure provide a computer-readable storage medium. The computer-readable storage medium has stored thereon a computer program which, when executed by a processor, implements the method of automatically selecting a communication band or the method of image processing as described above.
Compared with the prior art, the technical scheme provided by the embodiment of the disclosure at least has part or all of the following advantages: determining a fixed appointed frequency band and a dynamic appointed frequency band for communication; under the condition that encrypted communication using the dynamically appointed frequency band fails, realizing communication automatic frequency hopping operation through a double-wireless communication module so as to hop the communication frequency band from the dynamically appointed frequency band to the fixedly appointed frequency band; implementing broadcast communication using the fixedly agreed frequency band, wherein the broadcast communication includes updating the dynamically agreed frequency band; and realizing the encrypted communication by using the updated dynamically appointed frequency band. By adopting the technical means, the problem that the communication stability and the accuracy cannot be maintained under the condition that the current communication frequency band is interfered in the prior art is solved, so that the method for automatically hopping between the fixed appointed frequency band and the dynamic appointed frequency band and maintaining the communication stability and the accuracy is provided.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the related art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
Fig. 1 is a block diagram schematically illustrating a hardware structure of a computer terminal according to a method for automatically selecting a communication band in an embodiment of the present disclosure;
fig. 2 schematically illustrates a flow chart of a method of automatically selecting a communication band according to an embodiment of the present disclosure;
fig. 3 schematically illustrates a schematic view of the interior of a communication device of an embodiment of the present disclosure;
FIG. 4 schematically illustrates a schematic diagram of communication in a cascaded manner according to an embodiment of the disclosure;
FIG. 5 is a schematic diagram illustrating a dual band automatic frequency hopping communication method according to an embodiment of the disclosure;
FIG. 6 schematically illustrates a schematic diagram of an address mapping method of an embodiment of the present disclosure;
fig. 7 is a block diagram schematically illustrating a structure of an apparatus for automatically selecting a communication band according to an embodiment of the present disclosure;
fig. 8 schematically shows a block diagram of an electronic device provided in an embodiment of the present disclosure.
Detailed Description
The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments. It should be noted that, in the present disclosure, the embodiments and the features of the embodiments may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The method embodiments provided by the embodiments of the present disclosure may be executed in a computer terminal or a similar computing device. Taking an example of the method running on a computer terminal as an example, fig. 1 schematically illustrates a hardware structure block diagram of a computer terminal of the method for automatically selecting a communication frequency band according to an embodiment of the present disclosure. As shown in fig. 1, a computer terminal may include one or more processors 102 (only one is shown in fig. 1), wherein the processors 102 may include but are not limited to a processing device such as a Microprocessor (MPU) or a Programmable Logic Device (PLD) and a memory 104 for storing data, and optionally, the computer terminal may further include a transmission device 106 for communication function and an input/output device 108, it is understood by those skilled in the art that the structure shown in fig. 1 is merely illustrative and not a limitation to the structure of the computer terminal, for example, the computer terminal may further include more or less components than those shown in fig. 1, or have equivalent functions or different configurations than those shown in fig. 1.
The memory 104 may be used to store a computer program, for example, a software program and a module of an application software, such as a computer program corresponding to the method for automatically selecting a communication band in the embodiment of the present disclosure, and the processor 102 executes the computer program stored in the memory 104, thereby executing various functional applications and data processing, that is, implementing the method described above. The memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 can further include memory located remotely from the processor 102, which can be connected to a computer terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the computer terminal. In one example, the transmission device 106 includes a Network adapter (NIC) that can be connected to other Network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used to communicate with the internet in a wireless manner.
In an embodiment of the present disclosure, a method for automatically selecting a communication frequency band is provided, and fig. 2 schematically illustrates a flowchart of the method for automatically selecting a communication frequency band in an embodiment of the present disclosure, and as shown in fig. 2, the flowchart includes the following steps:
step S202, determining a fixed appointed frequency band and a dynamic appointed frequency band for communication;
step S204, under the condition that the encryption communication using the dynamically appointed frequency band fails, the automatic frequency hopping operation of the communication is realized through a double-wireless communication module, so that the communication frequency band is hopped from the dynamically appointed frequency band to the fixedly appointed frequency band;
step S206, implementing broadcast communication by using the fixed appointed frequency band, wherein the broadcast communication comprises updating the dynamic appointed frequency band;
and step S208, the encrypted communication is realized by using the updated dynamic appointed frequency band.
The broadcast communication includes updating the dynamically agreed frequency band, which may be understood as using the fixedly agreed frequency band to implement broadcast communication, and updating the dynamically agreed frequency band in the process of implementing broadcast communication.
By the method, the fixed appointed frequency band and the dynamic appointed frequency band for communication are determined; under the condition that encrypted communication using the dynamically appointed frequency band fails, the automatic frequency hopping operation of communication is realized through a double-wireless communication module, so that the communication frequency band is hopped from the dynamically appointed frequency band to the fixedly appointed frequency band; implementing broadcast communication using the fixedly agreed frequency band, wherein the broadcast communication includes updating the dynamically agreed frequency band; and realizing the encrypted communication by using the updated dynamically agreed frequency band. By adopting the technical means, the problem that the communication stability and the accuracy cannot be maintained under the condition that the current communication frequency band is interfered in the prior art is solved, so that the method for automatically hopping between the fixed appointed frequency band and the dynamic appointed frequency band and maintaining the communication stability and the accuracy is provided.
In an optional embodiment, after the encrypted communication is implemented using the updated dynamically agreed frequency band, the method further includes: when the encryption communication failure is realized by using the updated dynamically appointed frequency band and the number of communication failure times is more than the preset number, an anti-interference frequency band is newly added through a newly added frequency band communication module; realizing automatic communication frequency hopping operation through the double wireless communication modules so as to hop the communication frequency band from the updated dynamically appointed frequency band to the anti-interference frequency band; and realizing the encrypted communication through the anti-interference frequency band.
Through the operation, the embodiment of the disclosure can realize the anti-interference function in communication.
In step S202, determining a fixed agreed frequency band and a dynamically agreed frequency band for communication includes: obtaining information of at least one of: communication range information, terrain information, obstacle information, and communication antenna information; and calling a communication frequency band determination service to determine the fixed appointed frequency band and the dynamic appointed frequency band according to the electromagnetic wave propagation characteristics and the information.
The communication frequency band determination service is additionally provided, and can provide a communication frequency band which is calculated appropriately according to communication range information, terrain information, obstacle information, communication antenna information and electromagnetic wave propagation characteristics, and determine the fixed appointed frequency band and the dynamic appointed frequency band according to different requirements from the calculated communication frequency band. Wherein the communication range information is a size of the communication range; the terrain information is information of terrain between two or more communication parties; the obstacle information is information of an object which may block communication between two or more communication parties, and includes a building, the penetration capacity of the building required in communication, and the like; the communication antenna information is information of an antenna installed in communication; the information may also include information about the communication device.
It should be noted that the fixed appointed frequency band is a relatively fixed wireless channel, and this frequency band is used as a broadcast frequency band. Both master and slave devices may initiate communication, with the other devices being recipients. The broadcast frequency band is mainly used for informing whether the dynamically appointed frequency band is adjusted or not, so that the communication of the dynamically appointed frequency band can be kept good. If one dynamically appointed frequency band of one device can not receive data between the devices, the device immediately calls in the broadcast frequency band to report that the dynamically appointed frequency band is interfered. Therefore, the host can judge whether the dynamically appointed frequency band needs to be switched or not, and if the dynamically appointed frequency band needs to be switched, the host can directly broadcast the notice in the broadcast frequency band. And all the devices switch the dynamically appointed frequency band and then communicate until all the devices can communicate in the dynamically appointed frequency band.
The fixed agreed frequency band is used to play the radio broadcast and can help the system to control the tempo as a whole. By doing so, basic communication can be effectively performed in a fixed appointed frequency band. Such as heartbeat data, broadcast data, underlying data, etc. And important encrypted data can be communicated in a dynamically appointed frequency band. The advantage of this is obvious, at the same time, because the dynamic appointed frequency band is selected by the host computer, the interference is greatly reduced. The slave machine serving as the battery equipment can monitor only in the communication windowing period, so that the power consumption of the system can be effectively reduced.
In step S204, when the encrypted communication using the dynamically agreed frequency band fails, an automatic frequency hopping operation of communication is implemented by using a dual wireless communication module, so as to jump the communication frequency band from the dynamically agreed frequency band to the fixedly agreed frequency band, and the method further includes: calculating the packet loss rate and the error rate of the encrypted communication, and calculating the accuracy of the encrypted communication according to the packet loss rate and the error rate; and determining that the encrypted communication fails under the condition that the accuracy is smaller than a preset threshold.
The methods of calculating the packet loss rate and the error rate of the encrypted communication are all methods in the prior art. The Loss rate (Loss Tolerance or packet Loss rate) refers to the ratio of the number of lost packets to the number of transmitted packets in a test, and is usually tested in a throughput range. The packet loss rate is related to the packet length and the packet transmission frequency. Generally, when the flow rate of the gigabit network card is greater than 200Mbps, the packet loss rate is less than five ten-thousandths; when the flow rate of the million network cards is greater than 60Mbps, the packet loss rate is less than one ten thousandth. The embodiment of the disclosure can provide for testing the encrypted communication, and further obtain the packet loss rate. The error rates include: bit error rate and signal error rate, embodiments of the present disclosure may provide for a cyclic redundancy check to calculate the error rate. Cyclic Redundancy Check (CRC) is a channel coding technique that generates a short fixed bit Check code based on data such as network data packets or computer files, and is mainly used to detect or Check errors that may occur after data transmission or storage. It uses the principle of division and remainder to detect the error.
Calculating an accuracy of said encrypted communication based on said packet loss ratio and said error ratio, wherein calculating said accuracy of said encrypted communication may be a weighted calculation based on said packet loss ratio and said error ratio; and determining that the encrypted communication fails under the condition that the accuracy is smaller than a preset threshold.
In step S206, updating the dynamically agreed frequency band includes: acquiring fault information of the encrypted communication using the dynamically appointed frequency band, and communication frequency band information of a communication network where the encrypted communication is located; determining a frequency protection band according to the fault information and the communication frequency band information; and updating the dynamically appointed frequency band according to the frequency guard band and the communication frequency band information.
In order to ensure that the updated dynamically agreed frequency band does not have interference as the former dynamically agreed frequency band, the embodiment of the present disclosure considers a frequency guard band when updating the dynamically agreed frequency band. According to the embodiment of the disclosure, a frequency guard band is determined according to fault information and communication frequency band information, and the dynamically appointed frequency band is updated according to the frequency guard band and the communication frequency band information. The communication frequency band information is information of a frequency band used by a communication network in which the encrypted communication is located. That is to say, the updated dynamically appointed band and the band used by the communication network in which the encrypted communication is located are ensured to be separated by one frequency guard band through the frequency guard band. By the technical means, the problem of adjacent channel interference can be effectively avoided.
In an optional embodiment, the communicating comprises: generating a unified address table for the communication according to a serial communication protocol, wherein the unified address table comprises: the address of the wired device, the address of the wireless device, the address of the wired device and the address of the wireless device are in a corresponding relationship, the communication is bidirectional communication, and both a receiver and a sender of the communication comprise: and the wired equipment and the wireless equipment realize the communication according to the unified address list.
The communication includes: encrypted communication, which is important communication requiring extra attention to security, and broadcast communication, which is communication that is not necessarily confidential or has a low security level.
It is difficult for a wireless device to define which serial number is in front of and behind for a host to communicate with. And the data area at the sending end can not stably point to a wireless device but can be ordered in a certain sequence if the address is not fixedly arranged. This problem occurs mainly when wireless communication is transferred to wired communication. The embodiment of the disclosure can specify the physical position of the wireless device which is finally sent to the host before sending by using the address setting on the slave. So that data does not conflict with data at any time on the host. Therefore, the problem of data confusion after wireless data is converted into wired data is solved. The address of the equipment is distributed in the wireless sending and receiving links. The wired device receives the wireless device and assigns a wireless address to an independent address space in the wired device. This allows for a good reading of the fixture. The embodiment of the disclosure is suitable for a Modbus serial communication protocol. Through the technical means, the data storage and transmission method for converting wireless into wired data can be achieved. Each wireless device can be addressed at the time of shipment from the factory or can be addressed for subsequent use. And the modified address is used as a wired corresponding address for converting the wireless to the MODBUS. The wireless data may eventually be stored on the host. The address of the wireless device may not be duplicated. Otherwise, the problem of the collision of the vehicle occurs.
Modbus is a serial communication protocol published by Modicon corporation (now Schneider Electric) in 1979 for communication using a Programmable Logic Controller (PLC). Modbus has become an industry standard (De factor) for industrial field communication protocols and is now a common connection between industrial electronic devices.
In an optional embodiment, the communicating comprises: and under the condition that the communication distance is greater than a first preset distance, realizing the communication in a multi-stage cascade mode, wherein the multi-stage cascade mode comprises the following steps: determining a plurality of communication nodes between a receiver and a sender of the communication according to the communication distance, a second preset distance and communication node information of a communication network in which the communication is located, wherein the first preset distance is greater than the second preset distance; and the communication is realized in a mode that the sender sends communication information, the receiver receives the communication information, and the plurality of communication nodes forward the communication information between the sender and the receiver.
In communication, a problem may arise in that two communication devices are too far apart. The embodiment of the disclosure uses a mode of multiple cascade transmission to forward data sent by the device through other devices. Forwarding is typically designed as a limited number of hops within three. And adding a forwarding time life in the transmitted data, and not forwarding when the life is reached. This approach mainly protects the convergence of the network. If the equipment is infinitely forwarded, the equipment may oscillate, so that the data forwarding between the two equipment is ceaselessly formed, and the communication of the broadcast frequency band is blocked. Any device cannot continue to communicate. In the embodiment of the present disclosure, through wireless concatenation, after the wireless device sends out data, other devices may also perform limited-time forwarding, except that the final host may receive the data. The purpose of forwarding is to help wireless data transmission to be farther away, so that the problems of close wireless data transmission and the like can be solved.
In step S208, the implementing the encrypted communication by using the updated dynamically agreed frequency band includes: performing frequency expansion operation on the updated dynamically appointed frequency band through a spread spectrum function; and realizing the encrypted communication by using the dynamically appointed frequency band after the frequency expansion operation.
The embodiment of the present disclosure may further perform a frequency spreading operation on the updated dynamically agreed frequency band through a spreading function, where the frequency spreading operation is to enable a bandwidth of a signal used for transmitting information to be much larger than a bandwidth of the information itself. The bandwidth is widened by modulating the information to be transmitted by a function (a spreading function) which is independent of the information to be transmitted; and performing related demodulation on the spread spectrum signal by using the same spread spectrum function at a receiving end to restore transmitted information.
It should be noted that, according to the shannon formula, in order to increase the transmission rate of information, the method can be implemented in two ways, i.e., increasing the bandwidth or increasing the signal-to-noise ratio. In other words, when the transmission rate of the signal is constant, the signal bandwidth and the signal-to-noise ratio are interchangeable, i.e., increasing the signal bandwidth can reduce the requirement for the signal-to-noise ratio, and when the bandwidth is increased to a certain extent, the signal-to-noise ratio is allowed to be further reduced. Through the technical means, the bandwidth of the signal used for transmitting the information is expanded, and the requirement on the signal-to-noise ratio is further reduced.
In order to better understand the technical solutions, the embodiments of the present disclosure also provide an alternative embodiment for explaining the technical solutions.
Fig. 3 schematically illustrates a schematic diagram of the inside of a communication device according to an embodiment of the present disclosure, as shown in fig. 3:
the communication apparatus includes: the system comprises a Micro Control Unit (MCU), a power management module, a 485 communication module, a sensor module, a human-computer interaction module, a real-time clock module, a display module, a USB communication module, a wireless networking host and a slave general block diagram. And the other modules are controlled by the micro control unit. The sensor module is not limited to a single type of sensor. A human-computer interaction module: mainly refers to a touch screen, keys and a human body triggering device.
Fig. 4 schematically illustrates a schematic diagram of communication in a cascade manner according to an embodiment of the disclosure, as shown in fig. 4:
the wireless networking slave computer A comprises: LORA1 and LORA2; the wireless networking slave B comprises: LORA1 and LORA2; the wireless networking slave C comprises: LORA1 and LORA2; the wireless networking host comprises: LORA1 and LORA2. Wherein, LORA1 and LORA2 are two wireless communication modules, and RS485 and MODBUS are a serial communication protocol. The communication between the wireless networking slave A and the wireless networking master machine is realized by receiving or sending communication information by the wireless networking slave A and the wireless networking master machine and realizing the forwarding between the wireless networking slave A and the wireless networking master machine through the wireless networking slave B and the wireless networking slave machine C.
Fig. 5 is a schematic diagram schematically illustrating a communication method of dual-band automatic frequency hopping according to an embodiment of the disclosure, as shown in fig. 5:
LORA1 is a fixed frequency, that is, a fixed agreed frequency band, and implements broadcast communication, LORA2 is a non-fixed frequency, that is, a dynamic agreed frequency band, and implements encrypted communication. All wireless communication frequency ranges include: a non-fixed frequency adjustment range and a fixed frequency.
Fig. 6 schematically illustrates a schematic diagram of an address mapping method according to an embodiment of the present disclosure, as shown in fig. 6:
MODBUS address field 1 corresponds to wireless device address 1, MODBUS address field 2 corresponds to wireless device address 2, MODBUS address field 3 corresponds to wireless device address 3, MODBUS address field 4 corresponds to wireless device address 4, and MODBUS address field n corresponds to wireless device address n.
And generating a unified address table of the communication according to a serial communication protocol, wherein the unified address table comprises a corresponding relation between an MODBUS address domain and a wireless equipment address.
By the method, the fixed appointed frequency band and the dynamic appointed frequency band for communication are determined; under the condition that encrypted communication using the dynamically appointed frequency band fails, realizing communication automatic frequency hopping operation through a double-wireless communication module so as to hop the communication frequency band from the dynamically appointed frequency band to the fixedly appointed frequency band; implementing broadcast communication using the fixedly agreed frequency band, wherein the broadcast communication includes updating the dynamically agreed frequency band; and realizing the encrypted communication by using the updated dynamically agreed frequency band. By adopting the technical means, the problem that the communication stability and the accuracy cannot be maintained under the condition that the current communication frequency band is interfered in the prior art is solved, so that the method for automatically hopping between the fixed appointed frequency band and the dynamic appointed frequency band and maintaining the communication stability and the accuracy is provided.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present disclosure or portions contributing to the prior art may be embodied in the form of a software product, where the computer software product is stored in a storage medium (such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, and an optical disk), and includes several instructions to enable a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of the embodiments of the present disclosure.
In this embodiment, an apparatus for automatically selecting a communication frequency band is further provided, and the apparatus for automatically selecting a communication frequency band is used to implement the foregoing embodiments and preferred embodiments, which have already been described and are not described again. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 7 is a block diagram schematically illustrating a structure of an apparatus for automatically selecting a communication band according to an alternative embodiment of the disclosure, and as shown in fig. 7, the apparatus includes:
a determining module 702, configured to determine a fixed agreed frequency band and a dynamic agreed frequency band for communication;
a frequency hopping module 704, configured to implement automatic frequency hopping operation for communication through a dual wireless communication module when encrypted communication using the dynamically agreed frequency band fails, so as to hop the communication frequency band from the dynamically agreed frequency band to the fixedly agreed frequency band;
a first communication module 706, configured to implement broadcast communication using the fixedly agreed frequency band, where the broadcast communication includes updating the dynamically agreed frequency band;
a second communication module 708, configured to implement the encrypted communication using the updated dynamically agreed frequency band.
By the method, the fixed appointed frequency band and the dynamic appointed frequency band for communication are determined; under the condition that encrypted communication using the dynamically appointed frequency band fails, realizing communication automatic frequency hopping operation through a double-wireless communication module so as to hop the communication frequency band from the dynamically appointed frequency band to the fixedly appointed frequency band; implementing broadcast communication using the fixedly agreed frequency band, wherein the broadcast communication includes updating the dynamically agreed frequency band; and realizing the encrypted communication by using the updated dynamically agreed frequency band. By adopting the technical means, the problem that the communication stability and the accuracy cannot be maintained under the condition that the current communication frequency band is interfered in the prior art is solved, so that the method for automatically hopping between the fixedly appointed frequency band and the dynamically appointed frequency band and maintaining the communication stability and the accuracy is provided.
Optionally, the determining module 702 is further configured to obtain information of at least one of: communication range information, terrain information, obstacle information, and communication antenna information; and calling a communication frequency band determination service to determine the fixed appointed frequency band and the dynamic appointed frequency band according to the electromagnetic wave propagation characteristics and the information.
The communication frequency band determination service is additionally provided, and can provide a communication frequency band which is calculated appropriately according to communication range information, terrain information, obstacle information, communication antenna information and electromagnetic wave propagation characteristics, and determine the fixed appointed frequency band and the dynamic appointed frequency band according to different requirements from the calculated communication frequency band. Wherein the communication range information is a size of the communication range; the terrain information is information of terrain between two communication parties or multiple parties; the obstacle information is information of an object which may block communication between two or more communication parties, and includes a building, the penetration capacity of the building required in communication, and the like; the communication antenna information is information of an antenna installed in communication; the information may also include information about the communication device.
It should be noted that the fixed appointed band is a relatively fixed wireless channel, and this band is used as a broadcast band. Both master and slave devices can initiate communication, and the other devices are receivers. The broadcast frequency band is mainly used for informing whether the dynamically appointed frequency band is adjusted or not, so that the communication of the dynamically appointed frequency band can be kept good. If one device's dynamically agreed frequency band cannot receive data between devices, it should immediately call in the broadcast frequency band to report that its dynamically agreed frequency band is interfered. Therefore, the host can judge whether the dynamically appointed frequency band needs to be switched or not, and if the dynamically appointed frequency band needs to be switched, the host can directly broadcast the notice in the broadcast frequency band. And all the devices switch the dynamically appointed frequency band and then communicate until all the devices can communicate in the dynamically appointed frequency band.
The fixed agreed frequency band is used to play the radio broadcast and can help the system to control the beat as a whole. By doing so, basic communication can be effectively performed in a fixed appointed frequency band. Such as heartbeat data, broadcast data, underlying data, etc. And important encrypted data can be communicated in a dynamically appointed frequency band. The advantage of this is obvious, at the same time, because the dynamic appointed frequency band is selected by the host computer, the interference is greatly reduced. The slave machine serving as the battery equipment can monitor only in the communication windowing period, so that the power consumption of the system can be effectively reduced.
Optionally, the frequency hopping module 704 is further configured to calculate a packet loss rate and an error rate of the encrypted communication, and calculate an accuracy of the encrypted communication according to the packet loss rate and the error rate; and determining that the encrypted communication fails when the accuracy is less than a preset threshold.
The methods for calculating the packet loss rate and the error rate of the encrypted communication are methods in the prior art. The Loss rate (Loss Tolerance or packet Loss rate) refers to the ratio of the number of lost packets to the number of transmitted packets in a test, and is usually tested in a throughput range. The packet loss rate is related to the packet length and the packet transmission frequency. Generally, when the flow rate of the gigabit network card is greater than 200Mbps, the packet loss rate is less than five ten-thousandths; when the flow rate of the hundred million network cards is more than 60Mbps, the packet loss rate is less than one ten thousandth. The embodiment of the disclosure can provide for testing the encrypted communication, and further obtain the packet loss rate. The error rates include: bit error rate and signal error rate, embodiments of the present disclosure may provide for cyclic redundancy check calculation error rate. Cyclic Redundancy Check (CRC) is a channel coding technique that generates a short fixed bit Check code based on data such as network packets or computer files, and is mainly used to detect or Check errors that may occur after data transmission or storage. It uses the principle of division and remainder to detect the error.
Calculating the accuracy of the encrypted communication according to the packet loss rate and the error rate, wherein the calculation of the accuracy of the encrypted communication may be a weighted calculation according to the packet loss rate and the error rate; and determining that the encrypted communication fails under the condition that the accuracy is smaller than a preset threshold.
Optionally, the first communication module 706 is further configured to obtain fault information that the encrypted communication using the dynamically agreed frequency band fails and communication frequency band information of a communication network in which the encrypted communication is located; determining a frequency protection band according to the fault information and the communication frequency band information; and updating the dynamically appointed frequency band according to the frequency guard band and the communication frequency band information.
In order to ensure that the updated dynamically agreed frequency band does not have interference as the former dynamically agreed frequency band, the embodiment of the present disclosure considers a frequency guard band when updating the dynamically agreed frequency band. According to the embodiment of the disclosure, a frequency guard band is determined according to fault information and communication frequency band information, and the dynamically appointed frequency band is updated according to the frequency guard band and the communication frequency band information. The communication frequency band information is information of a frequency band used by a communication network in which the encrypted communication is located. That is to say, the updated dynamically appointed band and the band used by the communication network in which the encrypted communication is located are ensured to be separated by one frequency guard band through the frequency guard band. By the technical means, the problem of adjacent channel interference can be effectively avoided.
Optionally, the first communication module 706 and/or the second communication module 708 are further configured to generate a unified address table for the communication according to a serial communication protocol, where the unified address table includes: the address of the wired device, the address of the wireless device, the address of the wired device and the address of the wireless device are in a corresponding relationship, the communication is bidirectional communication, and both a receiver and a sender of the communication comprise: and the wired equipment and the wireless equipment realize the communication according to the unified address list.
The communication includes: encrypted communication, which is important communication requiring extra attention to security, and broadcast communication, which is communication that is not necessarily confidential or has a low security level.
It is difficult to define whose number is in front of the next for a wireless device to communicate with a host. And the data area at the sending end can not stably point to a wireless device but can be ordered in a certain sequence if the address is not fixedly arranged. This problem occurs mainly when wireless communication is transferred to wired communication. The embodiment of the disclosure can specify the physical position of the wireless device which is finally sent to the host before sending by using the address setting on the slave. So that data does not conflict with data at any time on the host. Therefore, the problem of data confusion after wireless data is converted into wired data is solved. The address of the equipment is distributed in the wireless sending and receiving links. The wired device receives the wireless device and assigns a wireless address to an independent address space in the wired device. This allows for a good reading of the fixture. The embodiment of the disclosure is suitable for a Modbus serial communication protocol. Through the technical means, the data storage and transmission method for converting wireless into wired data can be achieved. Each wireless device can set an address when leaving a factory, and can modify the address when being used subsequently. The modified address is used as a corresponding address for converting the wireless into the MODBUS wire. The wireless data may eventually be stored on the host. The address of the wireless device may not be duplicated. Otherwise, the problem of the prior collision can occur.
Modbus is a serial communication protocol published by Modicon corporation (now Schneider Electric) in 1979 for communication using a Programmable Logic Controller (PLC). Modbus has become an industry standard (De factor) for industrial field communication protocols and is now a common connection between industrial electronic devices.
Optionally, the first communication module 706 and/or the second communication module 708 are further configured to, when the communication distance is greater than a first preset distance, implement the communication in a multi-stage cascade manner, where the multi-stage cascade manner includes: determining a plurality of communication nodes between a receiver and a sender of the communication according to the communication distance, a second preset distance and communication node information of a communication network in which the communication is located, wherein the first preset distance is greater than the second preset distance; and the communication is realized in a mode that the sender sends communication information, the receiver receives the communication information, and the plurality of communication nodes forward the communication information between the sender and the receiver.
In communication, a problem may arise in that two communication devices are too far apart. The embodiment of the disclosure uses a mode of multiple cascade transmission to forward data sent by the device through other devices. Forwarding is typically designed as a limited number of hops within three. And adding a forwarding time life in the transmitted data, and not forwarding when the life is reached. This approach mainly protects the convergence of the network. If the equipment is infinitely forwarded, the equipment may oscillate, so that the data forwarding between the two equipment is ceaselessly formed, and the communication of the broadcast frequency band is blocked. Any device cannot continue to communicate. In the embodiment of the present disclosure, through wireless concatenation, after the wireless device sends out data, other devices may also perform limited-time forwarding, except that the final host may receive the data. The purpose of forwarding is to help wireless data transmission to be farther away, so that the problems of close wireless data transmission and the like can be solved.
Optionally, the second communication module 708 is further configured to perform a frequency spreading operation on the updated dynamically agreed frequency band through a spreading function; and realizing the encrypted communication by using the dynamically appointed frequency band after the frequency expansion operation.
The embodiment of the present disclosure may further perform a frequency expansion operation on the updated dynamically agreed frequency band through a spreading function, where the frequency expansion operation is to make a bandwidth of a signal used for transmitting information far larger than a bandwidth of the information itself. The broadening of the bandwidth is realized by modulating the transmitted information by a function (a spread spectrum function) independent of the transmitted information; and performing related demodulation on the spread spectrum signal by using the same spread spectrum function at a receiving end to restore transmitted information.
It should be noted that, according to the shannon formula, in order to increase the transmission rate of information, the method can be implemented in two ways, i.e., increasing the bandwidth or increasing the signal-to-noise ratio. In other words, when the transmission rate of the signal is fixed, the signal bandwidth and the signal-to-noise ratio are interchangeable, that is, increasing the signal bandwidth can reduce the requirement for the signal-to-noise ratio, and when the bandwidth is increased to a certain extent, the signal-to-noise ratio is allowed to be further reduced. By the technical means, the bandwidth of the signal used for transmitting the information is expanded, and the requirement on the signal to noise ratio is further reduced.
It should be noted that the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Embodiments of the present disclosure provide an electronic device.
Fig. 8 schematically shows a block diagram of an electronic device provided in an embodiment of the present disclosure.
Referring to fig. 8, an electronic device 800 provided by the embodiment of the present disclosure includes a processor 801, a communication interface 802, a memory 803, and a communication bus 804, where the processor 801, the communication interface 802, and the memory 803 complete communication with each other through the communication bus 804; a memory 803 for storing a computer program; the processor 801 is configured to implement the steps of any of the above method embodiments when executing the program stored in the memory.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, determining a fixed appointed frequency band and a dynamic appointed frequency band for communication;
s2, under the condition that encrypted communication using the dynamically appointed frequency band fails, the automatic frequency hopping operation of communication is realized through a double-wireless communication module, so that the communication frequency band is hopped from the dynamically appointed frequency band to the fixedly appointed frequency band;
s3, realizing broadcast communication by using the fixed appointed frequency band, wherein the broadcast communication comprises updating the dynamic appointed frequency band;
and S4, the encrypted communication is realized by using the updated dynamic appointed frequency band.
Embodiments of the present disclosure also provide a computer-readable storage medium. The computer-readable storage medium has stored thereon a computer program which, when executed by a processor, performs the steps of any of the method embodiments described above.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, determining a fixed appointed frequency band and a dynamic appointed frequency band for communication;
s2, under the condition that encrypted communication using the dynamically appointed frequency band fails, the automatic frequency hopping operation of communication is realized through a double-wireless communication module, so that the communication frequency band is hopped from the dynamically appointed frequency band to the fixedly appointed frequency band;
s3, broadcast communication is achieved by using the fixed appointed frequency band, wherein the broadcast communication comprises updating of the dynamic appointed frequency band;
and S4, the encrypted communication is realized by using the updated dynamic appointed frequency band.
The computer-readable storage medium may be contained in the apparatus/device described in the above embodiments; or may be present alone without being assembled into the device/apparatus. The computer-readable storage medium carries one or more programs which, when executed, implement the method according to an embodiment of the disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example but is not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present disclosure described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. As such, the present disclosure is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present disclosure and is not intended to limit the present disclosure, and various modifications and changes may be made to the present disclosure by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the principle of the present disclosure should be included in the protection scope of the present disclosure.

Claims (9)

1. A method for automatically selecting a communication band, comprising:
determining a fixed appointed frequency band and a dynamic appointed frequency band for communication; the communication comprises the following steps: generating a unified address table of the communication according to a serial communication protocol, and realizing the communication according to the unified address table; wherein the unified address table comprises: the method comprises the following steps that the address of wired equipment, the address of wireless equipment and the corresponding relation between the address of the wired equipment and the address of the wireless equipment are obtained, the communication is bidirectional communication, two communication parties are respectively master equipment and slave equipment, the master equipment is the wired equipment or the wireless equipment, and the slave equipment is the wired equipment or the wireless equipment; the fixed appointed frequency band is used as a broadcast frequency band, the master equipment and the slave equipment can both initiate communication, other equipment is a receiver, and the slave equipment only carries out broadcast monitoring in a communication windowing period;
when the encrypted communication using the dynamically agreed frequency band by the first device fails, reporting that the dynamically agreed frequency band of the first device is interfered by the fixedly agreed frequency band specifically includes: realizing communication automatic frequency hopping operation through a double-wireless communication module so as to hop the communication frequency band of the first equipment from the dynamically appointed frequency band to the fixedly appointed frequency band; broadcasting the state of the interfered dynamic appointed frequency band of the first equipment by using the fixed appointed frequency band;
under the condition that the first device is a main device, the first device further judges whether the dynamically appointed frequency band needs to be switched according to the interfered state of the dynamically appointed frequency band, and if the dynamically appointed frequency band needs to be switched, the information of the dynamically appointed frequency band is updated through broadcasting of the fixedly appointed frequency band;
under the condition that the first device is a slave device, the main device judges whether the dynamic appointed frequency band needs to be switched according to the interfered state of the dynamic appointed frequency band, and if the dynamic appointed frequency band needs to be switched, the information of the dynamic appointed frequency band is updated through broadcasting of the fixed appointed frequency band;
and the equipment receiving the broadcast realizes the encrypted communication by using the updated dynamically appointed frequency band.
2. The method of claim 1, wherein determining the fixedly agreed upon frequency band and the dynamically agreed upon frequency band for communication comprises:
obtaining information of at least one of: communication range information, terrain information, obstacle information, and communication antenna information;
and calling a communication frequency band determination service to determine the fixed appointed frequency band and the dynamic appointed frequency band according to the electromagnetic wave propagation characteristics and the information.
3. The method as claimed in claim 1, wherein in case of failure of the encrypted communication of the first device using the dynamically agreed frequency band, before reporting that the dynamically agreed frequency band of the first device is interfered, the method further comprises:
calculating the packet loss rate and the error rate of the encrypted communication, and calculating the accuracy of the encrypted communication according to the packet loss rate and the error rate;
and determining that the encrypted communication fails under the condition that the accuracy is smaller than a preset threshold.
4. The method of claim 1, wherein the updating the dynamically agreed band comprises:
acquiring fault information of the encrypted communication using the dynamically appointed frequency band, wherein the fault information is a fault of the encrypted communication and communication frequency band information of a communication network where the encrypted communication is located;
determining a frequency protection band according to the fault information and the communication frequency band information;
and updating the dynamically appointed frequency band according to the frequency guard band and the communication frequency band information.
5. The method of claim 1, wherein the communicating comprises:
and under the condition that the communication distance is greater than a first preset distance, realizing the communication in a multi-stage cascade mode, wherein the multi-stage cascade mode comprises the following steps:
determining a plurality of communication nodes between a receiver and a sender of the communication according to the communication distance, a second preset distance and communication node information of a communication network in which the communication is located, wherein the first preset distance is greater than the second preset distance;
and the communication is realized in a mode that the sender sends communication information, the receiver receives the communication information, and the plurality of communication nodes forward the communication information between the sender and the receiver.
6. The method of claim 1, wherein the using the updated dynamically agreed frequency band for the encrypted communication comprises:
performing frequency extension operation on the updated dynamically appointed frequency band through a spread spectrum function;
and realizing the encrypted communication by using the dynamically appointed frequency band after the frequency expansion operation.
7. A system for automatically selecting a communication frequency band is characterized by comprising a main device and a slave device for bidirectional communication, wherein the main device is a wired device or a wireless device, and the slave device is a wired device or a wireless device;
the master device and the slave device each include: the device comprises a determining module and a frequency modulation module;
the determining modules of the master device and the slave device are used for determining a fixed appointed frequency band and a dynamic appointed frequency band for communication; the communication includes: generating a unified address table of the communication according to a serial communication protocol, and realizing the communication according to the unified address table; wherein the unified address table comprises: the address of the wired device, the address of the wireless device, and the corresponding relationship between the address of the wired device and the address of the wireless device; the fixed appointed frequency band is used as a broadcast frequency band, the master equipment and the slave equipment can both initiate communication, other equipment is a receiver, and the slave equipment only carries out broadcast monitoring in a communication windowing period;
the frequency hopping modules of the master device and the slave device are configured to report that a dynamically agreed frequency band of the slave device is interfered by the fixedly agreed frequency band when encrypted communication using the dynamically agreed frequency band fails, and specifically include: realizing communication automatic frequency hopping operation through a double-wireless communication module so as to hop a communication frequency band from the dynamically appointed frequency band to the fixedly appointed frequency band; broadcasting the interfered state of the dynamic appointed frequency band by using the fixed appointed frequency band;
the main device further comprises a judging module and a first communication module, wherein the judging module is used for judging whether the dynamic appointed frequency band needs to be switched according to the interfered state of the dynamic appointed frequency band;
the first communication module is used for updating the information of the dynamically appointed frequency band through the fixed appointed frequency band broadcast under the condition that the dynamically appointed frequency band needs to be switched is judged;
the master device and the slave device comprise a second communication module, and the second communication module is used for realizing the encrypted communication by using the updated dynamically agreed frequency band.
8. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
a processor for implementing the method of any one of claims 1 to 6 when executing a program stored on a memory.
9. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method of any one of claims 1 to 6.
CN202111028244.7A 2021-09-02 2021-09-02 Method, device, electronic equipment and storage medium for automatically selecting communication frequency band Active CN113783586B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111028244.7A CN113783586B (en) 2021-09-02 2021-09-02 Method, device, electronic equipment and storage medium for automatically selecting communication frequency band

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111028244.7A CN113783586B (en) 2021-09-02 2021-09-02 Method, device, electronic equipment and storage medium for automatically selecting communication frequency band

Publications (2)

Publication Number Publication Date
CN113783586A CN113783586A (en) 2021-12-10
CN113783586B true CN113783586B (en) 2023-04-07

Family

ID=78840934

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111028244.7A Active CN113783586B (en) 2021-09-02 2021-09-02 Method, device, electronic equipment and storage medium for automatically selecting communication frequency band

Country Status (1)

Country Link
CN (1) CN113783586B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102857327A (en) * 2012-04-16 2013-01-02 华为技术有限公司 Data transmission method and apparatus
CN110971268A (en) * 2019-12-09 2020-04-07 深圳中科讯联科技股份有限公司 Frequency hopping communication method, device, master device and frequency hopping communication system

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100622411B1 (en) * 2004-07-22 2006-09-14 주식회사 애트랩 wireless communication system and channel converting method of it
CN107634767B (en) * 2017-08-30 2019-09-17 深圳市盛路物联通讯技术有限公司 A kind of antenna selecting method and mobile terminal
CN108307415A (en) * 2018-01-31 2018-07-20 成都物梦工场信息技术有限公司 Manage the method, apparatus and computer readable storage medium of wireless channel interference
CN109963345A (en) * 2019-03-21 2019-07-02 达铭实业(宿州)股份有限公司 A kind of anti-interference method of blue-teeth data high-speed transfer
CN112104391B (en) * 2019-05-31 2022-06-28 大唐移动通信设备有限公司 Frequency hopping frequency set updating method and equipment
CN110933744B (en) * 2019-12-13 2023-05-26 Oppo广东移动通信有限公司 Communication configuration selection method and related product
CN111525971B (en) * 2020-04-23 2021-12-21 杭州万联网络科技有限公司 Emergency communication broadcast receiving method, system, intelligent terminal and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102857327A (en) * 2012-04-16 2013-01-02 华为技术有限公司 Data transmission method and apparatus
CN110971268A (en) * 2019-12-09 2020-04-07 深圳中科讯联科技股份有限公司 Frequency hopping communication method, device, master device and frequency hopping communication system

Also Published As

Publication number Publication date
CN113783586A (en) 2021-12-10

Similar Documents

Publication Publication Date Title
San Cheong et al. Comparison of LoRaWAN classes and their power consumption
US10291755B2 (en) Systems and methods for adaptive scanning and/or advertising
Michelinakis et al. Dissecting energy consumption of nb-iot devices empirically
CN110445511B (en) Self-adaptive synchronous frequency hopping method and device, wireless AP and communication system
CN111510899B (en) Bluetooth transmission method and device
KR101849253B1 (en) Information processing method, user equipment and base station
Pötsch et al. Practical limitations for deployment of LoRa gateways
US11228514B2 (en) Network diagnosis method, cloud intelligent robot, network device and private network
CN105208635A (en) System information reading method, scheduling method and device
CN112055315B (en) Bluetooth broadcast communication method, system and master device and slave device thereof
CN114727352B (en) Information transmission method, device, storage medium and electronic equipment
CN115150036B (en) Mapping method, terminal and network side equipment for Channel State Information (CSI) report
KR102313034B1 (en) Underwater communication apparatus and id transmitting and receiving method thereof
CN113783586B (en) Method, device, electronic equipment and storage medium for automatically selecting communication frequency band
CN111417134B (en) Method and equipment for reporting interference measurement
JP6616184B2 (en) Data transmission method and apparatus
US20230100981A1 (en) Method for determining a quality of service parameter, computer-readable storage medium, computer program, and communication device
CN111869246B (en) Message transmission method, BLE equipment and BLE chip
CN110417435B (en) Frequency band determination method and device
US11006431B2 (en) Mode selection for mesh network communication
CN112333735A (en) Method for adjusting time slot interval and communication device
Somappa et al. Implementation and deployment evaluation of the DMAMAC protocol for wireless sensor actuator networks
CN116017516B (en) Node connection configuration method and device based on link interference
CN110603833B (en) Signal measuring and selecting method and device and computer storage medium
CN113727398B (en) Pilot frequency switching method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant