CN108521286B - Communication method for learning type self-adaptive 2.4G frequency band wireless frequency hopping - Google Patents

Communication method for learning type self-adaptive 2.4G frequency band wireless frequency hopping Download PDF

Info

Publication number
CN108521286B
CN108521286B CN201810206012.8A CN201810206012A CN108521286B CN 108521286 B CN108521286 B CN 108521286B CN 201810206012 A CN201810206012 A CN 201810206012A CN 108521286 B CN108521286 B CN 108521286B
Authority
CN
China
Prior art keywords
communication
channel
frequency
frequency hopping
judging
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
CN201810206012.8A
Other languages
Chinese (zh)
Other versions
CN108521286A (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.)
Shenzhen Feelstorm Technology Co ltd
Original Assignee
Shenzhen Feelstorm Technology Co ltd
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 Shenzhen Feelstorm Technology Co ltd filed Critical Shenzhen Feelstorm Technology Co ltd
Priority to CN201810206012.8A priority Critical patent/CN108521286B/en
Publication of CN108521286A publication Critical patent/CN108521286A/en
Application granted granted Critical
Publication of CN108521286B publication Critical patent/CN108521286B/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
    • 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
    • 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/7156Arrangements for sequence synchronisation
    • 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/7154Interference-related aspects with means for preventing interference

Landscapes

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

Abstract

The invention discloses a communication method of learning type self-adaptive 2.4G frequency band wireless frequency hopping, which comprises the following specific steps: judging communication conditions, performing slow frequency hopping when judging that communication is normal, judging whether communication frequencies are synchronous or not, and performing error processing if the communication frequencies are asynchronous; and step two, carrying out rapid frequency hopping when the communication error is judged, synchronizing the receiver and the transmitter in a short time, and selecting a proper communication channel by the receiver and the transmitter so as to recover the communication. The method of the invention records the relevant parameters of the communication process, analyzes and selects the most suitable next communication channel, thereby not only maintaining the basic communication of synchronous online, high communication speed, regular communication channel replacement, rapid error recovery and the like, but also enhancing the anti-interference capability among the same equipment, avoiding the interference channel capability and the like, and leading the equipments in the same frequency band and different types to work harmoniously.

Description

Communication method for learning type self-adaptive 2.4G frequency band wireless frequency hopping
Technical Field
The invention relates to the field of 2.4G wireless communication, in particular to a communication method of learning type self-adaptive 2.4G frequency band wireless frequency hopping.
Background
Wireless products, that is, electronic products using radio technology, should include a wireless signal transmitting and receiving system, such as a mobile phone, a wireless internet access device, a cordless telephone, a wireless intercom, etc., in daily life, and belong to wireless devices. The frequency band of the 2.4G wireless technology is between 2.405GHz and 2.485GHz (science, medicine and agriculture), so the 2.4G wireless technology is simply referred to as the 2.4G wireless technology. The frequency band is a free frequency band specified internationally, and any charge does not need to be paid to international related organizations. This provides the necessary advantage for the expandability of 2.4G wireless technology, and 2.4G wireless technology is different from the former 27MHz wireless technology, and its working mode is full duplex mode transmission, and has absolute advantage in anti-interference performance over 27 MHz. This advantage determines its superior interference immunity and a transmission distance of up to 10 meters.
In the current 2.4G wireless products, part of the products have fixed frequency communication; or other devices in the same frequency band are interfered during frequency hopping, so that the interfered devices cannot work normally; or the occupied channels can be actively avoided, but when errors occur in the communication process, the recovery needs a longer time, so that the communication is not performed, and the product use experience is reduced.
Disclosure of Invention
The present invention provides a communication method of learning-based adaptive 2.4G frequency band wireless frequency hopping to solve the problems in the background art.
In order to achieve the purpose, the invention provides the following technical scheme:
a communication method of learning type self-adaptive 2.4G frequency band wireless frequency hopping comprises the following specific steps:
step one, judging the communication condition, performing slow frequency hopping when judging that the communication is normal, judging whether the communication frequency is synchronous or not, performing error processing if the communication frequency is asynchronous, acquiring the next communication channel if the communication frequency is synchronous, then notifying the next channel number, then preparing to change the channel, detecting whether the channel is changed correctly or not after changing the channel, and performing error processing if any step in the secondary process has an error, thereby circulating;
and step two, carrying out rapid frequency hopping when the communication error is judged, synchronizing the receiver and the transmitter in a short time, and selecting a proper communication channel by the receiver and the transmitter so as to recover the communication.
As a further scheme of the invention: the period of slow hopping is 350ms, the receiver changes the frequency channel every 20ms and the transmitter changes the frequency channel every 3ms during fast hopping.
As a further scheme of the invention: and step two, acquiring the next channel number from the communication channel priority queue, checking whether the channel number is occupied by other equipment, if so, replacing the next channel, otherwise, using the channel, and the construction method of the communication channel priority queue records related data in the communication process, wherein the related data comprises but is not limited to the frequency of channel use, the frequency of same frequency conflict and the frequency of communication errors, and makes judgment according to the related data so as to obtain a judgment table, and constructs the channel priority queue according to the grade sequence.
As a further scheme of the invention: a large root heap algorithm is adopted for constructing a channel priority queue, the large root heap algorithm is a computer software data structure and algorithm, the algorithm is an ordered complete binary tree, a root node is a node with the maximum priority, the sequencing (initialization) time complexity of n nodes is O (nlogn), and the insertion and deletion operation time complexity is O (logn).
As a further scheme of the invention: the judgment standard of the evaluation table is that the initial scores (100) of each channel are the same, random extraction and sequencing are carried out, and one score is added for each use according to the use times and the accumulated use duration of the channels; judging the frequency of channel same-frequency conflicts, subtracting 1500 points when the current score is greater than 2000 minutes, subtracting 800 points when the current score is greater than 1000 minutes, subtracting 300 points when the current score is greater than 500 minutes, subtracting 50 points when the current score is greater than 200 minutes, and subtracting 3 points under other conditions; judging the communication error times and the accumulated data packet error number, subtracting 1500 minutes when the current score is greater than 2000 minutes, subtracting 800 minutes when the current score is greater than 1000 minutes, subtracting 300 minutes when the current score is greater than 500 minutes, subtracting 50 minutes when the current score is greater than 200 minutes, and subtracting 3 minutes under other conditions; when the channel score is less than or equal to zero, the channel is determined as an invalid channel and no longer enters the candidate channel, and when the number of available channels is less than a warning number (e.g., 3), an initial score (100) is added to all channels, i.e., all channels are available without changing the relative priority.
Compared with the prior art, the invention has the beneficial effects that: the method of the invention records the relevant parameters of the communication process, analyzes and selects the most suitable next communication channel, thereby not only maintaining the basic communication of synchronous online, high communication speed, regular communication channel replacement, rapid error recovery and the like, but also enhancing the anti-interference capability among the same equipment, avoiding the interference channel capability and the like, and leading the equipments in the same frequency band and different types to work harmoniously.
Drawings
Fig. 1 is a flowchart of a communication method of learning-based adaptive 2.4G frequency band wireless frequency hopping.
Fig. 2 is a flowchart of normal communication in the communication method of learning-based adaptive 2.4G frequency band wireless frequency hopping.
Fig. 3 is a flowchart of a misalignment processing performed in the communication method of the learning-type adaptive 2.4G frequency band wireless frequency hopping.
Fig. 4 is a flowchart of acquiring a next candidate communication channel in the learning-based adaptive 2.4G frequency band wireless frequency hopping communication method.
Fig. 5 is a flowchart of constructing a communication channel priority queue in the communication method of learning-based adaptive 2.4G frequency band wireless frequency hopping.
Detailed Description
The technical solution of the present patent will be described in further detail with reference to the following embodiments.
Referring to fig. 1-5, a communication method of learning-based adaptive 2.4G frequency band wireless frequency hopping includes the following steps:
step one, judging the communication condition, performing slow frequency hopping when judging that the communication is normal, wherein the period of the slow frequency hopping is 350ms, judging whether the communication frequency is synchronous, performing error processing if the communication frequency is asynchronous, acquiring the next communication channel if the communication frequency is synchronous, notifying the next channel number, preparing to change the channel, detecting whether the channel is changed correctly after changing the channel, and performing error processing if any step in the secondary process has an error, so as to circulate;
step two, fast frequency hopping is carried out when communication errors are judged, a receiver changes a frequency channel every 20ms during fast frequency hopping, a transmitter changes a frequency channel every 3ms, the receiver and the transmitter are synchronous in a short time, the receiver and the transmitter select a proper communication frequency channel so as to recover communication, the method specifically comprises the steps of finding out the communication errors, then obtaining a next frequency channel number and changing the frequency channel, sending online data and carrying out online check after changing the frequency channel, judging whether the communication frequency is synchronous after checking is normal, obtaining the next frequency channel number from a communication frequency channel priority queue, checking whether the next frequency channel number is occupied by other equipment, if not, replacing the next frequency channel, if not, the frequency channel is used, and the construction method of the communication frequency channel priority queue records related data for the communication process, wherein the related data comprises but not limited to the frequency channel use times, the same frequency conflict times and the communication error times, judging according to the related data to obtain a judgment table, wherein the judgment standard of the judgment table is that the initial scores (100) of each channel are the same, randomly extracting and sorting, and adding one score for each use according to the frequency of use of the channels and the accumulated use duration; judging the frequency of channel same-frequency conflicts, subtracting 1500 points when the current score is greater than 2000 minutes, subtracting 800 points when the current score is greater than 1000 minutes, subtracting 300 points when the current score is greater than 500 minutes, subtracting 50 points when the current score is greater than 200 minutes, and subtracting 3 points under other conditions; judging the communication error times and the accumulated data packet error number, subtracting 1500 minutes when the current score is greater than 2000 minutes, subtracting 800 minutes when the current score is greater than 1000 minutes, subtracting 300 minutes when the current score is greater than 500 minutes, subtracting 50 minutes when the current score is greater than 200 minutes, and subtracting 3 minutes under other conditions; when the score of the channel is less than or equal to zero, the channel is judged as an invalid channel and does not enter a candidate channel, when the number of available channels is less than a warning number (such as 3), an initial score (100) is added to all channels, namely all channels are available, but the relative priority is not changed, a channel priority queue is constructed according to the order of the scores, a large root heap algorithm is adopted for constructing the channel priority queue, the large root heap algorithm is a computer software data structure and algorithm, is an ordered complete binary tree, the root node is the node with the maximum priority, the ordering (initialization) time complexity of n nodes is O (nlogn), the inserting and deleting operation time complexity is O (logn), and the application of the method can be better met. The scoring criteria are related to the RF (radio frequency) chip (main frequency, signal modulation mode, communication rate, etc.), the main chip frequency and its communication speed with the RF chip.
A general RF (radio frequency) chip provides basic wireless communication, but it does not have a high-level communication protocol. The method cooperates with the driving software of the RF chip and a high-level communication protocol (such as point-to-point communication, zigbee, TCP/IP and the like) to work together so as to provide stable, flow, anti-interference and interference-free communication. Some parameters of the process, such as: the frequency hopping period, error attempt period, error wait period, scoring criteria, etc. must be adjusted depending on the particular implementation. The method is suitable for the existing 2.4G wireless products, in particular to a wireless baby monitor.
① A pair of receiver and transmitter work, the basic communication test includes synchronous on-line, communication speed, error recovery, etc. ② groups (10 or more) of receivers and transmitters of the same type work at the same time, on the basis of the basic communication test, the anti-interference ability and interference channel avoiding ability among the same devices are tested, ③ mixed test is used with different types of devices of frequency bands such as WIFI and Bluetooth, the method tests whether the devices of the same frequency band can work harmoniously or not
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.
Furthermore, it should be understood that although the present description refers to embodiments, not every embodiment may contain only a single embodiment, and such description is for clarity only, and those skilled in the art should integrate the description, and the embodiments may be combined as appropriate to form other embodiments understood by those skilled in the art.

Claims (2)

1. A communication method of learning type self-adaptive 2.4G frequency band wireless frequency hopping is characterized by comprising the following specific steps:
step one, judging the communication condition, performing slow frequency hopping when judging that the communication is normal, judging whether the communication frequency is synchronous or not, performing error processing if the communication frequency is asynchronous, acquiring the next communication channel if the communication frequency is synchronous, then notifying the next channel number, then preparing to change the channel, detecting whether the channel is changed correctly or not after changing the channel, and performing error processing if any step has an error in the process so as to circulate;
step two, fast frequency hopping is carried out when communication errors are judged, a receiver and a transmitter are synchronized in a short time, the receiver and the transmitter select a proper communication channel to recover communication, the specific steps are that the communication errors are found, then a next channel number is obtained and the channel is changed, online data is sent and online check is carried out after the channel is changed, whether the communication frequency is synchronized is judged after the check is normal, the next channel number is obtained from a communication channel priority queue, whether the channel is occupied by other equipment is checked, if the channel is occupied, the next channel is changed, otherwise, the channel is used, the construction method of the communication channel priority queue records related data in the communication process, the related data comprises but not limited to the frequency of channel use, the frequency of co-frequency collision and the frequency of communication errors, and the judgment is carried out according to the related data, so that a judgment table is obtained, and constructing a channel priority queue according to the order of the scores.
2. The communication method according to claim 1, wherein the slow frequency hopping period is 350ms, the frequency channel is changed every 20ms by the receiver and the frequency channel is changed every 3ms by the transmitter during fast frequency hopping.
CN201810206012.8A 2018-03-13 2018-03-13 Communication method for learning type self-adaptive 2.4G frequency band wireless frequency hopping Active CN108521286B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810206012.8A CN108521286B (en) 2018-03-13 2018-03-13 Communication method for learning type self-adaptive 2.4G frequency band wireless frequency hopping

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810206012.8A CN108521286B (en) 2018-03-13 2018-03-13 Communication method for learning type self-adaptive 2.4G frequency band wireless frequency hopping

Publications (2)

Publication Number Publication Date
CN108521286A CN108521286A (en) 2018-09-11
CN108521286B true CN108521286B (en) 2020-04-14

Family

ID=63433632

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810206012.8A Active CN108521286B (en) 2018-03-13 2018-03-13 Communication method for learning type self-adaptive 2.4G frequency band wireless frequency hopping

Country Status (1)

Country Link
CN (1) CN108521286B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112702081B (en) * 2020-12-29 2023-05-30 杭州当贝网络科技有限公司 Frequency hopping audio transmission method, device, equipment and system based on 2.4G

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102142861A (en) * 2011-01-17 2011-08-03 厦门亿联网络技术有限公司 Frequency hopping method and device suitable for wireless voice communication of 2.4GHz industrial scientific medical (ISM) band
CN102355281A (en) * 2011-06-30 2012-02-15 桂林电子科技大学 Combinable frequency hopping wireless transmitting-receiving system and operation method thereof

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030060206A1 (en) * 2001-09-27 2003-03-27 Erkka Sointula Method and apparatus for avoiding mutual interference when co-locating mobile station and bluetooth systems
CN102684754B (en) * 2011-03-11 2015-05-13 赖之安 Bluetooth transmission module and bluetooth device with same
CN106332267B (en) * 2016-08-31 2020-03-20 天津远翥科技有限公司 Synchronous access method, device and system based on frequency hopping wireless communication

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102142861A (en) * 2011-01-17 2011-08-03 厦门亿联网络技术有限公司 Frequency hopping method and device suitable for wireless voice communication of 2.4GHz industrial scientific medical (ISM) band
CN102355281A (en) * 2011-06-30 2012-02-15 桂林电子科技大学 Combinable frequency hopping wireless transmitting-receiving system and operation method thereof

Also Published As

Publication number Publication date
CN108521286A (en) 2018-09-11

Similar Documents

Publication Publication Date Title
CN111836329B (en) Data transmission method and related device
CN104735729B (en) Scheduling of resource, information processing method, base station, baseband processor and user equipment
CN108886677A (en) System and method for bluetooth equipment discovery
CN109618372A (en) Data transmission method and relevant apparatus
CN103782635A (en) Synchronization method and base station
CN106658756A (en) Method and device for recognizing connection between terminal device and hotspot
CN114900205B (en) Adaptive frequency hopping method and device, storage medium and electronic equipment
CN108521286B (en) Communication method for learning type self-adaptive 2.4G frequency band wireless frequency hopping
CN108184272B (en) Interference processing method, interference processing device and computer storage medium
CN110972326A (en) Downlink control channel transmission method, terminal and network side equipment
CN111865367A (en) RFID data transmission method and device, electronic equipment and storage medium
CN110166151A (en) A kind of data transmission method and relevant device
CN106797261A (en) Remedial action based on receiving power between packet
CN104363581A (en) Determination method of associated terminal and related device
US20080075005A1 (en) Data transmission method indicating data pending in zigbee network
US10764850B2 (en) Information transceiving method, apparatus, and system
CN105637960B (en) A kind of distribution method and device of device-to-device transfer resource
CN113078926B (en) Data transmission method and device and electronic equipment
CN102934483B (en) A kind of method, apparatus and system of scheduling of resource
CN113765539B (en) Self-adaptive frequency hopping method and computer readable storage medium
CN107360605A (en) Data transmission system, method and apparatus
CN110213785A (en) Fail-soft processing method, the network equipment, terminal device and system
CN109889229B (en) Satellite communication anti-interference method and device based on satellite-ground handshake
US11930519B2 (en) Mechanism of measurement sharing and restriction for CSI-RS and SSB based UE activities in NR
CN115694756A (en) Positioning reference signal processing method, terminal and network side equipment

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