CN109362095A - Data interactive method, device and trunked base station - Google Patents

Data interactive method, device and trunked base station Download PDF

Info

Publication number
CN109362095A
CN109362095A CN201811525032.8A CN201811525032A CN109362095A CN 109362095 A CN109362095 A CN 109362095A CN 201811525032 A CN201811525032 A CN 201811525032A CN 109362095 A CN109362095 A CN 109362095A
Authority
CN
China
Prior art keywords
base station
target
master control
preemption
heartbeat frame
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.)
Granted
Application number
CN201811525032.8A
Other languages
Chinese (zh)
Other versions
CN109362095B (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.)
Chengdu Zhonghang Xinhong Technology Co Ltd
Original Assignee
Chengdu Zhonghang Xinhong 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 Chengdu Zhonghang Xinhong Technology Co Ltd filed Critical Chengdu Zhonghang Xinhong Technology Co Ltd
Priority to CN201811525032.8A priority Critical patent/CN109362095B/en
Publication of CN109362095A publication Critical patent/CN109362095A/en
Application granted granted Critical
Publication of CN109362095B publication Critical patent/CN109362095B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/04Arrangements for maintaining operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route

Abstract

Data interactive method provided by the invention, device and trunked base station, method includes: to hang base station under multiple lower targets hung in base station, when when receiving the multicast heartbeat frame for not receiving the main control base station transmission in the first preset duration after the multicast heartbeat frame that the main control base station is sent again, into contention mode, it obtains the target preemption master control heartbeat frame for hanging base station under the target and is sent to other lower extension base stations, and receive other lower other preemption master control heartbeat frames hanging base station and sending, and when identification numbers of identification number and other preemption master control heartbeat frames in target preemption master control heartbeat frame are comparably maximum or minimum, master control operating mode is changed to by contention mode by base station is hung under the target, to manage other lower extension base stations and carry out data interaction with the server.It by the above method, effectively prevents in main control base station failure, will result directly in the inoperable situation of entire trunked base station.

Description

Data interactive method, device and trunked base station
Technical field
The present invention relates to data interaction technology fields, in particular to a kind of data interactive method, device and cluster base It stands.
Background technique
Existing digital clustering communication system is mainly made of central server and trunked base station, each trunked base station mainly by Power supply, base station controller (BSC, Base Ststion Controller) and multiple base stations (BS, Base Ststion) composition; Base station controller (BSC) management is lower to hang base station (BS) and carries out data interaction by network and central server.
Inventor it has been investigated that, the prior art, which passes through, hangs base station BS and central server under base station controller BSC management When carrying out data interaction, once base station controller BSC breaks down, will result directly in entire trunked base station cannot work.
Summary of the invention
In view of this, the purpose of the present invention is to provide a kind of data interactive method, device and trunked base station, with effectively slow Solve above-mentioned technical problem.
To achieve the above object, the embodiment of the present invention adopts the following technical scheme that
A kind of data interactive method, applied to the lower extension base station in the trunked base station for being associated with server, the cluster base It stands including a main control base station and multiple lower extension base stations, each lower extension base station has respectively corresponded an identification number, which comprises
For base station is hung under multiple lower targets hung in base station, when in the multicast heartbeat for receiving the main control base station transmission When not receiving the multicast heartbeat frame that the main control base station is sent in the first preset duration after frame again, into contention mode, And obtain the target preemption master control heartbeat frame that base station is hung under the target, wherein the target preemption master control heartbeat frame includes the mesh Mark is lower to hang the corresponding identification number in base station;
The target is preempted into master control heartbeat frame and is sent to other its lower hung base station, and receive other lower extension base stations transmissions He preempts master control heartbeat frame, and the target is preempted to identification number and other described preemption master control heartbeat frames in master control heartbeat frame Identification number be compared;
When identification number in target preemption master control heartbeat frame is maximum or minimum, base station will be hung under the target by robbing Accounting for mode altering is master control operating mode, to manage other lower extension base stations and carry out data interaction with the server.
Optionally, in above-mentioned data interactive method, executing the identification number target preempted in master control heartbeat frame After the step of being compared with the identification number of other preemption master control heartbeat frames, the method also includes:
When identification number in target preemption master control heartbeat frame is not maximum or minimum, base station will be hung under the target Lower extension operating mode is changed to by seizing operating mode.
Optionally, in above-mentioned data interactive method, target preemption master control heartbeat frame is sent to other lower extension bases It stands, and receives other lower other preemption master control heartbeat frames hanging base station and sending, and the target is preempted in master control heartbeat frame Identification number with it is described other preemption master control heartbeat frames identification numbers be compared the step of include:
Target preemption master control heartbeat frame is sent to other described lower extension base stations and starts timing by step a;
Step b is obtained and is hung other described lower extension bases that base station receives under the target when timing reaches the second preset duration Other sent of standing preempt master control heartbeat frames, and the target is preempted to identification number and other described preemptions in master control heartbeat frame The identification number of master control heartbeat frame is compared;
Step c is obtained when the identification number in target preemption master control heartbeat frame is maximum or minimum and is sent the mesh The number of mark preemption master control heartbeat frame, and when the number is less than preset times, again by target preemption master control heartbeat frame It is sent to other lower extension base stations and starts timing, and return step b,
When identification number in target preemption master control heartbeat frame is maximum or minimum, base station will be hung under the target by robbing Account for the step of mode altering is master control operating mode specifically:
Reach preset times in the number for sending the target preemption master control heartbeat frame, and the target preempts master control heartbeat frame In identification number when being maximum or minimum, master control operating mode is changed to by contention mode by base station is hung under the target.
Optionally, it in above-mentioned data interactive method, is opened when receiving the multicast heartbeat frame that the main control base station is sent Before the step of beginning timing, the method also includes:
Base station is hung under the target when receiving the data of the main control base station forwarding, is sent the data to outside and is set It is standby.
The present invention also provides a kind of data interaction devices, applied to the lower extension base in the trunked base station for being associated with server It stands, the trunked base station includes a main control base station and multiple lower extension base stations, and each lower extension base station has respectively corresponded an identification number, For base station is hung under multiple lower targets hung in base station, described device includes:
Module is obtained, for when in the first preset duration after receiving the multicast heartbeat frame that the main control base station is sent When not receiving the multicast heartbeat frame that the main control base station is sent again, into contention mode, and obtains and hang base station under the target Target preempt master control heartbeat frame, wherein target preemption master control heartbeat frame includes that the corresponding mark in base station is hung under the target Number;
Comparison module for target preemption master control heartbeat frame to be sent to other lower extension base stations, and receives under other Other preemption master control heartbeat frames that base station is sent are hung, the target is preempted into identification number in master control heartbeat frame and described other are pre- The identification number for accounting for master control heartbeat frame is compared;
Data interaction module, when the identification number in target preemption master control heartbeat frame is maximum or minimum, by the mesh The lower extension base station of mark is changed to master control operating mode by contention mode, to manage other lower extension base stations and be counted with the server According to interaction.
Optionally, in above-mentioned data interaction device, the data interaction device further include:
Mode altering module, when not being maximum or be minimum for the identification number in target preemption master control heartbeat frame, Lower extension operating mode is changed to by seizing operating mode by base station is hung under the target.
Optionally, in above-mentioned data interaction device, the comparison module includes:
Sending submodule, based on target preemption master control heartbeat frame to be sent to other described lower extension base stations and is started When;
First Comparative sub-module obtains for reaching the second preset duration when timing and hangs what base station received under the target Other described lower other preemption master control heartbeat frames hanging base station and sending, and the target is preempted into the identification number in master control heartbeat frame It is compared with the identification number of other preemption master control heartbeat frames;
Second Comparative sub-module, when being maximum or be minimum for the identification number in target preemption master control heartbeat frame, The number for sending the target preemption master control heartbeat frame is obtained, and when the number is less than preset times, the target is preempted Master control heartbeat frame is sent to other lower extension base stations again and starts timing;
The data interaction module is also used to reach preset times in the number for sending the target preemption master control heartbeat frame, And the identification number in target preemption master control heartbeat frame is changed base station is hung under the target by contention mode when being maximum or minimum For master control operating mode.
Optionally, in above-mentioned data interaction device, described device further includes sending module, and base station is hung under the target and is existed When receiving the data of the main control base station forwarding, external equipment is sent the data to.
The present invention also provides a kind of trunked base stations, including a main control base station and multiple lower extension base stations, for multiple lower extensions Base station is hung under target in base station, base station is hung under the target and includes memory, processor and storage on a memory and can locate The computer program run on reason device, the processor perform the steps of when executing described program
Start timing when receiving the multicast heartbeat frame that the main control base station is sent, and timing reach first it is default when When the long multicast heartbeat frame for not receiving the main control base station transmission again, into contention mode, and obtains and hang base under the target The target preemption master control heartbeat frame stood, wherein the target preemption master control heartbeat frame includes that the corresponding mark in base station is hung under the target Knowledge number;
The target is preempted into master control heartbeat frame and is sent to other its lower hung base station, and receive other lower extension base stations transmissions He preempts master control heartbeat frame, and the target is preempted to identification number and other described preemption master control heartbeat frames in master control heartbeat frame Identification number be compared;
When identification number in target preemption master control heartbeat frame is maximum or minimum, base station will be hung under the target by robbing Accounting for mode altering is master control operating mode, to receive the data of server transmission and be forwarded to other described lower extension base stations.
The present invention also provides a kind of computer readable storage mediums, are stored thereon with computer program, and the program is processed Device realizes the step in the data interactive method when executing.
Data interactive method, device and trunked base station provided by the invention, method include in multiple lower extension base stations Base station is hung under target, is not received again when in the first preset duration after receiving the multicast heartbeat frame of main control base station transmission When the multicast heartbeat frame that main control base station is sent, into contention mode, and the target preemption master control heartbeat that base station is hung under target is obtained Frame be simultaneously sent to other it is lower hang base station, and receive other lower other preemption master control heartbeat frames hanging base stations and sending, and by target When the identification number of identification number and other preemption master control heartbeat frames in preemption master control heartbeat frame is comparably maximum or minimum, by the mesh The lower extension base station of mark is changed to master control operating mode by contention mode, to manage other lower extension base stations and be counted with the server According to interaction.It by the above method, effectively prevents in main control base station failure, will result directly in entire trunked base station cannot work The case where.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate Appended attached drawing, is described in detail below.
Detailed description of the invention
Fig. 1 is the application schematic diagram of trunked base station in the prior art.
Fig. 2 is the connection block diagram that base station is hung under target in the prior art.
Fig. 3 is the flow diagram of data interactive method provided in an embodiment of the present invention.
Fig. 4 is the flow diagram of step S120 in Fig. 3.
Fig. 5 is the connection block diagram of data interaction device provided in an embodiment of the present invention.
Fig. 6 is the connection block diagram of comparison module provided in an embodiment of the present invention.
Icon: base station is hung under 10- target;12- memory;14- processor;100- data interaction device;110- obtains mould Block;120- comparison module;122- sending submodule;The first Comparative sub-module of 124-;The second Comparative sub-module of 126-;130- data Interactive module.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment only It is a part of the embodiments of the present invention, instead of all the embodiments.The present invention being usually described and illustrated herein in the accompanying drawings The component of embodiment can be arranged and be designed with a variety of different configurations.
Therefore, the detailed description of the embodiment of the present invention provided in the accompanying drawings is not intended to limit below claimed The scope of the present invention, but be merely representative of selected embodiment of the invention.Based on the embodiments of the present invention, this field is common Technical staff's every other embodiment obtained without creative efforts belongs to the model that the present invention protects It encloses.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.
In the description of the present invention unless specifically defined or limited otherwise, term " setting ", " connected ", " connection " are answered It is interpreted broadly, for example, it may be being fixedly connected, may be a detachable connection, or be integrally connected;It can be mechanical connect It connects, is also possible to be electrically connected;It can be directly connected, can also can be in two elements indirectly connected through an intermediary The connection in portion.For the ordinary skill in the art, the tool of above-mentioned term in the present invention can be understood with concrete condition Body meaning.
Referring to Fig. 1, the present invention provides a kind of application schematic diagram of trunked base station, the trunked base station can be applied to include The digital clustering communication system of server, wherein the trunked base station for including in the digital clustering communication system is multiple, Duo Gesuo Trunked base station is stated to interact with the server by network respectively.
Wherein, trunked base station may include a main control base station, multiple lower extension base stations and power supply, and power supply is used for master control Base station and each lower extension base station are powered, and main control base station is for managing each lower extension base station and being handed over by network and server Mutually, each lower extension base station has respectively corresponded an identification number, it should be noted that the different corresponding identification numbers in lower extension base station are not Together, and in multiple lower extension base stations, the corresponding identification number in each lower extension base station can be discontinuous.
Referring to Fig. 2, hanging base station 10 under a kind of target provided by the invention, wherein it is described for hanging base station 10 under the target Any one multiple lower hung in base station for including in trunked base station.It includes memory 12 and processing that base station 10 is hung under the target Device 14.
The memory 12 is directly or indirectly electrically connected between each other with processor 14, with realize data transmission or Interaction.It is electrically connected for example, these elements can be realized between each other by one or more communication bus or signal wire.Memory The software program module being stored in the memory 12 in the form of software or firmware (Firmware) is stored in 12, it is described The software program and module that processor 14 is stored in memory 12 by operation, such as the data interaction in the embodiment of the present invention Device 100, thereby executing various function application and data processing, i.e. data interactive method in the realization embodiment of the present invention.
The memory 12 may be, but not limited to, random access memory (Random Access Memory, RAM), Read-only memory (Read Only Memory, ROM), programmable read only memory (Programmable Read-Only Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only Memory, EPROM), Electricallyerasable ROM (EEROM) (Electrically Erasable Programmable Read-Only Memory, The computer readable storage mediums such as EEPROM).Wherein, memory 12 is for storing program, and the processor 14 is held receiving After row instruction, described program is executed.
The processor 14 realizes following methods when executing described program: in the multicast for receiving the main control base station transmission Start timing when heartbeat frame, and reaches the first preset duration in timing and do not receive the multicast heart that the main control base station is sent again When frame-skipping, into contention mode, and the target preemption master control heartbeat frame that base station 10 is hung under the target is obtained, wherein the target Preemption master control heartbeat frame includes the extension corresponding identification number in base station 10 under the target, and target preemption master control heartbeat frame is sent to Other are lower to hang base stations, and receives other lower other preemption master control heartbeat frames hanging base stations and sending, and the target is preempted master control Identification number in heartbeat frame is compared with the identification number of other preemption master control heartbeat frames, preempts the master control heart in the target When identification number in frame-skipping is maximum or minimum, master control operating mode is changed to by contention mode by base station 10 is hung under the target, To receive the data of server transmission and be forwarded to other described lower extension base stations.
The processor 14 may be a kind of IC chip, the processing capacity with signal.Above-mentioned processor 14 It can be general processor, including central processing unit (Central Processing Unit, CPU), network processing unit (Network Processor, NP) etc..It can also be digital signal processor 14 (DSP), specific integrated circuit (ASIC), show Field programmable gate array (FPGA) either other programmable logic device, discrete gate or transistor logic, discrete hardware Component.It may be implemented or execute disclosed each method, step and the logic diagram in the embodiment of the present invention.General processor can To be that microprocessor or the processor are also possible to any conventional processor etc..
It please join Fig. 3, the present invention provides a kind of data interactive method, and the method can be applied under above-mentioned target hang base station 10, the method is applied to perform the steps of when hanging base station 10 under above-mentioned target
Step S110: for hanging base station 10 under multiple lower targets hung in base stations, when receiving main control base station hair When not receiving the multicast heartbeat frame that the main control base station is sent in the first preset duration after the multicast heartbeat frame sent again, into Enter contention mode, and obtain the target preemption master control heartbeat frame for hanging base station 10 under the target, wherein the target preempts the master control heart Frame-skipping includes the extension corresponding identification number in base station 10 under the target.
Wherein, the target preemption master control heartbeat frame includes the extension corresponding identification number in base station 10 under the target.
It should be noted that under normal conditions, the main control base station can set duration to the main control base station pipe at interval of one All lower extensions base stations of reason send multicast heartbeat frames, when hanging base station 10 under target in the multicast for receiving the main control base station transmission It, then it is believed that should when not receiving the multicast heartbeat frame that the main control base station is sent in the first preset duration after heartbeat frame again Main control base station breaks down, and first preset duration is greater than the setting duration.
It should also be noted that, each lower extension base station can send preemption master control to other lower base stations that hang under contention mode Heartbeat frame, to be used for indicating that the lower extension base station for sending the preemption master control heartbeat frame can be used as main control base station.The target Preempting master control heartbeat frame and other preemption master control heartbeat frames is all protocol frame, in order to be passed between each lower extension base station It is defeated.
In addition, because occurring during to avoid the multicast heartbeat frame sent by main control base station from hanging base station 10 under transmission objectives Delay, thus the case where causing erroneous judgement to the state of the main control base station, in the present embodiment, first preset duration be should be More times of the setting duration, for example, 3 times, 5 times or 7 times, it is not specifically limited herein, is configured according to actual needs i.e. It can.
For example, in the present embodiment, the main control base station sends a multicast heart to each lower extension base station at interval of 200 milliseconds Frame-skipping receives multicast heartbeat frame every time and can start timing, do not receive again if timing reaches 1 second when hanging base station 10 under target When the multicast heartbeat frame sent to main control base station, then it can determine that as the main control base station failure, and to hang base station 10 under the target Operating mode contention mode is entered by lower extension operating mode.
Step S120: target preemption master control heartbeat frame is sent to other lower extension base stations, and receives other lower extension bases Other sent of standing preempt master control heartbeat frames, and the target is preempted to identification number and other described preemptions in master control heartbeat frame The identification number of master control heartbeat frame is compared.
It should be noted that by the way that the target to be preempted to identification number and other preemption master control heartbeats in master control heartbeat frame Identification number in frame is compared to judge whether the identification number in target preemption master control heartbeat frame is maximum or minimum.
Step S130:, will be under the target when identification number in target preemption master control heartbeat frame is maximum or minimum It hangs base station 10 and master control operating mode is changed to by contention mode, to manage other lower extension base stations and carry out data with the server Interaction.
In addition, after executing step S120, the method also includes: the identification number in the preemption master control heartbeat frame is not When being maximum or minimum, lower extension operating mode is changed to by seizing operating mode by base station 10 is hung under the target.
Specifically, in the present embodiment, when the identification number in the target master control heartbeat frame is minimum, by the target The lower operating mode for hanging base station 10 is changed to master control operating mode by contention mode, to hang the Working mould of base station 10 under the target When formula is master control operating mode, used as new main control base station, and in as main control base station use process, at interval of setting Duration sends the multicast heartbeat frame to other lower base stations that hang, so that any one in other lower extension base stations is lower to hang base station Above-mentioned steps S110-S130 is repeated, and then effective guarantee trunked base station can carry out reliable data with the server Interaction.In addition, the work of base station 10 will be hung under the target when identification number in the target master control heartbeat frame is not minimum Mode is changed to lower extension operating mode by contention mode, to hang the operating mode of base station 10 under the target as lower extension operating mode When, it is used as lower extension base station.
By above-mentioned setting, with when carrying out data interaction using above-mentioned trunked base station and server, effectively avoid because When main control base station failure in trunked base station, the case where caused trunked base station cisco unity malfunction, in addition, even if there is only When one normal lower extension base station, can also it work on, and then effectively increase the reliability of trunked base station, and avoid When main control base station failure, need to repair at once replacement main control base station caused by high construction cost the problem of.
To avoid hanging base station 10 under the target when receiving other lower other preemption master control heartbeat frames for hanging base station transmission, Cause other lower base stations that hang its other corresponding preemption master control heartbeat frame cannot be sent to this in time due to there are network delay Base station 10 is hung under target, in turn results in the identification number in the target preemption master control heartbeat frame as maximum or the smallest judging result Not accurate enough situation, incorporated by reference to Fig. 4, in the present embodiment, the step S120 the following steps are included:
Step S122: target preemption master control heartbeat frame is sent to other described lower extension base stations and starts timing.
Step S124: when timing reaches the second preset duration, obtain hang that base station 10 receives under the target it is described other It is lower hang base station send other preemption master control heartbeat frames, and by the target preempt master control heartbeat frame in identification number and it is described its The identification number that he preempts master control heartbeat frame is compared.
Wherein, second preset duration may be, but not limited to, 30 milliseconds, 50 milliseconds or 80 milliseconds, not make to have herein Body limits, and is configured according to actual needs.
Step S126: it when the identification number in target preemption master control heartbeat frame is maximum or minimum, obtains and sends institute The number of target preemption master control heartbeat frame is stated, and when the number is less than preset times, the target is preempted into master control heartbeat frame It is sent to other lower extension base stations again and starts timing, and return step S124.
In the present embodiment, step S126 can be when the identification number in target preemption master control heartbeat frame is minimum When, obtain the number for sending the target preemption master control heartbeat frame.When the target preempts the identification number in master control heartbeat frame not Base station 10 is hung when for minimum, under the target, and its operating mode is changed to lower extension operating mode by contention mode.It is described default Number may be, but not limited to, 5 times, 10 times or 15 times, is not specifically limited herein, is configured according to actual needs.
Step S130 specifically:
Reach preset times in the number for sending the target preemption master control heartbeat frame, and the target preempts master control heartbeat frame In identification number when being maximum or minimum, master control operating mode is changed to by contention mode by base station 10 is hung under the target.
Before the step of starting timing when receiving the multicast heartbeat frame that the main control base station is sent, the method is also wrapped It includes:
Base station 10 is hung under the target when receiving the data of the main control base station forwarding, is sent the data to outside and is set It is standby.
Wherein, the external equipment can be the terminals such as computer, plate, mobile phone, and being also possible to arbitrarily can be with the mesh Mark is lower to hang the electronic equipment that base station 10 is communicated, and is not specifically limited herein.
Referring to Fig. 5, on the basis of the above, the present invention also provides a kind of numbers that can be applied under above-mentioned target hang base station 10 According to interactive device 100, which may include: to obtain module 110, comparison module 120 and data interaction mould Block 130.
The acquisition module 110, for starting timing when receiving the multicast heartbeat frame that the main control base station is sent, and When timing reaches the first preset duration and do not receive the multicast heartbeat frame that the main control base station is sent again, into seizing mould Formula, and obtain the target preemption master control heartbeat frame that base station 10 is hung under the target, wherein the target preempts master control heartbeat frame and includes The corresponding identification number in base station 10 is hung under the target.In the present embodiment, the acquisition module 110 can be used for executing shown in Fig. 3 Step S110 is referred to the description to step S110 above about the specific descriptions for obtaining module 110.
The comparison module 120 for target preemption master control heartbeat frame to be sent to other lower extension base stations, and receives Other lower other preemption master control heartbeat frames hanging base stations and sending, by the target preempt identification number in master control heartbeat frame with it is described The identification number of other preemption master control heartbeat frames is compared.In the present embodiment, the comparison module 120 can be used for executing Fig. 3 Shown step S120, the specific descriptions about the comparison module 120 are referred to the description to step S120 above.
The data interaction module 130, when the identification number in target preemption master control heartbeat frame is maximum or minimum, Master control operating mode is changed to by contention mode by base station 10 is hung under the target, with manage other it is lower hang base stations and with the service Device carries out data interaction.In the present embodiment, the data interaction module 130 can be used for executing step S130 shown in Fig. 3, close The description to step S130 above is referred in the specific descriptions of the data interaction module 130.
Referring to Fig. 6, the comparison module 120 includes sending submodule 122, the first Comparative sub-module 124 and second Comparative sub-module 126.
The sending submodule 122, for target preemption master control heartbeat frame to be sent to other described lower extension base stations And start timing.In the present embodiment, the sending submodule 122 can be used for executing step S122 shown in Fig. 4, about described The specific descriptions of sending submodule 122 are referred to the description to step S122 above.
First Comparative sub-module 124 obtains extension base station 10 under the target for reaching the second preset duration when timing Other described lower other preemption master control heartbeat frames hanging base station and sending received, and the target is preempted in master control heartbeat frame Identification number with it is described other preemption master control heartbeat frames identification numbers be compared.In the present embodiment, first comparison is sub Module 124 can be used for executing step S124 shown in Fig. 4, and the specific descriptions about first Comparative sub-module 124 can join According to the description above to step S124.
Second Comparative sub-module 126, for the identification number in target preemption master control heartbeat frame be it is maximum or When minimum, the number for sending the target preemption master control heartbeat frame is obtained, and when the number is less than preset times, by the mesh Mark preemption master control heartbeat frame is sent to other lower extension base stations again and starts timing.In the present embodiment, second comparison is sub Module 126 can be used for executing step S126 shown in Fig. 4, and the specific descriptions about second Comparative sub-module 126 can join According to the description above to step S126.
The data interaction module 130 is also used to reach default time in the number for sending the target preemption master control heartbeat frame Number, and when the identification number in target preemption master control heartbeat frame is maximum or minimum, base station 10 will be hung under the target by seizing mould Formula is changed to master control operating mode.
In addition, in the present embodiment, the data interaction device 100 further includes mode altering module and sending module.
The mode altering module is not maximum or minimum for the identification number in target preemption master control heartbeat frame When, lower extension operating mode is changed to by seizing operating mode by base station 10 is hung under the target.Tool about the change module Body description is referred to the description to the data interactive method above.
The sending module hangs base station 10 under the target when receiving the data of the main control base station forwarding, by the number According to being sent to external equipment.Specific descriptions about the change module are referred to above retouch the data interactive method It states.
In conclusion data interactive method provided by the invention, device and trunked base station, method includes: in Digital Clustering Target under hang base station 10 and start timing when receiving the multicast heartbeat frame of main control base station transmission, and it is pre- in timing to reach first If duration does not receive the multicast heartbeat frame of main control base station transmission again, into contention mode, the target of acquisition preempts master control Heartbeat frame is simultaneously sent to other lower extension base stations, and receives other lower other preemption master control heartbeat frames hanging base stations and sending, and by It, will when the identification number of identification number and other preemption master control heartbeat frames in target preemption master control heartbeat frame is comparably maximum or minimum Hang base station 10 under the target and master control operating mode be changed to by contention mode, with manage other it is lower hang base stations and with the server Carry out data interaction.By the above method, effectively prevent will result directly in entire trunked base station not in main control base station failure Workable situation.
In several embodiments provided by the embodiment of the present invention, it should be understood that disclosed device and method, it can also To realize by another way.Device and method embodiment described above is only schematical, for example, in attached drawing Flow chart and block diagram show that the devices of multiple embodiments according to the present invention, method and computer program product are able to achieve Architecture, function and operation.In this regard, each box in flowchart or block diagram can represent module, a program A part of section or code, a part of the module, section or code include that one or more is patrolled for realizing defined Collect the executable instruction of function.It should also be noted that in some implementations as replacement, function marked in the box It can occur in a different order than that indicated in the drawings.For example, two continuous boxes can actually be held substantially in parallel Row, they can also be executed in the opposite order sometimes, and this depends on the function involved.It is also noted that block diagram and/or The combination of each box in flow chart and the box in block diagram and or flow chart, can the function as defined in executing or dynamic The dedicated hardware based system made is realized, or can be realized using a combination of dedicated hardware and computer instructions.
In addition, each functional module in each embodiment of the present invention can integrate one independent portion of formation together Point, it is also possible to modules individualism, an independent part can also be integrated to form with two or more modules.
It, can be with if the function is realized and when sold or used as an independent product in the form of software function module It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a People's computer, electronic equipment or network equipment etc.) execute all or part of step of each embodiment the method for the present invention Suddenly.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), deposits at random The various media that can store program code such as access to memory (RAM, Random Access Memory), magnetic or disk. It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to the packet of nonexcludability Contain, so that the process, method, article or equipment for including a series of elements not only includes those elements, but also including Other elements that are not explicitly listed, or further include for elements inherent to such a process, method, article, or device. In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including the element Process, method, article or equipment in there is also other identical elements.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repair Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.

Claims (10)

1. a kind of data interactive method, applied to the lower extension base station in the trunked base station for being associated with server, which is characterized in that institute Stating trunked base station includes a main control base station and multiple lower extension base stations, and each lower extension base station has respectively corresponded an identification number, described Method includes:
For base station is hung under multiple lower targets hung in base station, when after receiving the multicast heartbeat frame that the main control base station is sent The first preset duration in when not receiving the multicast heartbeat frame that the main control base station is sent again, into contention mode, and obtain Obtain the target preemption master control heartbeat frame that base station is hung under the target, wherein the target preemption master control heartbeat frame includes under the target Hang the corresponding identification number in base station;
By target preemption master control heartbeat frame be sent to other it is lower hang base station, and receive other it is lower hang that base stations send other are pre- Master control heartbeat frame is accounted for, and the target is preempted into the identification number in master control heartbeat frame and preempts the mark of master control heartbeat frames with described other Knowledge number is compared;
When identification number in target preemption master control heartbeat frame is maximum or minimum, base station will be hung under the target by seizing mould Formula is changed to master control operating mode, to manage other lower extension base stations and carry out data interaction with the server.
2. data interactive method according to claim 1, which is characterized in that the target is preempted master control heartbeat executing After the step of identification number in frame is compared with the identification number of other preemption master control heartbeat frames, the method is also wrapped It includes:
When identification number in the preemption master control heartbeat frame is not maximum or minimum, base station will be hung under the target by seizing work Mode altering is lower extension operating mode.
3. data interactive method according to claim 1, which is characterized in that send target preemption master control heartbeat frame To other it is lower hang base station, and receive other lower other preemption master control heartbeat frames hanging base stations and sending, and the target is preempted and is led Controlling the step of identification number in heartbeat frame is compared with identification numbers of other preemption master control heartbeat frames includes:
Target preemption master control heartbeat frame is sent to other described lower extension base stations and starts timing by step a;
Step b obtains described other for hanging that base station receives under the target and lower hangs base stations hair when timing reaches the second preset duration Other preemption master control heartbeat frames sent, and the target is preempted into the identification number in master control heartbeat frame and preempts master controls with described other The identification number of heartbeat frame is compared;
Step c, when the identification number in target preemption master control heartbeat frame is maximum or minimum, it is pre- that acquisition sends the target The number of master control heartbeat frame is accounted for, and when the number is less than preset times, target preemption master control heartbeat frame is sent again To other lower extension base stations and start timing, and return step b;
When identification number in target preemption master control heartbeat frame is maximum or minimum, base station will be hung under the target by seizing mould Formula is changed to the step of master control operating mode specifically:
Reach preset times in the number for sending the target preemption master control heartbeat frame, and in target preemption master control heartbeat frame When identification number is maximum or minimum, master control operating mode is changed to by contention mode by base station is hung under the target.
4. data interactive method according to claim 1, which is characterized in that in the group for receiving the main control base station transmission Before the step of starting timing when broadcasting heartbeat frame, the method also includes:
Base station is hung under the target when receiving the data of the main control base station forwarding, sends the data to external equipment.
5. a kind of data interaction device, applied to the lower extension base station in the trunked base station for being associated with server, which is characterized in that institute Stating trunked base station includes a main control base station and multiple lower extension base stations, and each lower extension base station has respectively corresponded an identification number, for Base station is hung under multiple lower targets hung in base station, described device includes:
Obtain module, for when in the first preset duration after receiving the multicast heartbeat frame of main control base station transmission not again When the secondary multicast heartbeat frame for receiving the main control base station transmission, into contention mode, and the mesh that base station is hung under the target is obtained Mark preemption master control heartbeat frame, wherein the target preemption master control heartbeat frame includes that the corresponding identification number in base station is hung under the target;
Comparison module for target preemption master control heartbeat frame to be sent to other lower extension base stations, and receives other lower extension bases Other sent of standing preempt master control heartbeat frames, and the target is preempted the identification number in master control heartbeat frame and is led with other described preemptions The identification number of control heartbeat frame is compared;
Data interaction module will be under the target when identification number in target preemption master control heartbeat frame is maximum or minimum It hangs base station and master control operating mode is changed to by contention mode, to manage other lower extension base stations and carry out data friendship with the server Mutually.
6. data interaction device according to claim 5, which is characterized in that the data interaction device further include:
Mode altering module, when not being maximum or is minimum for the identification number in target preemption master control heartbeat frame, by institute It states and hangs base station under target and by seizing operating mode be changed to lower extension operating mode.
7. data interaction device according to claim 6, which is characterized in that the comparison module includes:
Sending submodule, for target preemption master control heartbeat frame to be sent to other described lower extension base stations and starts timing;
First Comparative sub-module, for reaching the second preset duration when timing, obtain hung under the target base station receive it is described Other of other lower extension base stations transmissions preempt master control heartbeat frames, and the target is preempted to identification number and institute in master control heartbeat frame The identification number for stating other preemption master control heartbeat frames is compared;
Second Comparative sub-module obtains when being maximum or is minimum for the identification number in target preemption master control heartbeat frame The number of the target preemption master control heartbeat frame is sent, and when the number is less than preset times, the target is preempted into master control Heartbeat frame is sent to other lower extension base stations again and starts timing;
The data interaction module is also used to reach preset times in the number for sending the target preemption master control heartbeat frame, and should Target preempts the identification number in master control heartbeat frame when being maximum or minimum, will hang under the target based on base station changed by contention mode Control operating mode.
8. data interaction device according to claim 5, which is characterized in that described device further includes sending module, described Base station is hung under target when receiving the data of the main control base station forwarding, sends the data to external equipment.
9. a kind of trunked base station, which is characterized in that including a main control base station and multiple lower extension base stations, for multiple lower extension base stations In target under hang base station, hung under the target base station include memory, processor and storage on a memory and can be in processor The computer program of upper operation, the processor perform the steps of when executing described program
For base station is hung under multiple lower targets hung in base station, when after receiving the multicast heartbeat frame that the main control base station is sent The first preset duration in when not receiving the multicast heartbeat frame that the main control base station is sent again, into contention mode, and obtain Obtain the target preemption master control heartbeat frame that base station is hung under the target, wherein the target preemption master control heartbeat frame includes under the target Hang the corresponding identification number in base station;
By target preemption master control heartbeat frame be sent to other it is lower hang base station, and receive other it is lower hang that base stations send other are pre- Master control heartbeat frame is accounted for, and the target is preempted into the identification number in master control heartbeat frame and preempts the mark of master control heartbeat frames with described other Knowledge number is compared;
When identification number in target preemption master control heartbeat frame is maximum or minimum, base station will be hung under the target by seizing mould Formula is changed to master control operating mode, to receive the data of server transmission and be forwarded to other described lower extension base stations.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor The step of any one of Claims 1 to 4 the method is realized when execution.
CN201811525032.8A 2018-12-13 2018-12-13 Data interaction method and device and cluster base station Active CN109362095B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811525032.8A CN109362095B (en) 2018-12-13 2018-12-13 Data interaction method and device and cluster base station

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811525032.8A CN109362095B (en) 2018-12-13 2018-12-13 Data interaction method and device and cluster base station

Publications (2)

Publication Number Publication Date
CN109362095A true CN109362095A (en) 2019-02-19
CN109362095B CN109362095B (en) 2021-10-08

Family

ID=65328799

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811525032.8A Active CN109362095B (en) 2018-12-13 2018-12-13 Data interaction method and device and cluster base station

Country Status (1)

Country Link
CN (1) CN109362095B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070242597A1 (en) * 1995-02-06 2007-10-18 Adc Telecommunications, Inc. Scanning by remotes in multipoint-to-point communication using orthogonal frequency division multiplexing
EP1860908A1 (en) * 2005-08-23 2007-11-28 Huawei Technologies Co., Ltd. Connecting detection method in calling procedure between bsc and msc
CN103826243A (en) * 2014-03-07 2014-05-28 东方通信股份有限公司 Rapid and flexible capacity adjusting method for digital trunked communication system base stations
CN104954999A (en) * 2014-03-26 2015-09-30 海能达通信股份有限公司 Method and terminal for communication based on distributed cluster communication system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070242597A1 (en) * 1995-02-06 2007-10-18 Adc Telecommunications, Inc. Scanning by remotes in multipoint-to-point communication using orthogonal frequency division multiplexing
EP1860908A1 (en) * 2005-08-23 2007-11-28 Huawei Technologies Co., Ltd. Connecting detection method in calling procedure between bsc and msc
CN103826243A (en) * 2014-03-07 2014-05-28 东方通信股份有限公司 Rapid and flexible capacity adjusting method for digital trunked communication system base stations
CN104954999A (en) * 2014-03-26 2015-09-30 海能达通信股份有限公司 Method and terminal for communication based on distributed cluster communication system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
吴少川 等: "数字集群系统的Ad Hoc路由技术", 《电子器件》 *
蒋轶林 等: "分布式存储在数字集群移动通信系统中的应用", 《杭州电子科技大学学报》 *

Also Published As

Publication number Publication date
CN109362095B (en) 2021-10-08

Similar Documents

Publication Publication Date Title
US20170201448A1 (en) Techniques Associated with Server Transaction Latency Information
CN104965727B (en) A kind of method and device for restarting server
CN106488500B (en) A kind of public network and the adaptive method and device of private network
CN102299833A (en) Intelligent remote household control system and method
CN103281261B (en) A kind of ethernet communication method and system
CN103346980B (en) A kind of business scheduling method, device and the network equipment
CN104639385B (en) Detect the method and apparatus of L2VPN network user's side interface connectivity
CN105376861A (en) Sending method by occupying unlicensed carriers, system and access point
US10419950B2 (en) Monitoring processing method and device
CN109040178B (en) Configuration information sending method and device
CN103150241B (en) Multiserver state monitoring and management system and method
US10944716B2 (en) Metering device address management method, collection terminal, and metering device
WO2016173280A1 (en) Monitoring management method and apparatus
US20110086649A1 (en) Methodology for Traffic Control Based on Cross-Carriers Short Message (SMS) Application
CN108512820B (en) Method and equipment for server to respond to request message in communication system
US20130219052A1 (en) Dynamic configuration of interconnected devices for measuring performance characteristics in a network
US10033807B2 (en) Method and M2M gateway for managing data of terminal peripheral
CN108712494A (en) Handle the method, apparatus and equipment of asynchronous message
CN109362095A (en) Data interactive method, device and trunked base station
CN107454208A (en) A kind of is the method that network address is distributed from node device
US10674337B2 (en) Method and device for processing operation for device peripheral
CN108173707B (en) Method and device for controlling use of media resources
CN105450466B (en) A kind of ICMP request messages keep-alive control method and system
CN105681187A (en) VRRP (Virtual Router Redundancy Protocol) backup set management method and related device
US20180076973A1 (en) Transmission system and transmission station

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