CN111510350A - Data time-sharing acquisition method and device based on multiple channels - Google Patents
Data time-sharing acquisition method and device based on multiple channels Download PDFInfo
- Publication number
- CN111510350A CN111510350A CN202010281168.XA CN202010281168A CN111510350A CN 111510350 A CN111510350 A CN 111510350A CN 202010281168 A CN202010281168 A CN 202010281168A CN 111510350 A CN111510350 A CN 111510350A
- Authority
- CN
- China
- Prior art keywords
- acquisition
- node
- data
- terminal
- reporting
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/10—Active monitoring, e.g. heartbeat, ping or trace-route
- H04L43/103—Active monitoring, e.g. heartbeat, ping or trace-route with adaptive polling, i.e. dynamically adapting the polling rate
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/12—Arrangements for detecting or preventing errors in the information received by using return channel
- H04L1/16—Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
- H04L1/1607—Details of the supervisory signal
- H04L1/1614—Details of the supervisory signal using bitmaps
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/06—Generation of reports
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Cardiology (AREA)
- General Health & Medical Sciences (AREA)
- Mobile Radio Communication Systems (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The embodiment of the application discloses a data time-sharing acquisition method and device based on multiple channels. According to the technical scheme provided by the embodiment of the application, the gateway receives the node synchronization request sent by each terminal in real time, returns the corresponding node synchronization response to the terminal based on the node synchronization request, and indicates each terminal to carry out the reporting channel and the reporting time slice for data reporting through the node synchronization response; and further receiving the node acquisition response reported by each terminal according to the corresponding node synchronous response through the broadcast node acquisition request, and recording the data acquisition result state of each terminal. By adopting the technical means, the reporting channel and the reporting time slice for reporting the data by the node synchronous response indication terminal can be used, so that each terminal can upload the data through the designated channel and the designated time, the sub-channel and time-sharing data acquisition of the gateway can be realized, and the efficiency and the success rate of the data acquisition can be improved.
Description
Technical Field
The embodiment of the application relates to the technical field of communication, in particular to a multichannel-based data time-sharing acquisition method and device.
Background
In a communication network, a gateway is used as a central node, and in the data acquisition process, a round-robin acquisition mode is usually adopted, and the central node sequentially performs polling acquisition operations on terminal nodes in the network, and the data acquisition mode needs a large amount of acquisition time, which can cause the main service processing of the system to be delayed. In order to reduce the data acquisition time, a random acquisition mode is usually adopted, a central node broadcasts an acquisition operation instruction to each terminal node, and each terminal node randomly selects a channel and randomly selects a time point to report data. However, the random acquisition mode is easy to cause channel congestion, which results in errors in transmitted data.
Disclosure of Invention
The embodiment of the application provides a data time-sharing acquisition method and device based on multiple channels, electronic equipment and a storage medium, which can shorten data acquisition time, avoid channel congestion and improve data acquisition efficiency and success rate.
In a first aspect, an embodiment of the present application provides a data time-sharing acquisition method based on multiple channels, including:
receiving node synchronization requests sent by each terminal in real time, and returning corresponding node synchronization responses to the terminals based on the node synchronization requests, wherein the node synchronization responses are used for indicating a reporting channel and a reporting time slice for each terminal to carry out data reporting;
broadcasting a node acquisition request, receiving a node acquisition response reported by each terminal based on the node acquisition request, and reporting the node acquisition response in a time-sharing manner according to a reporting channel and a reporting time slice of the corresponding node synchronous response indication;
and recording the data acquisition result state of each terminal based on the node acquisition response until the current data acquisition process is finished.
Further, the node acquisition request comprises an acquisition number, an acquisition address, an acquisition mode and data information of the acquisition request, wherein the acquisition mode is a first acquisition mode or a second acquisition mode;
correspondingly, the node synchronization response includes a first mode index value and a second mode index value, the first mode index value is used for calculating a reporting time slice of data reporting of the corresponding terminal in the first acquisition mode, and a reporting channel of the terminal in the first acquisition mode corresponds to a channel used for sending the node synchronization request; the second mode index value is used for calculating a corresponding reporting time slice and a corresponding reporting channel for data reporting of the terminal in the second acquisition mode, and the reporting channel of the terminal in the second acquisition mode is determined according to the second mode index value and the number of channels.
Further, the returning a corresponding node synchronization response to the terminal based on the node synchronization request includes:
and generating the first mode index value and the second mode index value according to a pre-stored channel list and a terminal list.
Further, the node acquisition response correspondingly comprises an acquisition number, an acquisition address and data information of the response.
Further, the recording the data acquisition result state of each terminal based on the node acquisition response includes:
and judging the corresponding data acquisition result state of the terminal according to the data information responded in the node acquisition response.
Further, recording the data acquisition result state of each terminal based on the node acquisition response until the current data acquisition process is finished, further comprising:
and determining the terminal with failed data acquisition according to the data acquisition result state, corresponding to the broadcast repeated acquisition request, and receiving a node acquisition response returned by the corresponding terminal based on the broadcast repeated acquisition request.
Further, the repeated acquisition request includes bitmap information, and the bitmap information is used to provide a calculation basis for reporting a channel and reporting a time slice when the terminal returns a node acquisition response again.
In a second aspect, an embodiment of the present application provides a data time-sharing acquisition apparatus based on multiple channels, including:
the response module is used for receiving node synchronization requests sent by all terminals in real time and returning corresponding node synchronization responses to the terminals based on the node synchronization requests, wherein the node synchronization responses are used for indicating a reporting channel and a reporting time slice for data reporting of all the terminals;
a broadcast module, configured to broadcast a node acquisition request, and receive a node acquisition response reported by each terminal based on the node acquisition request, where the node acquisition response is reported in a time-sharing manner according to a reporting channel and a reporting time slice of a corresponding node synchronous response indication;
and the recording module is used for recording the data acquisition result state of each terminal based on the node acquisition response until the current data acquisition process is finished.
In a third aspect, an embodiment of the present application provides an electronic device, including:
a memory and one or more processors;
the memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the multichannel-based data time-shared acquisition method as described in the first aspect.
In a fourth aspect, embodiments of the present application provide a storage medium containing computer-executable instructions for performing the multichannel-based data time-sharing acquisition method according to the first aspect when executed by a computer processor.
The method comprises the steps that a node synchronization request sent by each terminal is received in real time through a gateway, a corresponding node synchronization response is returned to the terminal based on the node synchronization request, and a reporting channel and a reporting time slice for data reporting of each terminal are indicated through the node synchronization response; and further receiving the node acquisition response reported by each terminal according to the corresponding node synchronous response through the broadcast node acquisition request, and recording the data acquisition result state of each terminal. By adopting the technical means, the reporting channel and the reporting time slice for reporting the data by the node synchronous response indication terminal can be used, so that each terminal can upload the data through the designated channel and the designated time, the sub-channel and time-sharing data acquisition of the gateway can be realized, and the efficiency and the success rate of the data acquisition can be improved.
Drawings
Fig. 1 is a flowchart of a data time-sharing acquisition method based on multiple channels according to an embodiment of the present application;
fig. 2 is a schematic diagram of a terminal state in the first embodiment of the present application;
fig. 3 is a flowchart of another data time-sharing acquisition method based on multiple channels according to the second embodiment of the present application;
fig. 4 is a schematic structural diagram of a data time-sharing acquisition device based on multiple channels according to a third embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, specific embodiments of the present application will be described in detail with reference to the accompanying drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be further noted that, for the convenience of description, only some but not all of the relevant portions of the present application are shown in the drawings. Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
The application provides a data time-sharing acquisition method based on multiple channels, which aims to acquire data of nodes (namely terminals) in a system through the multiple channels, and acquire the data in a data acquisition mode of channel grouping and time-sharing reporting, so that the time spent on data acquisition is shortened, the problem of data transmission channel congestion in the data acquisition process is further avoided, and the data acquisition efficiency and the acquisition success rate of a gateway are improved. For a traditional data acquisition mode adopting polling acquisition, when data acquisition is carried out, the time consumed by polling acquisition of terminal data by a gateway is very long, so that the data acquisition process occupies most of the time of a system task, and the main service processing efficiency of the system is low. Moreover, as the number of terminals increases, the time consumption of the data acquisition process increases, the time consumption of the data acquisition operation is unpredictable, and the system operation is further unpredictable. And correspondingly, a data acquisition mode of random acquisition is used, so that the concurrency of data is relatively large when data acquisition is carried out, channel data congestion is easily caused, and the conditions of low acquisition efficiency and low success rate are caused. Based on this, the data time-sharing acquisition method based on multiple channels is provided to solve the technical problems that the existing data acquisition consumes long time and channel congestion is easy to occur.
The first embodiment is as follows:
fig. 1 is a flowchart of a multichannel-based data time-sharing acquisition method according to an embodiment of the present disclosure, where the multichannel-based data time-sharing acquisition method provided in this embodiment may be executed by a multichannel-based data time-sharing acquisition device, the multichannel-based data time-sharing acquisition device may be implemented in a software and/or hardware manner, and the multichannel-based data time-sharing acquisition device may be formed by two or more physical entities or may be formed by one physical entity. Generally, the multichannel-based data time-sharing acquisition device can be a central node network device such as a gateway.
The following description will be given by taking a multichannel-based data time-sharing acquisition device as an example of a main body for executing the multichannel-based data time-sharing acquisition method. Referring to fig. 1, the data time-sharing acquisition method based on multiple channels specifically includes:
s110, receiving node synchronization requests sent by each terminal in real time, and returning corresponding node synchronization responses to the terminals based on the node synchronization requests, wherein the node synchronization responses are used for indicating a reporting channel and a reporting time slice for each terminal to carry out data reporting.
Specifically, in the embodiment of the application, the gateway is used as a central node, and data acquisition is performed on each terminal node in communication connection through the central node. When data acquisition is carried out, a multi-channel acquisition mode is adopted. In a communication network, a central node uses a plurality of channels to simultaneously acquire data of nodes (namely terminals) in the system, the channels do not interfere with each other in the acquisition process, and the same terminal cannot be simultaneously acquired by the plurality of channels.
Before data collection is started, a node synchronization request is sent to a gateway through each terminal in advance. The node synchronization request is used for requesting the gateway for the indication of the data reporting channel and the data reporting time slice, the subsequent terminal determines the reporting channel and the reporting time slice for data reporting according to the feedback calculation of the gateway, and further reports the data according to the reporting channel and the reporting time slice determined by calculation. One end of the gateway is used as a data acquisition end and is mainly responsible for managing terminal information, processing acquired data and managing system services. One end of the gateway prestores a channel list and a terminal list, wherein the channel list is used for recording each channel information for data transmission in the network, and the terminal list is used for recording all terminal information in the network. Each terminal has a unique identification address for distinguishing different terminal devices.
Further, after receiving the node synchronization request at the gateway, the gateway generates the first mode index value and the second mode index value according to a pre-stored channel list and a pre-stored terminal list. A node synchronization response is composed of the first pattern index value and the second pattern index value and used as a node synchronization response in reply to each terminal node synchronization request. The first mode index value is used for calculating a corresponding reporting time slice for data reporting of the terminal in the first acquisition mode, and a reporting channel of the terminal in the first acquisition mode corresponds to a channel used for sending the node synchronization request; the second mode index value is used for calculating a corresponding reporting time slice and a corresponding reporting channel for data reporting of the terminal in the second acquisition mode, and the reporting channel of the terminal in the second acquisition mode is determined according to the second mode index value and the number of channels.
It should be noted that, in the embodiment of the present application, the node synchronization responses received by different terminals should be different. That is, the first mode index value and the second mode index value received by each terminal are different, and the reporting channel and the reporting time slice calculated by the different first mode index value and the second mode index value are also different, so that the gateway can realize the channel-sharing and time-sharing acquisition of the terminal data.
Furthermore, after receiving the node synchronization response, the terminal performs calculation and determination on the corresponding reporting signal and the reporting time slice according to the first mode index value and the second mode index value in the node synchronization response. It can be understood that, when the gateway according to the embodiment of the present application performs data acquisition, the data acquisition may be performed in two different data acquisition modes (a first acquisition mode and a second acquisition mode). The first mode index value is used for determining a reporting channel and a reporting time slice in the first acquisition mode, and the second mode index value is used for determining the reporting channel and the reporting time slice in the second acquisition mode. The first mode is defined as a normal mode, in the mode, the gateway divides each channel individually, and the terminal reporting channel is a channel used when the terminal sends a node synchronization request. The first mode index value issued by the gateway is only used for the terminal to calculate the reporting time slice. The second mode is defined as a fast mode, in which the gateway distributes the time reported by the terminal to each channel equally, and the number of the reported time slices of each channel is consistent. The terminal reporting channel and the reporting time are calculated by the second mode index value sent by the gateway.
More specifically, in the fast mode, the reporting channel of the terminal is calculated from the second index value issued by the gateway, and the fast mode can improve the utilization rate of the channel and reduce channel data conflicts compared with the normal mode by evenly distributing the channels. The fast mode reporting channel calculation mode is as follows:
and the gateway generates a second mode index value according to the channel quantity and distinguishes the reporting channels of each terminal by setting different index values. It should be noted that, when the index value is set, the index value is correspondingly set according to the number of terminals allocated to one channel. And correspondingly, the values obtained by dividing the second mode index value by the balance of the channel number and the like of the terminals which are allocated to the same channel for data uploading are the same.
And corresponding to the calculation of the reporting time slice, the gateway divides the time required by the reporting into a plurality of segments in advance, each segment is an independent time slice, all the time slices have the same size, and the time slice has a starting point and an ending point. And distributing the time slices to the terminals so as to collect responses by independent reply nodes under different time slices, wherein the time slices of all the terminals are consistent in size. In the reply process, the terminal calculates the corresponding time slice according to the first mode index value or the second mode index value obtained by communicating with the gateway, so that channel data conflict can be avoided.
The calculation mode of reporting the time slice in the normal mode is as follows:
since the reporting channel in the normal mode is a channel used by the previous synchronization request of the uploading node, the terminal can directly determine the reporting time slice according to different first mode index values.
The calculation method of reporting the time slice in the fast mode is as follows:
and the fast mode reporting time slice is the second mode index value/the channel number, namely the second mode index value is divided by the channel number to obtain a value representing the reporting time slice of each terminal in the fast mode. It can be understood that, since all channels are used in the fast mode and the distribution is even, the reporting time slice is determined by the above formula.
And S120, broadcasting a node acquisition request, and receiving a node acquisition response reported by each terminal based on the node acquisition request, wherein the node acquisition response is reported in a time-sharing manner according to a reporting channel and a reporting time slice of the corresponding node synchronous response indication.
And after the gateway sends the node synchronous response to each terminal, when data acquisition is required. The gateway issues the node acquisition request in the form of a broadcast. The node acquisition request comprises an acquisition number, an acquisition address, an acquisition mode and data information of the acquisition request, and the acquisition mode is a first acquisition mode or a second acquisition mode. The acquisition number is the acquisition number designated by the gateway, and the acquired node does not respond to the node acquisition request containing the number after successfully returning a node acquisition response. The acquisition address indicates the terminal equipment needing to be acquired, and if the terminal does not match the received acquisition address, the acquisition request is ignored. The acquisition mode is a first acquisition mode (normal mode) or a second acquisition mode (fast mode), indicating the data acquisition mode of the current gateway. And the terminal extracts the first mode index value or the second mode index value according to the acquisition mode and determines a corresponding reporting channel and a corresponding reporting time slice. The data information of the acquisition request is the basis for the terminal to return the corresponding node response data information which meets the requirements, and the terminal returns the corresponding node response data information according to the data information of the acquisition request.
And after receiving the node acquisition request, the terminal replies and reports corresponding node acquisition response data. The node acquisition response correspondingly comprises an acquisition number, an acquisition address and data information of response. And the responded data information is the content replied according to the data information of the acquisition request. And when reporting data, selecting a corresponding index value according to the acquisition mode of the current node acquisition request, calculating a reporting channel and a reporting time slice based on the index value, and reporting the data by using the reporting channel and the reporting time slice of the calculation result, so as to realize sub-channel and time-sharing acquisition of data acquisition in the embodiment of the application.
And S130, recording the data acquisition result state of each terminal based on the node acquisition response until the current data acquisition process is finished.
And after receiving the node acquisition response of each terminal, acquiring response record data acquisition result states corresponding to each node. It can be understood that, for some terminals with failed data uploading, data re-acquisition is required. Therefore, in the embodiment of the application, the data acquisition result states of the terminals are marked during data acquisition, and the data acquisition results of the terminals are counted, so that data can be acquired again for the terminals with failed data acquisition in the following process.
Specifically, the data acquisition result state of the corresponding terminal is judged according to the data information responded in the node acquisition response. When data acquisition is carried out, the node acquisition request comprises data information of the acquisition request, if data information responded in a subsequent node acquisition response does not accord with or is null with the data information of the acquisition request, data acquisition failure of a corresponding terminal is indicated, and the state of a data acquisition result is recorded to be null so as to be used for carrying out subsequent data re-acquisition of the corresponding terminal.
Further, referring to fig. 2, a schematic diagram of a terminal state during data acquisition is provided. After the gateway sends the node acquisition request, the time when the terminal receives the request is 0 point. The gateway keeps a state of waiting for data reception within time N x T, where N is the number of time slices and T is the size of the time slices. And if the terminal receiving the node acquisition request meets the conditions for responding acquisition (the acquisition number corresponds to the acquisition address), returning a node acquisition response in the specified time slice. And the gateway records the equipment after receiving the node acquisition response and counts the terminals with failed acquisition. As shown in fig. 2, the terminal a replies to the probe response between time slices 4T to 5T, the terminal B replies to the node acquisition response between time slices T to 2T, and the terminal C replies to the node acquisition response between time slices 3T to 4T. And the gateway does not receive the data replied by the terminal C. The gateway sends a node re-acquisition request, the time when the terminal C finishes receiving the request is 0 point, and the terminal C recovers the node re-acquisition response within the time slice of 0-1T.
The method comprises the steps that a node synchronization request sent by each terminal is received in real time through a gateway, a corresponding node synchronization response is returned to the terminal based on the node synchronization request, and a reporting channel and a reporting time slice for data reporting of each terminal are indicated through the node synchronization response; and further receiving the node acquisition response reported by each terminal according to the corresponding node synchronous response through the broadcast node acquisition request, and recording the data acquisition result state of each terminal. By adopting the technical means, the reporting channel and the reporting time slice for reporting the data by the node synchronous response indication terminal can be used, so that each terminal can upload the data through the designated channel and the designated time, the sub-channel and time-sharing data acquisition of the gateway can be realized, and the efficiency and the success rate of the data acquisition can be improved.
Example two:
on the basis of the foregoing embodiment, fig. 3 is another time-sharing data collection method based on multiple channels according to a second embodiment of the present application, where the time-sharing data collection method based on multiple channels includes:
s210, receiving node synchronization requests sent by each terminal in real time, and returning corresponding node synchronization responses to the terminals based on the node synchronization requests, wherein the node synchronization responses are used for indicating a reporting channel and a reporting time slice for each terminal to carry out data reporting;
s220, broadcasting a node acquisition request, and receiving a node acquisition response reported by each terminal based on the node acquisition request, wherein the node acquisition response is reported in a time-sharing manner according to a reporting channel and a reporting time slice of the corresponding node synchronous response indication;
s230, recording the data acquisition result state of each terminal based on the node acquisition response until the current data acquisition process is finished;
s240, determining the terminal with data acquisition failure according to the data acquisition result state, correspondingly broadcasting the repeated acquisition request, and receiving a node acquisition response returned again by the corresponding terminal based on the broadcast repeated acquisition request.
According to the embodiment of the application, after a data acquisition process is finished, the terminal with failed data acquisition is determined according to the data acquisition result state of each statistical terminal, and the data re-acquisition process is further carried out. In the data re-acquisition process, the gateway sets a re-acquisition index value according to the terminal marked with data acquisition failure, and the re-acquisition index value is used as an indication for reporting a channel and a time slice by the terminal. And representing the reacquisition index values by bitmap information, wherein the bitmap information and the reacquisition index values correspond to each other one by one. The transmission of the amount of data can be reduced by using the bitmap information.
And then, the gateway broadcasts a repeated acquisition request, wherein the repeated acquisition request comprises bitmap information, and the bitmap information is used for providing a calculation basis corresponding to a reporting channel and a reporting time slice when the terminal returns a node acquisition response again. In addition, the repeated acquisition request also comprises an acquisition number, an acquisition address, an acquisition mode and data information of the acquisition request. After receiving the repeated acquisition request, the terminal does not respond to the repeated acquisition request containing the acquisition number according to the acquisition number if the acquisition response is successfully returned before. And after receiving the repeated acquisition request, the terminal corresponding to the previous data reporting failure determines a reporting channel and a reporting time slice through the bitmap information according to the corresponding acquisition mode. For reporting the channel and the reporting time slice, reference is made to the first embodiment, which is not described herein again. And the gateway finishes the data re-acquisition by re-acquiring and recording the data acquisition result state until all the terminals finish the data acquisition successfully.
In the embodiment of the present application, on the basis of the first embodiment, the gateway broadcasts the node re-acquisition request by re-acquiring the data of the terminal with failed data reporting, and the terminal sends the node acquisition response to the gateway at the specified time point by re-adopting the time-sharing reporting mode. Therefore, the situation of data loss in the data acquisition process can be avoided, and the data acquisition success is ensured.
Example three:
on the basis of the foregoing embodiments, fig. 4 is a schematic structural diagram of a data time-sharing acquisition device based on multiple channels according to a third embodiment of the present application. Referring to fig. 4, the data time-sharing acquisition apparatus based on multiple channels provided in this embodiment specifically includes: a response module 31, a broadcast module 32 and a recording module 33.
The response module 31 is configured to receive a node synchronization request sent by each terminal in real time, and return a corresponding node synchronization response to the terminal based on the node synchronization request, where the node synchronization response is used to instruct each terminal to perform a reporting channel and a reporting time slice for data reporting;
the broadcast module 32 is configured to broadcast a node acquisition request, and receive a node acquisition response reported by each terminal based on the node acquisition request, where the node acquisition response is reported in a time-sharing manner according to a reporting channel and a reporting time slice of the corresponding node synchronous response indication;
the recording module 33 is configured to record the data acquisition result state of each terminal based on the node acquisition response until the current data acquisition process is finished.
The method comprises the steps that a node synchronization request sent by each terminal is received in real time through a gateway, a corresponding node synchronization response is returned to the terminal based on the node synchronization request, and a reporting channel and a reporting time slice for data reporting of each terminal are indicated through the node synchronization response; and further receiving the node acquisition response reported by each terminal according to the corresponding node synchronous response through the broadcast node acquisition request, and recording the data acquisition result state of each terminal. By adopting the technical means, the reporting channel and the reporting time slice for reporting the data by the node synchronous response indication terminal can be used, so that each terminal can upload the data through the designated channel and the designated time, the sub-channel and time-sharing data acquisition of the gateway can be realized, and the efficiency and the success rate of the data acquisition can be improved.
Specifically, still include:
and the reacquisition module is used for determining the terminal with failed data acquisition according to the data acquisition result state, corresponding to the broadcast reacquisition request, and receiving a node acquisition response returned again by the corresponding terminal based on the broadcast reacquisition request.
The data time-sharing acquisition device based on multiple channels provided by the third embodiment of the application can be used for executing the data time-sharing acquisition method based on multiple channels provided by the first embodiment and the second embodiment, and has corresponding functions and beneficial effects.
Example four:
an embodiment of the present application provides an electronic device, and with reference to fig. 5, the electronic device includes: a processor 41, a memory 42, a communication module 43, an input device 44, and an output device 45. The number of processors in the electronic device may be one or more, and the number of memories in the electronic device may be one or more. The processor, memory, communication module, input device, and output device of the electronic device may be connected by a bus or other means.
The memory 42 serves as a computer-readable storage medium, and can be used for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the multichannel-based data time-sharing acquisition method according to any embodiment of the present application (for example, the response module, the broadcast module, and the recording module in the multichannel-based data time-sharing acquisition device). The memory can mainly comprise a program storage area and a data storage area, wherein the program storage area can store an operating system and an application program required by at least one function; the storage data area may store data created according to use of the device, and the like. Further, the memory may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory may further include memory located remotely from the processor, and these remote memories may be connected to the device 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 communication module 43 is used for data transmission.
The processor 41 executes various functional applications and data processing of the device by running software programs, instructions and modules stored in the memory, that is, the above-mentioned multichannel-based data time-sharing acquisition method is implemented.
The input device 44 is operable to receive input numeric or character information and to generate key signal inputs relating to user settings and function controls of the apparatus. The output device 45 may include a display device such as a display screen.
The electronic device provided by the above can be used to execute the multichannel-based data time-sharing acquisition method provided by the first embodiment, and has corresponding functions and beneficial effects.
Example five:
embodiments of the present application further provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform a multichannel-based data time-sharing acquisition method, where the multichannel-based data time-sharing acquisition method includes: receiving node synchronization requests sent by each terminal in real time, and returning corresponding node synchronization responses to the terminals based on the node synchronization requests, wherein the node synchronization responses are used for indicating a reporting channel and a reporting time slice for each terminal to carry out data reporting; broadcasting a node acquisition request, receiving a node acquisition response reported by each terminal based on the node acquisition request, and reporting the node acquisition response in a time-sharing manner according to a reporting channel and a reporting time slice of the corresponding node synchronous response indication; and recording the data acquisition result state of each terminal based on the node acquisition response until the current data acquisition process is finished.
Storage medium-any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk, or tape devices; computer system memory or random access memory such as DRAM, DDR RAM, SRAM, EDO RAM, Lanbas (Rambus) RAM, etc.; non-volatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system connected to the first computer system through a network (such as the internet). The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media residing in different locations, e.g., in different computer systems connected by a network. The storage medium may store program instructions (e.g., embodied as a computer program) that are executable by one or more processors.
Of course, the storage medium provided in the embodiments of the present application contains computer-executable instructions, and the computer-executable instructions are not limited to the above-described multichannel-based data time-sharing acquisition method, and may also perform related operations in the multichannel-based data time-sharing acquisition method provided in any embodiments of the present application.
The multichannel-based data time-sharing acquisition device, the storage medium, and the electronic device provided in the above embodiments may execute the multichannel-based data time-sharing acquisition method provided in any embodiments of the present application, and reference may be made to the multichannel-based data time-sharing acquisition method provided in any embodiments of the present application without detailed technical details described in the above embodiments.
The foregoing is considered as illustrative of the preferred embodiments of the invention and the technical principles employed. The present application is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present application has been described in more detail with reference to the above embodiments, the present application is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the claims.
Claims (10)
1. A data time-sharing acquisition method based on multiple channels is characterized by comprising the following steps:
receiving node synchronization requests sent by each terminal in real time, and returning corresponding node synchronization responses to the terminals based on the node synchronization requests, wherein the node synchronization responses are used for indicating a reporting channel and a reporting time slice for each terminal to carry out data reporting;
broadcasting a node acquisition request, receiving a node acquisition response reported by each terminal based on the node acquisition request, and reporting the node acquisition response in a time-sharing manner according to a reporting channel and a reporting time slice of the corresponding node synchronous response indication;
and recording the data acquisition result state of each terminal based on the node acquisition response until the current data acquisition process is finished.
2. The multi-channel-based data time-sharing acquisition method according to claim 1, wherein the node acquisition request includes an acquisition number, an acquisition address, an acquisition mode and data information of the acquisition request, and the acquisition mode is a first acquisition mode or a second acquisition mode;
correspondingly, the node synchronization response includes a first mode index value and a second mode index value, the first mode index value is used for calculating a reporting time slice of data reporting of the corresponding terminal in the first acquisition mode, and a reporting channel of the terminal in the first acquisition mode corresponds to a channel used for sending the node synchronization request; the second mode index value is used for calculating a corresponding reporting time slice and a corresponding reporting channel for data reporting of the terminal in the second acquisition mode, and the reporting channel of the terminal in the second acquisition mode is determined according to the second mode index value and the number of channels.
3. The method according to claim 2, wherein the step of returning a corresponding node synchronization response to the terminal based on the node synchronization request comprises:
and generating the first mode index value and the second mode index value according to a pre-stored channel list and a terminal list.
4. The time-sharing data collection method based on multiple channels according to claim 2, wherein the node collection response corresponds to data information including a collection number, a collection address, and a response.
5. The method according to claim 4, wherein the recording the data acquisition result status of each terminal based on the node acquisition response comprises:
and judging the corresponding data acquisition result state of the terminal according to the data information responded in the node acquisition response.
6. The method according to claim 1, wherein the method for time-sharing data collection based on multiple channels further comprises, after recording the data collection result status of each terminal based on the node collection response until the current data collection process is finished:
and determining the terminal with failed data acquisition according to the data acquisition result state, corresponding to the broadcast repeated acquisition request, and receiving a node acquisition response returned by the corresponding terminal based on the broadcast repeated acquisition request.
7. The time-sharing acquisition method for data based on multiple channels according to claim 6, wherein the repeated acquisition request includes bitmap information, and the bitmap information is used to provide a calculation basis for reporting channels and reporting time slices when the terminal returns a node acquisition response again.
8. A data time sharing collection device based on multiple channels is characterized by comprising:
the response module is used for receiving node synchronization requests sent by all terminals in real time and returning corresponding node synchronization responses to the terminals based on the node synchronization requests, wherein the node synchronization responses are used for indicating a reporting channel and a reporting time slice for data reporting of all the terminals;
a broadcast module, configured to broadcast a node acquisition request, and receive a node acquisition response reported by each terminal based on the node acquisition request, where the node acquisition response is reported in a time-sharing manner according to a reporting channel and a reporting time slice of a corresponding node synchronous response indication;
and the recording module is used for recording the data acquisition result state of each terminal based on the node acquisition response until the current data acquisition process is finished.
9. An electronic device, comprising:
a memory and one or more processors;
the memory for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the multichannel-based data time-shared acquisition method of any one of claims 1-7.
10. A storage medium containing computer-executable instructions for performing the method of time-shared acquisition of data based on multiple channels according to any one of claims 1 to 7 when executed by a computer processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010281168.XA CN111510350B (en) | 2020-04-10 | 2020-04-10 | Data time-sharing acquisition method and device based on multiple channels |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010281168.XA CN111510350B (en) | 2020-04-10 | 2020-04-10 | Data time-sharing acquisition method and device based on multiple channels |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111510350A true CN111510350A (en) | 2020-08-07 |
CN111510350B CN111510350B (en) | 2022-03-11 |
Family
ID=71863961
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010281168.XA Active CN111510350B (en) | 2020-04-10 | 2020-04-10 | Data time-sharing acquisition method and device based on multiple channels |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111510350B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111917499A (en) * | 2020-08-25 | 2020-11-10 | 成都华乾科技有限公司 | Black broadcast signal acquisition method and system |
CN112261113A (en) * | 2020-10-16 | 2021-01-22 | 易联众信息技术股份有限公司 | Intelligent connection processing method, system and application based on edge calculation |
CN112787743A (en) * | 2021-03-24 | 2021-05-11 | 深圳洲斯移动物联网技术有限公司 | Time synchronization communication method, device and computer storage medium |
CN112839371A (en) * | 2021-02-24 | 2021-05-25 | 深圳市中电软件有限公司 | Multi-channel time-sharing wireless networking method and system |
CN115002226A (en) * | 2022-05-26 | 2022-09-02 | 广州番禺电缆集团有限公司 | Intelligent cable monitoring system for time-sharing reporting of sensor data |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1845520A (en) * | 2006-03-07 | 2006-10-11 | 南京澳帝姆科技有限公司 | Communication method between wireless sensor network node and gateway |
CN102064860A (en) * | 2011-01-06 | 2011-05-18 | 西安电子科技大学 | Information acquisition system based on Bluetooth Ad Hoc network |
CN102740474A (en) * | 2011-04-12 | 2012-10-17 | 无锡物联网产业研究院 | Distribution method of time slot and channel and wireless sensor network |
CN102821390A (en) * | 2012-09-04 | 2012-12-12 | 山东省计算中心 | Adaptive dynamic channel allocation method for mobile multimedia in Internet of things |
CN103002537A (en) * | 2012-12-14 | 2013-03-27 | 南京邮电大学 | Wireless multimedia sensor network node clustering method based on related coefficients |
CN103402205A (en) * | 2013-07-29 | 2013-11-20 | 江苏物联网研究发展中心 | Wireless tree network access control method and network node equipment |
CN105704653A (en) * | 2016-02-16 | 2016-06-22 | 北京小米移动软件有限公司 | Wireless communication management method and device |
CN107181616A (en) * | 2017-05-19 | 2017-09-19 | 郑州云海信息技术有限公司 | A kind of method and system for monitoring performance of storage system data |
CN107465764A (en) * | 2017-09-20 | 2017-12-12 | 诚迈科技(南京)股份有限公司 | Internet of Things network communication system, gateway device and method based on stelliform connection topology configuration |
CN110519803A (en) * | 2019-09-10 | 2019-11-29 | 广州空天通讯技术服务有限公司 | Less radio-frequency ad hoc network method and device |
CN110868242A (en) * | 2018-10-12 | 2020-03-06 | 鼎信信息科技有限责任公司 | Data acquisition method based on asynchronous communication |
-
2020
- 2020-04-10 CN CN202010281168.XA patent/CN111510350B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1845520A (en) * | 2006-03-07 | 2006-10-11 | 南京澳帝姆科技有限公司 | Communication method between wireless sensor network node and gateway |
CN102064860A (en) * | 2011-01-06 | 2011-05-18 | 西安电子科技大学 | Information acquisition system based on Bluetooth Ad Hoc network |
CN102740474A (en) * | 2011-04-12 | 2012-10-17 | 无锡物联网产业研究院 | Distribution method of time slot and channel and wireless sensor network |
CN102821390A (en) * | 2012-09-04 | 2012-12-12 | 山东省计算中心 | Adaptive dynamic channel allocation method for mobile multimedia in Internet of things |
CN103002537A (en) * | 2012-12-14 | 2013-03-27 | 南京邮电大学 | Wireless multimedia sensor network node clustering method based on related coefficients |
CN103402205A (en) * | 2013-07-29 | 2013-11-20 | 江苏物联网研究发展中心 | Wireless tree network access control method and network node equipment |
CN105704653A (en) * | 2016-02-16 | 2016-06-22 | 北京小米移动软件有限公司 | Wireless communication management method and device |
CN107181616A (en) * | 2017-05-19 | 2017-09-19 | 郑州云海信息技术有限公司 | A kind of method and system for monitoring performance of storage system data |
CN107465764A (en) * | 2017-09-20 | 2017-12-12 | 诚迈科技(南京)股份有限公司 | Internet of Things network communication system, gateway device and method based on stelliform connection topology configuration |
CN110868242A (en) * | 2018-10-12 | 2020-03-06 | 鼎信信息科技有限责任公司 | Data acquisition method based on asynchronous communication |
CN110519803A (en) * | 2019-09-10 | 2019-11-29 | 广州空天通讯技术服务有限公司 | Less radio-frequency ad hoc network method and device |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111917499A (en) * | 2020-08-25 | 2020-11-10 | 成都华乾科技有限公司 | Black broadcast signal acquisition method and system |
CN112261113A (en) * | 2020-10-16 | 2021-01-22 | 易联众信息技术股份有限公司 | Intelligent connection processing method, system and application based on edge calculation |
CN112839371A (en) * | 2021-02-24 | 2021-05-25 | 深圳市中电软件有限公司 | Multi-channel time-sharing wireless networking method and system |
CN112787743A (en) * | 2021-03-24 | 2021-05-11 | 深圳洲斯移动物联网技术有限公司 | Time synchronization communication method, device and computer storage medium |
CN112787743B (en) * | 2021-03-24 | 2023-12-05 | 深圳洲斯移动物联网技术有限公司 | Time synchronization communication method and device and computer storage medium |
CN115002226A (en) * | 2022-05-26 | 2022-09-02 | 广州番禺电缆集团有限公司 | Intelligent cable monitoring system for time-sharing reporting of sensor data |
CN115002226B (en) * | 2022-05-26 | 2023-08-08 | 广州番禺电缆集团有限公司 | Intelligent cable monitoring system capable of reporting sensor data in time-sharing mode |
Also Published As
Publication number | Publication date |
---|---|
CN111510350B (en) | 2022-03-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111510350B (en) | Data time-sharing acquisition method and device based on multiple channels | |
US20230049501A1 (en) | Service processing method and apparatus, and storage medium | |
WO2017114381A1 (en) | Fine timing measurement (ftm) method and communication device | |
CN114375063A (en) | Resource allocation method and device, user equipment, base station and readable storage medium | |
CN110995566A (en) | Message data pushing method, system and device | |
CN108270634B (en) | Heartbeat detection method and system | |
CN112311585A (en) | Method and device for selecting management node, equipment and storage medium thereof | |
CN111327684A (en) | Quota management method and device of distributed object storage system | |
CN112491951B (en) | Request processing method, server and storage medium in peer-to-peer network | |
CN111953567B (en) | Method, system, equipment and medium for configuring multi-cluster management software parameters | |
CN111092789B (en) | Data transmission method, device, equipment and computer readable storage medium | |
CN111371593A (en) | Service deployment method, device, electronic equipment and storage medium | |
CN116483543A (en) | Task processing method, device, equipment and storage medium | |
CN113268327B (en) | Transaction request processing method and device and electronic equipment | |
CN113239059B (en) | Switching method and device of distributed lock, server and storage medium | |
CN112711384A (en) | Data storage method and device based on multiple storage devices | |
CN112686599A (en) | Request response method, device, system, electronic equipment and computer readable medium | |
CN112825580B (en) | Method, device and medium for determining discontinuous reception offset parameter | |
CN116055424B (en) | Distributed image transmission method and system | |
CN110825529B (en) | Service message management system and method | |
CN110300035B (en) | Method, system, device and server for judging load state of storage system | |
CN115277285B (en) | Communication method, communication device, communication system, and computer-readable storage medium | |
CN112347745B (en) | Method and device for acquiring file generation progress, electronic device and storage medium | |
CN113645478B (en) | Live broadcast push address allocation method and system | |
CN115706642B (en) | CSI-IM resource allocation method and CRI calculation method |
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 | ||
CP03 | Change of name, title or address | ||
CP03 | Change of name, title or address |
Address after: 510000 room 306, 3rd floor, 43 Sicheng Road, software park, Tianhe District, Guangzhou City, Guangdong Province Patentee after: GUANGZHOU ZHIYUAN ELECTRONICS Co.,Ltd. Address before: 510000 room 517, 1023 Gaopu Road, Tianhe Software Park, Tianhe District, Guangzhou City, Guangdong Province Patentee before: GUANGZHOU ZHIYUAN ELECTRONICS Co.,Ltd. |