CN110139452B - Method for improving communication success rate of NB-IoT single lamp controller - Google Patents

Method for improving communication success rate of NB-IoT single lamp controller Download PDF

Info

Publication number
CN110139452B
CN110139452B CN201910619104.3A CN201910619104A CN110139452B CN 110139452 B CN110139452 B CN 110139452B CN 201910619104 A CN201910619104 A CN 201910619104A CN 110139452 B CN110139452 B CN 110139452B
Authority
CN
China
Prior art keywords
lamp controller
lamp
iot
heartbeat
communication
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910619104.3A
Other languages
Chinese (zh)
Other versions
CN110139452A (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.)
Nanjing Management And Control Material Federation Technology Co ltd
Original Assignee
Nanjing Management And Control Material Federation 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 Nanjing Management And Control Material Federation Technology Co ltd filed Critical Nanjing Management And Control Material Federation Technology Co ltd
Priority to CN201910619104.3A priority Critical patent/CN110139452B/en
Publication of CN110139452A publication Critical patent/CN110139452A/en
Application granted granted Critical
Publication of CN110139452B publication Critical patent/CN110139452B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/175Controlling the light source by remote control

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

A method for improving the communication success rate of an NB-IoT single-lamp controller relates to the technical field of single-lamp control systems adopting NB-IoT narrowband Internet of things communication. Due to the narrow-band property of NB-IoT communication, the requirement that the street lamp is simultaneously connected to the grid and is on line at the moment of turning on the lamp is not suitable. In the process of sending communication commands by the monitoring platform software in a group manner, the invention adopts the peak staggering processing such as batch processing, time sharing processing, jump selection processing and the like and combines a heartbeat response mechanism to improve the success rate of communication. When monitoring platform software sends communication commands to the NB-IoT single-lamp controller group in the same road section, command sequences to be sent in group are scattered into a plurality of subsequences with smaller number scales and sent in batches, and the limitation of the processing capacity of an NB base station is staggered. When the monitoring platform software receives the heartbeat packet of the NB-IoT single lamp controller, the monitoring platform software actively executes commands such as working condition query, parameter modification, switching on and off lamp control and the like to issue operations. The invention greatly improves the communication success rate of the NB-IoT single-lamp controller on the premise of not increasing the deployment number of the NB base stations.

Description

Method for improving communication success rate of NB-IoT single lamp controller
Technical Field
The invention relates to the technical field of single lamp control systems for outdoor lighting, in particular to the technical field of single lamp control systems adopting NB-IoT communication.
Background
A single lamp control system is adopted in the current street lamp management of a plurality of cities, so that the scientific and fine management level is further improved, and the purposes of energy conservation and emission reduction are achieved. NB-IoT narrowband internet of things has also been applied in single-lamp control systems as a new internet of things communication technology that operators have vigorously popularized.
However, applying NB-IoT technology to single-lamp control scenarios has several problems: 1) the network communication of the single lamp controller installed on the street lamp requires high concurrency and low time delay, but the NB-IoT technical design is originally designed to be applied to application scenes with low communication frequency and small data volume, such as remote meter reading, well cover theft prevention and the like. Due to the limitation of the bandwidth of the NB base station, the high concurrency can cause the communication blockage of the NB base station, and commands and data can not be effectively transmitted in time; 2) the inherent low power consumption dormancy feature of the NB communication network can cause problems such as delayed command reception and even loss.
Disclosure of Invention
The invention provides a method for improving the communication success rate of an NB-IoT (NB-IoT) single-lamp controller, aiming at greatly improving the communication success rate of the single-lamp controller on the premise of not increasing the deployment number of NB base stations.
A method for improving the communication success rate of an NB-IoT single lamp controller comprises the following steps:
1) and the monitoring platform judges whether a new single-lamp mass sending task exists on the road section. If yes, executing the next step; if not, judging whether a new single lamp controller heartbeat is received or not;
2) the monitoring platform sorts the equipment list in the sending task according to the lamp post sequence number of the single lamp controller;
3) jumping, selecting and recombining to generate a peak-staggered sending batch;
4) sending a communication command of the current off-peak batch to the single lamp controller in a group manner;
5) and setting time delay, and then judging whether all peak-shifting batches are sent out. If yes, judging to exit the program loop; if not, returning to the step 4) to send the next peak-shifting batch;
6) judging whether a new single lamp controller heartbeat is received in the step 1), and if not, judging to exit the program loop; if so, searching whether a heartbeat execution strategy of the single lamp controller exists, and if so, executing the next step; if not, judging the loop of the exiting program;
7) if the heartbeat execution strategy exists, commands comprising query working conditions, query parameters, switch lamp control and parameter setting are respectively issued, and then judgment of quitting message circulation is carried out.
8) And (5) closing the monitoring platform and ending the program cycle.
Preferably, step 3) of the present invention comprises the steps of:
31) submitting all NB-IoT single-lamp controller group sending tasks to a message queue of a background task thread by taking a road section as a unit;
32) and after the background task thread receives the tasks sent by the NB-IoT single-lamp controller group, independent sub-threads are distributed from the system thread pool to process the off-peak sending tasks of the single-lamp controllers of each road section.
Preferably, step 4) of the present invention comprises the steps of:
41) the application layer submits a single-lamp controller group sending command request of a single road section, wherein the single-lamp controller group sending command request comprises an ID list of the single-lamp controller to be sent;
42) the software of the monitoring platform is according to the jump factor PfID array a of the controllers of the single lamps to be sent and the total number t of the controllers of the single lamps to be sentnAnd formula N ═ { a [0 ═ a],a[Pf%tn],a[(Pf×2)%tn],…,a[(Pf×n)%tn]},n=0,1,2,3,…,tn-1 obtaining a sending sequence N after peak staggering processing, and dividing the sending sequence N into [ (num (N) + P) equally according to the number of concurrent points Pnn–1)/Pn]And the sub-sequences obtain a sending sequence N after peak staggering processing, and then, the sub-sequences are sent in batches in sequence, wherein num (N) is the sum of the sending sequences. After each batch is issued and stays for the specified concurrency interval time, the mass sending operation of the next batch is carried out until all the subsequences are sent in batches;
43) and (3) adding the ID list of the single-lamp controllers into a communication waiting list before batch sending, recording the start time of the batch sending, and tracking the timeout or completion event of the batch query by a background task thread.
Preferably, step 43) of the present invention includes the following minor steps:
431) recording the inquiry response state of each single-lamp controller in the batch inquiry waiting items by using a hash table, wherein the key value is a Boolean variable, True is the received response, and False is the non-received response;
432) circularly acquiring all batch query waiting items in the waiting list;
433) judging whether the receiving waiting time is up or not according to the group sending starting time in the batch query waiting item, if so, generating a batch query overtime event and removing the batch query waiting item from the query waiting list;
434) according to the single lamp controller inquiry response data frame arrival message, inquiring a waiting item containing the data frame single lamp controller serial number in a batch inquiry waiting list, marking the response mark of the same serial number in the corresponding waiting item as True, and checking whether the response marks of other serial numbers are all set. If so, generating a batch query completion event, and removing the current batch query waiting item from the waiting list.
Preferably, the heartbeat execution policy in step 7) of the present invention is:
71) packaging a heartbeat execution strategy of each single-lamp controller by using a structural body, wherein the heartbeat execution strategy mainly comprises a single-lamp controller ID, a single-lamp controller serial number, a communication command type, an execution frequency and a response time period;
72) loading an execution strategy from a database table and storing the strategy in a memory hash table, wherein the key name of the hash table is the serial number of the single-lamp controller, and the value is an execution strategy structural body object of each single-lamp controller;
73) and when a new heartbeat packet is received, searching a corresponding execution strategy according to the serial number of the single-lamp controller. If so, the communication command is issued in a single point according to the execution strategy.
Through the processing procedures and steps, the invention realizes the peak load error and heartbeat response mechanism of the monitoring platform software. The purpose of peak error is to reduce the number of data packets received by a single NB base station at the same time as much as possible, reduce the processing load of the NB base station, and prevent communication congestion or data loss. The NB-IoT single lamp controller can periodically upload heartbeat packets, when monitoring platform software receives the heartbeat packets, the communication link quality is relatively good, the monitoring platform software is set to automatically respond at the moment, and can actively execute commands such as working condition query, parameter modification, switch lamp control and the like to issue operations.
Compared with the prior art, the invention has the following beneficial effects:
aiming at the NB-IoT communication single lamp control system, according to the distribution characteristics of urban street lamps and the limiting characteristics of NB-IoT technology, a peak staggering mechanism and a heartbeat response mechanism are adopted in monitoring platform software, so that the communication success rate of an NB single lamp controller is greatly improved.
Drawings
FIG. 1 is a flow chart of the implementation of the monitoring platform software peak-shifting and heartbeat response mechanism of the present invention.
Fig. 2 is a schematic diagram of the implementation of the monitoring platform software peak shifting issuing mechanism of the present invention.
Detailed Description
If the peak-shifting issuing and heartbeat response functions are to be realized, the following configuration operations are completed in advance in the monitoring platform software: 1) sequencing and numbering the NB-IoT single lamp controllers according to the positions of the lamp poles (from west to east, from north to south, and from small to large), and generating unique road section serial numbers of the NB-IoT single lamp controllers; 2) setting a peak shifting issuing parameter: concurrent points, concurrent intervals, skip factors, and ping latency.
As shown in fig. 1, a method for improving communication success rate of NB-IoT single-lamp controllers includes the following steps:
1) and the monitoring platform software judges whether a new single-lamp mass sending task exists on the road section. If yes, executing the next step; if not, judging whether a new single lamp controller heartbeat is received or not;
2) the monitoring platform software sorts the equipment list in the sending task according to the lamp post sequence number of the single lamp controller;
3) jumping, selecting and recombining to generate a peak-staggered sending batch;
4) sending a communication command of the current off-peak batch to the single lamp controller in a group manner;
5) and setting time delay, and then judging whether all peak-shifting batches are sent out. If yes, judging to exit the message circulation; if not, returning to the step 4) to send the next peak-shifting batch;
6) judging whether a new single lamp controller heartbeat is received or not in the step 1), and judging whether the message loop exits or not if the result is negative; if yes, finding whether the heartbeat execution strategy of the single lamp controller exists. If yes, executing the next step; if not, judging the exit message cycle;
7) if the heartbeat execution strategy exists, commands comprising query working conditions, query parameters, switch lamp control and parameter setting are respectively issued, and then judgment of quitting message circulation is carried out.
8) And (5) the monitoring platform software is closed, and the message cycle is ended.
Step 3) of the present invention comprises the steps of:
31) submitting all NB-IoT single-lamp controller group sending tasks to a message queue of a background task thread by taking a road section as a unit;
32) and after the background task thread receives the tasks sent by the NB-IoT single-lamp controller group, independent sub-threads are distributed from the system thread pool to process the off-peak sending tasks of the single-lamp controllers of each road section.
Step 4) of the present invention comprises the steps of:
41) the application layer submits a single-lamp controller group sending command request of a single road section, wherein the single-lamp controller group sending command request comprises an ID list of the single-lamp controller to be sent;
42) the software of the monitoring platform is according to the jump factor PfID array a of the controllers of the single lamps to be sent and the total number t of the controllers of the single lamps to be sentnAnd formula N ═ { a [0 ═ a],a[Pf%tn],a[(Pf×2)%tn],…,a[(Pf×n)%tn]Obtaining a sending sequence N after peak staggering processing when N is 0, 1, 2, 3, … and tn-1, and dividing the sending sequence N into [ (num (N) + P) according to the number Pn of concurrent pointsn–1)/Pn]And (3) sub-sequences, and then sequentially issuing the sub-sequences in batches, wherein num (N) is the sum of the sending sequences. After each batch is issued and stays for the specified concurrency interval time, the mass sending operation of the next batch is carried out until all the subsequences are sent in batches;
43) and (3) adding the ID list of the single-lamp controllers into a communication waiting list before batch sending, recording the start time of the batch sending, and tracking the timeout or completion event of the batch query by a background task thread.
Step 43) of the present invention comprises the following minor steps:
431) recording the inquiry response state of each single-lamp controller in the batch inquiry waiting items by using a hash table, wherein the key value is a Boolean variable, True is the received response, and False is the non-received response;
432) circularly acquiring all batch query waiting items in the waiting list;
433) judging whether the receiving waiting time is up or not according to the group sending starting time in the batch query waiting item, if so, generating a batch query overtime event and removing the batch query waiting item from the query waiting list;
434) according to the single lamp controller inquiry response data frame arrival message, inquiring a waiting item containing the data frame single lamp controller serial number in a batch inquiry waiting list, marking the response mark of the same serial number in the corresponding waiting item as True, and checking whether the response marks of other serial numbers are all set. If so, generating a batch query completion event, and removing the current batch query waiting item from the waiting list.
Step 7) heartbeat execution strategy of the invention is as follows:
71) packaging a heartbeat execution strategy of each single-lamp controller by using a structural body, wherein the heartbeat execution strategy mainly comprises a single-lamp controller ID, a single-lamp controller serial number, a communication command type, an execution frequency and a response time period;
72) loading an execution strategy from a database table and storing the strategy in a memory hash table, wherein the key name of the hash table is the serial number of the single-lamp controller, and the value is an execution strategy structural body object of each single-lamp controller;
73) and when a new heartbeat packet is received, searching a corresponding execution strategy according to the serial number of the single-lamp controller. If so, the communication command is issued in a single point according to the execution strategy.
Fig. 2 shows an embodiment of peak shifting and peak sending according to the present invention.
① - ⑩ are NB-IoT single lamp controllers (① - ⑤ are in the coverage of NB base station 1, ⑥ - ⑩ are in the coverage of NB base station 2) installed on lamp poles, under the condition of not adopting a peak shifting mechanism, if a command issuing operation is to be executed, the single lamp controllers on the whole road section are generally continuously sent, and the method of the invention is adopted to issue the peak shifting, wherein the command issuing process is as follows:
(1) calculating false peak issuing batches { ①, ④, ⑦, ⑩, ③ } and { ⑥, ⑨, ②, ⑤, ⑧ } according to the concurrency point number 5 and the jump factor 3;
(2) sending peak-staggering batches { ①, ④, ⑦, ⑩ and ③ };
(3) delaying according to the concurrency interval (1 second);
(4) sending peak-staggered batches { ⑥, ⑨, ②, ⑤, ⑧ }.
After the off-peak issuing mechanism is adopted, the instantaneous processing pressures of the NB base station 1 and the NB base station 2 are 3/5 and 2/5 which do not adopt the off-peak issuing mechanism respectively. In addition, the user can flexibly adjust the peak-shifting issuing parameters according to the actual situation on site so as to obtain better peak-shifting issuing effect, reduce the probability of data blockage or packet loss of the NB base station and greatly improve the success rate of communication.

Claims (3)

1. A method for improving the communication success rate of an NB-IoT single lamp controller is characterized by comprising the following steps:
1) the monitoring platform judges whether a new single-lamp group sending task exists on the road section, and if so, the next step is executed; if not, jumping to step 6) to judge whether a new single lamp controller heartbeat is received;
2) the monitoring platform sorts the equipment list in the sending task according to the lamp post sequence number of the single lamp controller;
3) jumping, selecting and recombining to generate a peak-staggered sending batch;
4) sending a communication command of the current off-peak batch to the single lamp controller in a group manner;
5) setting time delay, judging whether all peak-off batches are sent out, and if so, judging to exit the step circulation of the method; if not, returning to the step 4) to send the next peak-shifting batch;
6) judging whether a new single lamp controller heartbeat is received in the step 1), and if not, exiting the method step cycle; if so, searching whether a heartbeat execution strategy of the single lamp controller exists, and if so, executing the next step; if not, judging the exit method step cycle;
7) if the heartbeat execution strategy exists, commands comprising query working conditions, query parameters, switch lamp control and parameter setting are respectively issued, and then judgment of exiting the method step cycle is carried out;
8) the monitoring platform is closed and the method steps are cycled to end.
2. The method for increasing the communication success rate of the NB-IoT single-lamp controller according to claim 1, wherein the step 3) comprises the following steps:
31) submitting all NB-IoT single-lamp controller group sending tasks to a message queue of a background task thread by taking a road section as a unit;
32) and after the background task thread receives the tasks sent by the NB-IoT single-lamp controller group, independent sub-threads are distributed from the system thread pool to process the off-peak sending tasks of the single-lamp controllers of each road section.
3. The method of claim 1, wherein the heartbeat execution policy in step 7) is as follows:
71) packaging a heartbeat execution strategy of each single-lamp controller by using a structural body, wherein the heartbeat execution strategy comprises a single-lamp controller ID, a single-lamp controller serial number, a communication command type, an execution frequency and a response time period;
72) loading an execution strategy from a database table and storing the strategy in a memory hash table, wherein the key name of the hash table is the serial number of the single-lamp controller, and the value is an execution strategy structural body object of each single-lamp controller;
73) and when a new heartbeat packet is received, searching a corresponding execution strategy according to the serial number of the single-lamp controller, and if the corresponding execution strategy exists, issuing a communication command in a single point according to the execution strategy.
CN201910619104.3A 2019-07-10 2019-07-10 Method for improving communication success rate of NB-IoT single lamp controller Active CN110139452B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910619104.3A CN110139452B (en) 2019-07-10 2019-07-10 Method for improving communication success rate of NB-IoT single lamp controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910619104.3A CN110139452B (en) 2019-07-10 2019-07-10 Method for improving communication success rate of NB-IoT single lamp controller

Publications (2)

Publication Number Publication Date
CN110139452A CN110139452A (en) 2019-08-16
CN110139452B true CN110139452B (en) 2020-04-10

Family

ID=67566878

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910619104.3A Active CN110139452B (en) 2019-07-10 2019-07-10 Method for improving communication success rate of NB-IoT single lamp controller

Country Status (1)

Country Link
CN (1) CN110139452B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112769707B (en) * 2019-11-04 2022-11-04 成都鼎桥通信技术有限公司 Method, device and system for preventing congestion in Internet of things
CN113473680B (en) * 2021-08-03 2023-12-19 福州物联网开放实验室有限公司 Discrete access method and structure of NB-IoT intelligent street lamp terminal
CN113726595B (en) * 2021-08-06 2024-03-19 视联动力信息技术股份有限公司 Detection method and device of timeout client, electronic equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018041669A1 (en) * 2016-08-29 2018-03-08 Philips Lighting Holding B.V. Outdoor lighting network as a contingency connectivity infrastructure
CN108898817A (en) * 2018-08-23 2018-11-27 广州发展集团股份有限公司 The measuring instrument means of communication and device, measuring instrument communication system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102116419A (en) * 2009-12-31 2011-07-06 上海广茂达光艺科技股份有限公司 LED (light emitting diode) system and method for communication of LED system power line carrier waves
CN102044912B (en) * 2010-11-25 2014-03-12 深圳市科陆电子科技股份有限公司 Method for concurrently surveying terminal time in batch

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018041669A1 (en) * 2016-08-29 2018-03-08 Philips Lighting Holding B.V. Outdoor lighting network as a contingency connectivity infrastructure
CN108898817A (en) * 2018-08-23 2018-11-27 广州发展集团股份有限公司 The measuring instrument means of communication and device, measuring instrument communication system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
NB-IoT网络与业务协同优化;郭宝等;《电信科学》;20181129;全文 *
物联网在智慧路灯端到端运营中的应用探讨;叶鑫华;《江西通信科技》;20181115;全文 *

Also Published As

Publication number Publication date
CN110139452A (en) 2019-08-16

Similar Documents

Publication Publication Date Title
CN110139452B (en) Method for improving communication success rate of NB-IoT single lamp controller
CN101444130B (en) method of scanning for beacon transmissions in a WLAN
CN110536342A (en) A kind of network mode control method and terminal, storage medium
CN113055990B (en) Energy saving and consumption reducing method and system for wireless base station based on big data mining and AI scheduling
CN112804739A (en) Base station energy saving method, device, equipment and system, and storage medium
CN109195135A (en) Base station selecting method based on deeply study in LTE-V
CN111417180A (en) Network scheduling method and device for energy-saving management of cooperative base station
CN209823788U (en) Outdoor lighting control system based on Internet of things
CN100546416C (en) Be used for carrying out on the mobile node in working in packet radio communication system the device and the correlation technique of packet zone fixed cycle operator
CN110049128A (en) The control system of outdoor lighting based on Internet of Things
CN102740496B (en) A kind of up link cooperative MAC method that system energy efficiency is optimized
CN102625337B (en) System and method for autonomous energy-saving management of wireless access network
CN102186229B (en) Independent basic service set (IBSS) system and power management method thereof
CN106899678B (en) High-efficiency data transmission method and system for dynamically balancing energy Internet network bandwidth
CN114398055B (en) Remote batch upgrading device and upgrading method for single-lamp controller firmware
CN113034882B (en) Centralized meter reading method based on time slice competition reporting
CN113676790B (en) Acquisition scheduling method and device for low-voltage centralized meter reading equipment, concentrator and medium
CN102946629A (en) Online optimal scheduling solution for tail energy consumption of 3-G communication of mobile intelligent terminal
Ding et al. Soft threshold based cluster-head selection algorithm for wireless sensor networks
CN109658723A (en) A kind of traffic mobile dispatching method and dispatching platform
CN106255189B (en) fixed terminal positioning method and device
CN103037430A (en) Method for testing parameters of WCDMA (Wideband Code Division Multiple Access) network
CN112202838B (en) Internet of things equipment control method and device and readable storage medium
AU2021232743B2 (en) Method and system for transmitting multiplexing data over distributed photovoltaic power channels
CN112218273B (en) Terminal uplink data distribution control method, device and system

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