CN114630475A - Internet of things data interaction method and system, computer equipment and storage medium - Google Patents

Internet of things data interaction method and system, computer equipment and storage medium Download PDF

Info

Publication number
CN114630475A
CN114630475A CN202210263778.6A CN202210263778A CN114630475A CN 114630475 A CN114630475 A CN 114630475A CN 202210263778 A CN202210263778 A CN 202210263778A CN 114630475 A CN114630475 A CN 114630475A
Authority
CN
China
Prior art keywords
street lamp
street
receiving
vehicle
request
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
CN202210263778.6A
Other languages
Chinese (zh)
Other versions
CN114630475B (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.)
Qingdao Huazheng Information Technology Co ltd
Original Assignee
Qingdao Huazheng Information 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 Qingdao Huazheng Information Technology Co ltd filed Critical Qingdao Huazheng Information Technology Co ltd
Priority to CN202210263778.6A priority Critical patent/CN114630475B/en
Publication of CN114630475A publication Critical patent/CN114630475A/en
Application granted granted Critical
Publication of CN114630475B publication Critical patent/CN114630475B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • H05B47/19Controlling the light source by remote control via wireless transmission
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9537Spatial or temporal dependent retrieval, e.g. spatiotemporal queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations
    • G06F17/18Complex mathematical operations for evaluating statistical data, e.g. average values, frequency distributions, probability functions, regression analysis
    • 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/155Coordinated control of two or more light sources
    • 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/165Controlling the light source following a pre-assigned programmed sequence; Logic control [LC]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Algebra (AREA)
  • Probability & Statistics with Applications (AREA)
  • Evolutionary Biology (AREA)
  • Operations Research (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Software Systems (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computational Linguistics (AREA)
  • Traffic Control Systems (AREA)

Abstract

The invention is applicable to the technical field of Internet of things, and particularly relates to a data interaction method, a data interaction system, computer equipment and a storage medium of the Internet of things, wherein the method comprises the following steps: receiving a street lamp starting request in real time, recording the time of receiving the street lamp starting request, and generating a receiving sequence list; determining the sequence of receiving the street lamp starting requests by the street lamps according to the receiving sequence table, and determining the driving direction of the current vehicle according to the sequence; and inquiring the street lamps which currently receive the street lamp starting request, and starting the street lamps with preset quantity according to the vehicle driving direction and the serial numbers of the street lamps. The invention sends out the turn-on request to the street lamps near the vehicle in a wireless transmission mode, and determines the driving direction of the vehicle according to the sequence of the different street lamps receiving the request, thereby turning on the street lamps with preset quantity in the driving direction of the vehicle, providing lighting conditions for a driver, and turning on the street lamps according to the preset turn-on time when no request exists, thereby not only meeting the requirements of the driver, but also avoiding the waste of electric power.

Description

Internet of things data interaction method and system, computer equipment and storage medium
Technical Field
The invention belongs to the technical field of Internet of things, and particularly relates to a data interaction method and system of the Internet of things, computer equipment and a storage medium.
Background
The internet of things is that any object or process needing monitoring, connection and interaction is collected in real time through various devices and technologies such as various information sensors, radio frequency identification technologies, global positioning systems, infrared sensors, laser scanners and the like, various required information such as sound, light, heat, electricity, mechanics, chemistry, biology, positions and the like is collected, ubiquitous connection of objects and objects, and ubiquitous connection of objects and people are realized through various possible network accesses, and intelligent sensing, identification and management of the objects and the processes are realized. The Internet of things is an information carrier based on the Internet, the traditional telecommunication network and the like, and all common physical objects which can be independently addressed form an interconnected network
In current road construction, the road both sides all can set up the street lamp, when light is dark, throws light on through opening the street lamp, because the distribution of different time quantum illumination intensity every day in a year is different, and day and night is long and short in turn, and the time of seting up of street lamp also need change.
The existing street lamp can only be opened at regular time, when weather is bad, the set time is not reached, the street lamp is not opened, the sight of a driver is greatly influenced, and a control relation cannot be formed between the driver and the street lamp.
Disclosure of Invention
The embodiment of the invention aims to provide an Internet of things data interaction method, and aims to solve the problem that a control relation cannot be formed between a driver and a street lamp.
The embodiment of the invention is realized in such a way that the data interaction method of the Internet of things comprises the following steps:
receiving a street lamp starting request in real time, recording the time of receiving the street lamp starting request, and generating a receiving sequence table, wherein the street lamp starting request is sent out in a local area wireless transmission mode, and the street lamps are provided with continuous numbers;
determining the sequence of receiving the street lamp starting requests by the street lamps according to the receiving sequence table, and determining the driving direction of the current vehicle according to the sequence;
inquiring the street lamps which currently receive the street lamp starting request, and starting a preset number of street lamps according to the driving direction of the vehicle and the serial numbers of the street lamps;
and counting the starting conditions of the street lamps, and if the next street lamp is not started within the preset time span, turning off all the street lamps started according to the request of the vehicle.
Preferably, the step of determining the order in which the street lamps receive the street lamp turn-on requests according to the receiving order table and determining the driving direction of the current vehicle according to the order includes:
reading a receiving sequence table, and listing the serial numbers of the street lamps according to the time sequence;
determining the position of the street lamp on the road according to the serial number of the street lamp, and analyzing the serial number of the street lamp to obtain an analysis result;
and determining the driving direction of the vehicle according to the change condition of the street lamp number in the analysis result.
Preferably, the step of querying a street lamp currently receiving a street lamp starting request and starting a preset number of street lamps according to a vehicle driving direction and a serial number of the street lamps includes:
inquiring the serial numbers of all the street lamps receiving the street lamp starting request so as to determine the street lamp closest to the vehicle;
calculating the running speed of the vehicle according to the time interval of receiving the street lamp starting request by the adjacent street lamps and the preset street lamp interval;
and starting a preset number of street lamps according to the running speed of the vehicle.
Preferably, the step of counting the turning-on conditions of the street lamps, and turning off all the street lamps turned on in response to the request of the vehicle if the next street lamp is not turned on within a preset time period specifically includes:
counting the starting condition of the street lamp, judging whether a street lamp starting request is received currently, and if no new street lamp starting request exists, turning off the street lamp after a preset time length;
if a street lamp starting request sent by the same vehicle can be received, the street lamp is turned off after the preset time length of the street lamp starting request is received.
Another object of an embodiment of the present invention is to provide an internet of things data interaction system, including:
the request receiving module is used for receiving a street lamp starting request, recording the time of receiving the street lamp starting request and generating a receiving sequence table, wherein the street lamp starting request is sent out in a local wireless transmission mode, and the street lamps are provided with continuous numbers;
the vehicle orientation module is used for determining the sequence of the street lamps receiving the street lamp starting requests according to the receiving sequence table and determining the driving direction of the current vehicle according to the sequence;
the street lamp starting module is used for inquiring the street lamps which currently receive the street lamp starting request and starting the street lamps with the preset number according to the driving direction of the vehicle and the serial numbers of the street lamps;
and the street lamp closing module is used for counting the opening condition of the street lamps, and if the next street lamp is not opened within the preset time span, all the street lamps which are opened according to the request of the vehicle are closed.
Preferably, the vehicle orientation module comprises:
the number reading unit is used for reading the receiving sequence table and listing the numbers of the street lamps according to the time sequence;
the position analysis unit is used for determining the position of the street lamp on the road according to the serial number of the street lamp, so as to analyze the serial number of the street lamp and obtain an analysis result;
and the direction determining unit is used for determining the driving direction of the vehicle according to the change condition of the street lamp number in the analysis result.
Preferably, the street lamp lighting module includes:
the data query unit is used for querying the serial numbers of all the street lamps receiving the street lamp starting request so as to determine the street lamp closest to the vehicle;
the vehicle speed calculating unit is used for calculating the vehicle running speed according to the time interval of the adjacent street lamps receiving the street lamp starting request and the preset street lamp interval;
and the street lamp control unit is used for starting a preset number of street lamps according to the running speed of the vehicle.
Preferably, the street lamp shutdown module includes:
the passive turn-off unit is used for counting the turn-on condition of the street lamp, judging whether a street lamp turn-on request is received currently or not, and turning off the street lamp after a preset time length if no new street lamp turn-on request exists;
and the active turn-off unit is used for turning off the street lamp after receiving the preset time length of the street lamp turn-on request when receiving the street lamp turn-on request sent by the same vehicle.
It is another object of an embodiment of the present invention to provide a computer device, including a memory and a processor, where the memory stores a computer program, and the computer program, when executed by the processor, causes the processor to execute the steps of the internet of things data interaction method as described above.
It is another object of an embodiment of the present invention to provide a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, causes the processor to execute the steps of the internet of things data interaction method as described above.
According to the data interaction method of the Internet of things, the light-on requests are sent to the street lamps near the vehicle in a wireless transmission mode, the driving direction of the vehicle is determined according to the sequence of the requests received by the different street lamps, so that a preset number of street lamps are turned on in the driving direction of the vehicle, lighting conditions are provided for a driver, and when no request is made, the street lamps are turned on according to the preset light-on time, so that the requirements of the driver can be met, and the waste of electric power can be avoided.
Drawings
Fig. 1 is a flowchart of a data interaction method of an internet of things according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating steps of determining an order in which street lamps receive a street lamp turn-on request according to a receiving order table, and determining a driving direction of a current vehicle according to the order;
fig. 3 is a flowchart illustrating steps of querying a street lamp currently receiving a street lamp turning-on request, and turning on a preset number of street lamps according to a vehicle driving direction and a serial number of the street lamps according to the embodiment of the present invention;
fig. 4 is a flowchart illustrating steps of counting the turn-on conditions of the street lamps, and turning off all street lamps turned on in response to a request from the vehicle if a next street lamp is not turned on within a preset time period according to an embodiment of the present invention;
fig. 5 is an architecture diagram of a data interaction system of the internet of things according to an embodiment of the present invention;
FIG. 6 is an architectural diagram of a vehicle orientation module provided by an embodiment of the present invention;
fig. 7 is an architecture diagram of a street lamp turning-on module according to an embodiment of the present invention;
fig. 8 is an architecture diagram of a street lamp shutdown module according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
It will be understood that, as used herein, the terms "first," "second," and the like may be used herein to describe various elements, but these elements are not limited by these terms unless otherwise specified. These terms are only used to distinguish one element from another. For example, a first xx script may be referred to as a second xx script, and similarly, a second xx script may be referred to as a first xx script, without departing from the scope of the present application.
In current road construction, the road both sides all can set up the street lamp, when light is dark, throws light on through opening the street lamp, because the distribution of different time quantum illumination intensity every day in a year is different, and day and night is long and short in turn, and the time of seting up of street lamp also need change. The existing street lamp can only be opened at regular time, when weather is bad, the set time is not reached, the street lamp is not opened, the sight of a driver is greatly influenced, and a control relation cannot be formed between the driver and the street lamp.
In the invention, the light-on request is sent to the street lamps near the vehicle in a wireless transmission mode, and the driving direction of the vehicle is determined according to the sequence of the requests received by different street lamps, so that the preset number of street lamps are started in the driving direction of the vehicle to provide lighting conditions for a driver, and when no request is made, the street lamps are started according to the preset light-on time, so that the requirements of the driver can be met, and the waste of electric power can be avoided.
As shown in fig. 1, a flowchart of a data interaction method for an internet of things provided by an embodiment of the present invention is shown, where the method includes:
s100, receiving a street lamp starting request in real time, recording the time of receiving the street lamp starting request, and generating a receiving sequence table, wherein the street lamp starting request is sent out in a local area wireless transmission mode, and the street lamps are provided with continuous numbers.
In this step, a street lamp starting request is received in real time, a driver sends out a street lamp starting request in a local area wireless transmission mode in the process of driving a vehicle, specifically, the street lamp starting request can be transmitted through bluetooth or a local area wireless network, a corresponding receiving device is arranged on a street lamp, the driver starts wireless broadcasting and continuously sends out the street lamp starting request, the street lamp starting request is continuously received by the street lamp in the moving process of the vehicle, in order to facilitate the statistics of the street lamps, each street lamp is numbered, during the numbering, a road name can be used, a continuous number can be added behind the street lamp, such as a street lamp number 001 of a certain road and a direction can be added, such as a street lamp number 001 of a side A of the certain road, when the street lamp starting request is received, the street lamps with the continuous numbers are also received according to the sequence.
And S200, determining the sequence of the street lamps receiving the street lamp starting requests according to the receiving sequence table, and determining the driving direction of the current vehicle according to the sequence.
In this step, the sequence of receiving the street lamp turn-on request by each street lamp is determined according to the receiving sequence table, specifically, the serial numbers of the street lamps are analyzed, and if the serial numbers of the street lamps receiving the street lamp turn-on request are sequentially 001 # street lamp, 002 # street lamp and 003 # street lamp according to the time sequence, a preset street lamp setting map is called to determine the setting position of the street lamp, and then the advancing direction of the vehicle can be determined according to the serial numbers.
And S300, inquiring the street lamps which currently receive the street lamp starting request, and starting a preset number of street lamps according to the driving direction of the vehicle and the serial numbers of the street lamps.
In this step, the street lamps which currently receive the street lamp starting request are inquired, all the street lamps which receive the street lamp starting request are counted, the receiving time of the street lamps is analyzed, the street lamp with the latest receiving time is the street lamp closest to the current vehicle, then according to the driving direction of the vehicle, the preset number of street lamps are started in the driving direction of the vehicle, and the front street lamps are also continuously started along with the advance of the vehicle.
S400, counting the starting conditions of the street lamps, and if the next street lamp is not started within the preset time span, turning off all the street lamps started according to the request of the vehicle.
In this step, the turn-on condition of the street lamps is counted, and whether the current vehicle leaves the illumination area is comprehensively judged according to the turn-on time of the street lamps and the condition that whether each street lamp receives a street lamp turn-on request, so that whether the street lamp is turned off is determined.
As shown in fig. 2, as a preferred embodiment of the present invention, the step of determining the sequence of receiving the street lamp turn-on requests by the street lamps according to the receiving sequence table, and determining the driving direction of the current vehicle according to the sequence includes:
s201, reading the receiving sequence table, and listing the numbers of the street lamps according to the time sequence.
In this step, the receiving sequence table is read, the receiving sequence table records the serial numbers of all the street lamps receiving the current street lamp opening request and the receiving time, and then the serial numbers of the street lamps are listed according to the time sequence, so as to facilitate analysis.
S202, determining the position of the street lamp on the road according to the serial number of the street lamp, and analyzing the serial number of the street lamp to obtain an analysis result.
In the step, the position of the street lamp on the road is determined according to the serial number of the street lamp, a corresponding map is called according to the serial number of the street lamp, the set position and the set interval of the street lamp are marked on the map, and the starting sequence of the street lamp is determined according to the change condition of the serial number of the street lamp.
And S203, determining the driving direction of the vehicle according to the change condition of the street lamp number in the analysis result.
In this step, according to the variation of the street lamp number in the analysis result, the variation of the number in the street lamp number is analyzed, and if the street lamp with the street lamp number of 001-002-003 received the street lamp opening request is numbered, the direction of the vehicle can be determined to be from the street lamp number 001 to the street lamp number 003.
As shown in fig. 3, as a preferred embodiment of the present invention, the step of querying a street lamp currently receiving a street lamp turning-on request, and turning on a preset number of street lamps according to a vehicle driving direction and a serial number of the street lamps specifically includes:
and S301, inquiring the numbers of all the street lamps receiving the street lamp starting request, and determining the street lamp closest to the vehicle.
In this step, the serial numbers of all the street lamps receiving the street lamp opening request are inquired, the time of all the street lamps receiving the street lamp opening request is compared, and the group of street lamps with the most late time is the street lamp closest to the vehicle.
And S302, calculating the running speed of the vehicle according to the time interval of the adjacent street lamps receiving the street lamp starting request and the preset street lamp interval.
In this step, a preset map is queried according to a time interval at which the adjacent street lamps receive the street lamp turn-on request and a preset street lamp interval, distances between adjacent numbered street lamps are extracted therefrom, and the driving speed of the vehicle is calculated according to a difference value of the receiving times.
And S303, starting a preset number of street lamps according to the running speed of the vehicle.
In this step, a preset speed quantity mapping table is inquired, so as to determine how many street lamps should be started, and if the speed per hour is 30-40, 20 street lamps are started.
As shown in fig. 4, as a preferred embodiment of the present invention, the step of counting the turn-on conditions of the street lamps, and if the next street lamp is not turned on within a preset time period, turning off all street lamps turned on according to the request of the vehicle specifically includes:
s401, counting the starting condition of the street lamp, judging whether a street lamp starting request is received currently, and if no new street lamp starting request exists, closing the street lamp after a preset time length.
In this step, the street lamp turning-on condition is counted, whether the current street lamp receives a street lamp turning-on request from any vehicle is judged, if no new street lamp turning-on request is received, and the current vehicle does not send out the street lamp turning-on request again, the current vehicle is determined to leave the area covered by the current street lamp, and no other vehicle passes through the current position, and the current street lamp is turned off.
And S402, if a street lamp starting request sent by the same vehicle can be received, the street lamp is turned off after the preset time length of the street lamp starting request is received.
In this step, if a certain street lamp continuously receives a street lamp turning-on request sent by the same vehicle and an adjacent street lamp does not receive the street lamp turning-on request of the vehicle, the vehicle is considered to have stopped, the street lamp is turned off, and the street lamp is kept turned on under other conditions.
As shown in fig. 5, the internet of things data interaction system provided in the embodiment of the present invention is characterized in that the system includes:
the request receiving module 100 is configured to receive a street lamp starting request, record time of receiving the street lamp starting request, and generate a receiving sequence table, where the street lamp starting request is sent in a local area wireless transmission manner, and the street lamps are all provided with consecutive numbers.
In this module, request receiving module 100 receives a street lamp starting request in real time, a driver sends out a street lamp starting request in a local wireless transmission mode in the process of driving a vehicle, specifically, the street lamp starting request can be transmitted through bluetooth and also can be transmitted through a local wireless network, a corresponding receiving device is arranged on a street lamp, the driver starts wireless broadcasting and continuously sends out the street lamp starting request, the street lamp starting request can be continuously received by the street lamp in the moving process of the vehicle, in order to facilitate the statistics of the street lamp, each street lamp is numbered, and during the numbering, the street lamp starting request can be named as a road and continuous numbers are added behind the street lamp starting request.
And the vehicle orientation module 200 is configured to determine, according to the receiving sequence table, a sequence in which the street lamps receive the street lamp turning-on request, and accordingly determine a driving direction of the current vehicle.
In this module, the vehicle direction module 200 determines the sequence of receiving the street lamp start request by each street lamp according to the receiving sequence table, specifically, analyzes the serial number of the street lamp, and determines the advancing direction of the vehicle according to the serial number if the serial number of the street lamp receiving the street lamp start request is 001 # street lamp, 002 # street lamp and 003 # street lamp in sequence according to the time sequence, and then calls a preset street lamp setting map to determine the setting position of the street lamp.
The street lamp starting module 300 is configured to query a street lamp currently receiving a street lamp starting request, and start a preset number of street lamps according to a vehicle driving direction and a serial number of the street lamps.
In this module, the street lamp starting module 300 queries the street lamps currently receiving the street lamp starting request, counts all the street lamps receiving the street lamp starting request, analyzes the receiving time, and the street lamp with the latest receiving time is the street lamp closest to the current vehicle, so that according to the driving direction of the vehicle, a preset number of street lamps are started in the driving direction of the vehicle, and the street lamps in front are also continuously started along with the advance of the vehicle.
The street lamp turning-off module 400 is configured to count the turning-on conditions of the street lamps, and turn off all the street lamps that are turned on in response to the request of the vehicle if a next street lamp is not turned on within a preset time period.
In this module, the street lamp shutdown module 400 counts the startup conditions of the street lamps, and comprehensively determines whether the current vehicle has left the illumination area according to the startup time of the street lamps and whether each street lamp receives the startup request of the street lamp, thereby determining whether to shutdown.
As shown in fig. 6, as a preferred embodiment of the present invention, the vehicle orientation module 200 includes:
the number reading unit 201 is configured to read the receiving sequence table, and list the numbers of the street lamps according to the time sequence.
In this module, the number reading unit 201 reads a receiving sequence table, in which the numbers and receiving times of all the street lamps receiving the current street lamp turn-on request are recorded, and then the numbers of the street lamps are listed according to the time sequence, so as to facilitate analysis.
And the position analysis unit 202 is configured to determine a position of the street lamp on the road according to the serial number of the street lamp, so as to analyze the serial number of the street lamp and obtain an analysis result.
In this module, the position analyzing unit 202 determines the set position of the street lamp on the road according to the serial number of the street lamp, and calls a corresponding map according to the serial number of the street lamp, where the set position and the set distance of the street lamp are marked on the map, so as to determine the turn-on sequence of the street lamp according to the change condition of the serial number of the street lamp.
And a direction determining unit 203 for determining the driving direction of the vehicle according to the change condition of the road lamp number in the analysis result.
In this module, the direction determining unit 203 analyzes the change condition of the street lamp number according to the change condition of the street lamp number in the analysis result and the change condition of the number in the street lamp number, and if the serial number of the street lamp receiving the street lamp opening request is 001 # street lamp-002 # street lamp-003 street lamp, it can be determined that the driving direction of the vehicle is from 001 street lamp to 003 street lamp.
As shown in fig. 7, as a preferred embodiment of the present invention, the street lamp starting module 300 includes:
the data query unit 301 is configured to query the numbers of all the street lamps that receive the street lamp turning-on request, so as to determine the street lamp closest to the vehicle.
In this step, the data query unit 301 queries the serial numbers of all the street lamps receiving the street lamp turning-on request, and compares the time when all the street lamps receive the street lamp turning-on request, and the group of street lamps with the most late time is the street lamp closest to the vehicle.
The vehicle speed calculating unit 302 is configured to calculate a vehicle driving speed according to a time interval at which the adjacent street lamps receive the street lamp turning-on request and a preset street lamp interval.
In this step, the vehicle speed calculation unit 302 queries a preset map according to the time interval at which the adjacent street lamps receive the street lamp turn-on request and the preset street lamp interval, extracts the distance between the adjacent numbered street lamps therefrom, and calculates the driving speed of the vehicle according to the difference between the receiving times.
And the street lamp control unit 303 is configured to turn on a preset number of street lamps according to the vehicle running speed.
In this step, the street lamp control unit 303 queries a preset speed quantity mapping table, so as to determine how many street lamps should be turned on, and if the speed per hour is 30-40, 20 street lamps are turned on.
As shown in fig. 8, as a preferred embodiment of the present invention, the street lamp shutdown module 400 includes:
the passive turn-off unit 401 is configured to count a street lamp turn-on condition, determine whether a street lamp turn-on request is currently received, and turn off the street lamp after a preset time period if no new street lamp turn-on request is received.
In this module, the passive shutdown unit 401 counts the street lamp startup situation, determines whether the current street lamp receives a street lamp startup request from any vehicle, and if no new street lamp startup request is received, and the current vehicle does not send out a street lamp startup request again, determines that the current vehicle has left the area covered by the current street lamp, and does not have other vehicles passing through the current position, and shuts down the current street lamp.
The active shutdown unit 402 is configured to, when a street lamp startup request sent by the same vehicle can be received, shutdown the street lamp after receiving a preset time duration of the street lamp startup request.
In the module, if a certain street lamp continuously receives a street lamp starting request sent by the same vehicle and an adjacent street lamp does not receive the street lamp starting request of the vehicle, the vehicle is considered to be stopped, the street lamp is turned off, and the street lamp is kept turned on under other conditions.
In one embodiment, a computer device is proposed, the computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
receiving a street lamp starting request in real time, recording the time of receiving the street lamp starting request, and generating a receiving sequence table, wherein the street lamp starting request is sent out in a local area wireless transmission mode, and the street lamps are provided with continuous numbers;
determining the sequence of receiving the street lamp starting requests by the street lamps according to the receiving sequence table, and determining the driving direction of the current vehicle according to the sequence;
inquiring the street lamps which currently receive the street lamp starting request, and starting a preset number of street lamps according to the driving direction of the vehicle and the serial numbers of the street lamps;
and counting the starting conditions of the street lamps, and if the next street lamp is not started within the preset time span, turning off all the street lamps started according to the request of the vehicle.
In one embodiment, a computer readable storage medium is provided, having a computer program stored thereon, which, when executed by a processor, causes the processor to perform the steps of:
receiving a street lamp starting request in real time, recording the time of receiving the street lamp starting request, and generating a receiving sequence table, wherein the street lamp starting request is sent out in a local area wireless transmission mode, and the street lamps are provided with continuous numbers;
determining the sequence of receiving the street lamp starting requests by the street lamps according to the receiving sequence table, and determining the driving direction of the current vehicle according to the sequence;
inquiring the street lamps which currently receive the street lamp starting request, and starting a preset number of street lamps according to the driving direction of the vehicle and the serial numbers of the street lamps;
and counting the starting conditions of the street lamps, and if the next street lamp is not started within the preset time span, turning off all the street lamps which are started according to the request of the vehicle.
It should be understood that, although the steps in the flowcharts of the embodiments of the present invention are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in various embodiments may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.

Claims (10)

1. The Internet of things data interaction method is characterized by comprising the following steps:
receiving a street lamp starting request in real time, recording the time of receiving the street lamp starting request, and generating a receiving sequence table, wherein the street lamp starting request is sent out in a local area wireless transmission mode, and the street lamps are provided with continuous numbers;
determining the sequence of receiving the street lamp starting requests by the street lamps according to the receiving sequence table, and determining the driving direction of the current vehicle according to the sequence;
inquiring the street lamps which currently receive the street lamp starting request, and starting a preset number of street lamps according to the driving direction of the vehicle and the serial numbers of the street lamps;
and counting the starting conditions of the street lamps, and if the next street lamp is not started within the preset time span, turning off all the street lamps started according to the request of the vehicle.
2. The internet of things data interaction method of claim 1, wherein the step of determining the sequence of the street lamps receiving the street lamp starting requests according to the receiving sequence table and determining the driving direction of the current vehicle according to the sequence comprises the following steps:
reading a receiving sequence table, and listing the serial numbers of the street lamps according to the time sequence;
determining the position of the street lamp on the road according to the serial number of the street lamp, and analyzing the serial number of the street lamp to obtain an analysis result;
and determining the driving direction of the vehicle according to the change condition of the street lamp number in the analysis result.
3. The internet of things data interaction method of claim 1, wherein the step of querying street lamps currently receiving street lamp starting requests and starting a preset number of street lamps according to the vehicle driving direction and the serial numbers of the street lamps specifically comprises:
inquiring the serial numbers of all the street lamps receiving the street lamp starting request so as to determine the street lamp closest to the vehicle;
calculating the running speed of the vehicle according to the time interval of the adjacent street lamps receiving the street lamp starting request and the preset street lamp interval;
and starting a preset number of street lamps according to the running speed of the vehicle.
4. The internet of things data interaction method of claim 1, wherein the step of counting the turn-on conditions of the street lamps, and turning off all street lamps turned on according to the request of the vehicle if the next street lamp is not turned on within a preset time period specifically comprises:
counting the starting condition of the street lamp, judging whether a street lamp starting request is received currently, and if no new street lamp starting request exists, turning off the street lamp after a preset time length;
if a street lamp starting request sent by the same vehicle can be received, the street lamp is turned off after the preset time length of the street lamp starting request is received.
5. Internet of things data interaction system, characterized in that, the system includes:
the request receiving module is used for receiving a street lamp starting request, recording the time of receiving the street lamp starting request and generating a receiving sequence table, wherein the street lamp starting request is sent out in a local wireless transmission mode, and the street lamps are provided with continuous numbers;
the vehicle orientation module is used for determining the sequence of the street lamps receiving the street lamp starting requests according to the receiving sequence table and determining the driving direction of the current vehicle according to the sequence;
the street lamp starting module is used for inquiring the street lamps which currently receive the street lamp starting request and starting the street lamps with the preset number according to the driving direction of the vehicle and the serial numbers of the street lamps;
and the street lamp closing module is used for counting the opening condition of the street lamps, and if the next street lamp is not opened within the preset time span, all the street lamps which are opened according to the request of the vehicle are extinguished.
6. The internet of things data interaction system of claim 5, wherein the vehicle orientation module comprises:
the number reading unit is used for reading the receiving sequence table and listing the numbers of the street lamps according to the time sequence;
the position analysis unit is used for determining the position of the street lamp on the road according to the serial number of the street lamp so as to analyze the serial number of the street lamp and obtain an analysis result;
and the direction determining unit is used for determining the driving direction of the vehicle according to the change condition of the street lamp number in the analysis result.
7. The internet of things data interaction system of claim 5, wherein the street lamp turning-on module comprises:
the data query unit is used for querying the serial numbers of all the street lamps receiving the street lamp starting request so as to determine the street lamp closest to the vehicle;
the vehicle speed calculating unit is used for calculating the vehicle running speed according to the time interval of the adjacent street lamps receiving the street lamp starting request and the preset street lamp interval;
and the street lamp control unit is used for starting a preset number of street lamps according to the running speed of the vehicle.
8. The internet of things data interaction system of claim 5, wherein the street lamp shutdown module comprises:
the passive turn-off unit is used for counting the turn-on condition of the street lamp, judging whether a street lamp turn-on request is received currently or not, and turning off the street lamp after a preset time length if no new street lamp turn-on request exists;
and the active turn-off unit is used for turning off the street lamp after receiving the preset time length of the street lamp turn-on request when receiving the street lamp turn-on request sent by the same vehicle.
9. A computer device comprising a memory and a processor, the memory having stored therein a computer program that, when executed by the processor, causes the processor to perform the steps of the Internet of things data interaction method of any one of claims 1 to 4.
10. A computer-readable storage medium, having a computer program stored thereon, which, when executed by a processor, causes the processor to perform the steps of the internet of things data interaction method of any one of claims 1 to 4.
CN202210263778.6A 2022-03-17 2022-03-17 Internet of things data interaction method and system, computer equipment and storage medium Active CN114630475B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210263778.6A CN114630475B (en) 2022-03-17 2022-03-17 Internet of things data interaction method and system, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210263778.6A CN114630475B (en) 2022-03-17 2022-03-17 Internet of things data interaction method and system, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114630475A true CN114630475A (en) 2022-06-14
CN114630475B CN114630475B (en) 2022-10-11

Family

ID=81902758

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210263778.6A Active CN114630475B (en) 2022-03-17 2022-03-17 Internet of things data interaction method and system, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114630475B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012123921A (en) * 2010-12-06 2012-06-28 Sharp Corp Load lighting apparatus
CN102883501A (en) * 2012-08-31 2013-01-16 鸿富锦精密工业(深圳)有限公司 Intelligent system, device and method for controlling street lamps
CN105898959A (en) * 2015-10-21 2016-08-24 乐卡汽车智能科技(北京)有限公司 Illuminating method and system and street lamp
CN106559949A (en) * 2016-12-07 2017-04-05 王妍哲 Based on satellite fix and the intelligent street lamp control system and method for collaboration
CN110856323A (en) * 2018-08-03 2020-02-28 上海博泰悦臻网络技术服务有限公司 Street lamp control method and Internet of vehicles platform
CN112638005A (en) * 2020-12-29 2021-04-09 张晓益 Distributed street lamp control device and system based on Internet of vehicles
CN112672483A (en) * 2021-01-05 2021-04-16 烽火通信科技股份有限公司 Intelligent street lamp control method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012123921A (en) * 2010-12-06 2012-06-28 Sharp Corp Load lighting apparatus
CN102883501A (en) * 2012-08-31 2013-01-16 鸿富锦精密工业(深圳)有限公司 Intelligent system, device and method for controlling street lamps
CN105898959A (en) * 2015-10-21 2016-08-24 乐卡汽车智能科技(北京)有限公司 Illuminating method and system and street lamp
CN106559949A (en) * 2016-12-07 2017-04-05 王妍哲 Based on satellite fix and the intelligent street lamp control system and method for collaboration
CN110856323A (en) * 2018-08-03 2020-02-28 上海博泰悦臻网络技术服务有限公司 Street lamp control method and Internet of vehicles platform
CN112638005A (en) * 2020-12-29 2021-04-09 张晓益 Distributed street lamp control device and system based on Internet of vehicles
CN112672483A (en) * 2021-01-05 2021-04-16 烽火通信科技股份有限公司 Intelligent street lamp control method

Also Published As

Publication number Publication date
CN114630475B (en) 2022-10-11

Similar Documents

Publication Publication Date Title
US11483692B2 (en) System, method and computer-readable storage medium realizing Internet of Things for smart city based on street lamps and lamp posts
CN108648496B (en) System and method for city intellectualization
CN109767030B (en) Road congestion detection method and device, computer equipment and storage medium
JP5773546B2 (en) Control method, apparatus, and equipment for outdoor lighting system
US8583362B2 (en) Apparatus, method, and program for generating road information
KR102217870B1 (en) Traffic managing system using digital twin technology
CN110807921A (en) Vehicle scheduling method, device, equipment and storage medium
CN116070967B (en) Comprehensive energy consumption monitoring and management system
CN111311952A (en) Control method and device for vehicle parking, computer equipment and storage medium
CN111627229A (en) Control method and device of traffic signal equipment and computer equipment
CN115767842A (en) Intelligent lighting control method and system based on real-time environment information
CN111223296B (en) Signal lamp control method and device, computer equipment and storage medium
CN114630475B (en) Internet of things data interaction method and system, computer equipment and storage medium
JP2008249536A (en) Vehicle guidance device and vehicle guidance server
CN114390759A (en) Intelligent illumination system control method and device based on TOF camera and medium
CN116469267A (en) Public parking space prediction and recommendation method and public parking space prediction and recommendation system based on vehicle-road cooperation
CN115188208A (en) Traffic control method based on big data and computer equipment
CN111539551A (en) Driving destination address prediction method and device, computer equipment and storage medium
CN114973192A (en) Traffic light identification method and device, computer equipment and storage medium
CN113096438B (en) Vehicle identification method and device and related equipment
US20240053161A1 (en) Method for Predicting a Velocity Profile of a Vehicle
CN116363869B (en) Data analysis system and method based on blockchain
CN113538948A (en) Parking space navigation system and method based on wireless sensing technology of Internet of things
CN111354184B (en) Traffic signal period calculation method and apparatus, and computer-readable storage medium
CN116312023B (en) Guiding parking method, guiding parking device, guiding parking equipment and storage medium

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