Parking space occupancy state detection method and device and electronic equipment
By using mobile network modules and equipment cloud platforms in the parking space detection system, the problems of poor NB-IoT network coverage and insufficient concurrency capabilities of a single base station in the prior art are solved, efficient and stable detection of parking space occupation status is achieved, and intelligent parking needs are met.
Patent Information
- Application Number
- CN202510239888.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-03
- Publication Date
- 2025-05-30
AI Technical Summary
The existing parking space detection system relies on NB-IoT technology, resulting in incomplete network coverage and unstable signal, affecting real-time data uploads. The concurrent carrying capacity of a single base station is limited, which cannot meet the needs of large-scale deployment.
By obtaining the parking space occupation characterization information collected by the detection terminal, the mobile network module is controlled to power on for mobile networking, and sending this information to the device cloud platform through the mobile network. Use the equipment cloud platform to analyze this information, determine the parking space occupation status, and monitor the success of data upload through a timer to achieve stable and efficient data transmission.
It improves the stability and efficiency of data transmission, supports large-scale equipment access, reduces the system's operation and maintenance costs, and meets the needs of intelligent parking.
Smart Images

Figure CN120071670A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of parking space detection, and in particular, to a method, device, and electronic device for detecting the occupancy status of a parking space. Background Art
[0002] With the continuous acceleration of the urbanization process, the problem of parking difficulty has become increasingly prominent. Especially in the core areas of big cities, due to limited parking space resources, car owners often face the dilemma of not being able to find a parking space. In order to improve the utilization efficiency of parking resources and reduce the time for car owners to search for parking spaces, some intelligent parking space detection systems have emerged. These systems can monitor the occupancy status of parking spaces in real time through various sensors and wireless communication technologies, and transmit the data to the cloud platform for management personnel or car owners to query, so as to achieve intelligent management.
[0003] Existing parking space detection systems usually rely on low-power wide-area network communication methods such as NB-IoT. Although this method has good communication coverage in some scenarios, in some areas, the network coverage of NB-IoT is still incomplete, and due to the slow progress of base station construction, it may lead to weak or unstable network signals, affecting the real-time upload of detection data, and even abnormal power consumption may occur. The uplink and downlink rates of the NB-IoT technology used in traditional parking space detection systems are relatively low, usually not exceeding 100 kbps, resulting in limited real-time data transmission capabilities. In a parking space detection system, especially in the high-traffic urban center area, the transmission rate of parking space status data directly affects the response speed of the system and the timeliness of data update, which may cause car owners not to be able to immediately obtain real-time information about available parking spaces, reducing the actual utility of the system. At the same time, existing parking space detection devices often rely on a single base station for data transmission, and the concurrent bearing capacity of a single base station is limited, usually only supporting the simultaneous connection of about 20 devices. This cannot meet the high-concurrency requirements for large-scale deployed parking lots or parking space detection systems in urban core areas, resulting in poor scalability of the system. Summary of the Invention
[0004] The embodiments of the present disclosure at least provide a method, device, and electronic device for detecting the occupancy status of a parking space, which can improve the stability and efficiency of data transmission, support large-scale device access at the same time, and reduce the operation and maintenance costs of the system to meet the growing intelligent parking needs.
[0005] The embodiments of the present disclosure provide a method for detecting the occupancy status of a parking space, including:
[0006] Obtain the parking space occupancy characterization information collected by the detection terminal, and control the mobile network module of the detection terminal to power on for mobile networking;
[0007] After successful network connection, control the detection terminal to send the parking space occupancy characterization information to the device cloud platform via the mobile network using a preset communication protocol;
[0008] Parse the parking space occupancy characterization information through the device cloud platform, and determine the parking space occupancy status information according to the parking space occupancy characterization information;
[0009] Start the first timer and monitor whether the detection terminal receives a reply message from the device cloud platform during the timing period of the first timer; if so, determine that the data upload is successful, and control the power-off of the mobile network module; if not, determine that the data upload fails, save the parking space occupancy characterization information and wait for the next upload process to retransmit.
[0010] In an optional implementation manner, obtaining the parking space occupancy characterization information collected by the detection terminal specifically includes:
[0011] Detect the geomagnetic signal value corresponding to the parking space through the geomagnetic detection terminal, and determine the change amplitude of the geomagnetic signal between the geomagnetic signal value and the empty space value at the time of reset;
[0012] Transmit a modulated electromagnetic wave above the parking space through the radar detection terminal and receive the returned electromagnetic wave, and determine the time-frequency difference between the modulated electromagnetic wave and the returned electromagnetic wave;
[0013] Detect the illumination intensity corresponding to the parking space surface through the light sensor detection terminal, and determine the illumination change value corresponding to the illumination intensity;
[0014] Determine the geomagnetic signal change amplitude, the time-frequency difference, and the illumination change value as the parking space occupancy characterization information.
[0015] In an optional implementation manner, controlling the power-on of the mobile network module of the detection terminal for mobile networking specifically includes:
[0016] Control the power-on of the mobile network module. If the detection terminal has inserted a SIM card, start the second timer, and determine whether there is a mobile network signal during the timing period of the second timer;
[0017] If there is the mobile network signal, start the third timer, and determine whether to register to the mobile network during the timing period of the third timer;
[0018] If registered to the mobile network, output the mobile networking success result information.
[0019] In an optional implementation manner, the method further includes:
[0020] If the detection terminal does not insert a SIM card, control the power-off of the mobile network module, and output the networking failure result information;
[0021] If there is no such mobile network signal during the timing of the second timer, control the power-down of the mobile network module and output the network connection failure result information;
[0022] If not registered to the mobile network during the timing of the third timer, control the power-down of the mobile network module and output the network connection failure result information.
[0023] In an alternative embodiment, the device cloud platform analyzes the parking space occupancy characterization information and determines the parking space occupancy status information according to the parking space occupancy characterization information, specifically including:
[0024] Determine whether the change amplitude of the geomagnetic signal is greater than a preset amplitude threshold. If the change amplitude of the geomagnetic signal is greater than the preset amplitude threshold, it is determined that there is a vehicle parked in the parking space;
[0025] Determine the distance between the vehicle and the parking space and the moving speed of the vehicle according to the time-frequency difference value;
[0026] Determine whether the light change value is greater than a preset change threshold. If the light change value is greater than the preset change threshold, it is determined that there is a vehicle entry / exit event in the parking space.
[0027] In an alternative embodiment, the method further includes:
[0028] If the mobile network connection is not successful, determine whether the current transmission content is a detection data packet;
[0029] If so, save the parking space occupancy characterization information and wait for the next upload process to retransmit, and output a data upload failure information;
[0030] If not, directly output the data upload failure information.
[0031] In an alternative embodiment, the method further includes:
[0032] Determine the vehicle parking duration according to the vehicle entry time point and the vehicle exit time point corresponding to the vehicle entry / exit event;
[0033] Determine the vehicle parking fee according to the vehicle parking duration and the preset charging rule corresponding to the parking space.
[0034] The embodiments of the present disclosure further provide a detection device for the parking space occupancy status, including:
[0035] A networking module, configured to obtain the parking space occupancy characterization information collected by the detection terminal and control the power-on of the mobile network module of the detection terminal for mobile networking;
[0036] An information transmission module, configured to control the detection terminal to send the parking space occupancy characterization information to the device cloud platform via a mobile network using a preset communication protocol after successful network connection;
[0037] A status detection module, configured to parse the parking space occupancy characterization information through the device cloud platform and determine the parking space occupancy status information according to the parking space occupancy characterization information;
[0038] A communication verification module, configured to start a first timer and monitor whether the detection terminal receives a reply message from the device cloud platform during the timing of the first timer; if so, determine that the data upload is successful and control the power-off of the mobile network module; if not, determine that the data upload fails, save the parking space occupancy characterization information and wait for the next upload process for retransmission.
[0039] An embodiment of the present disclosure further provides an electronic device, including: a processor, a memory, and a bus. The memory stores machine-readable instructions executable by the processor. When the electronic device runs, the processor communicates with the memory through the bus. When the machine-readable instructions are executed by the processor, the above-mentioned method for detecting the parking space occupancy status, or the steps in any possible implementation manner of the above-mentioned method for detecting the parking space occupancy status are executed.
[0040] An embodiment of the present disclosure further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is run by a processor, the above-mentioned method for detecting the parking space occupancy status, or the steps in any possible implementation manner of the above-mentioned method for detecting the parking space occupancy status are executed.
[0041] An embodiment of the present disclosure further provides a computer program product, including a computer program / instructions. When the computer program and instructions are executed by a processor, the above-mentioned method for detecting the parking space occupancy status, or the steps in any possible implementation manner of the above-mentioned method for detecting the parking space occupancy status are implemented.
[0042] A method, apparatus, and electronic device for detecting the occupancy status of a parking space provided by an embodiment of the present disclosure obtain occupancy characterization information collected by a detection terminal, and control the mobile network module of the detection terminal to power on for mobile networking; after successful networking, control the detection terminal to send the occupancy characterization information to a device cloud platform through a mobile network using a preset communication protocol; parse the occupancy characterization information through the device cloud platform, and determine occupancy status information according to the occupancy characterization information; start a first timer and monitor whether the detection terminal receives a reply message from the device cloud platform during the timing period of the first timer; if so, determine that the data upload is successful, and control the mobile network module to power off; if not, determine that the data upload fails, save the occupancy characterization information and wait for the next upload process to retransmit. This can improve the stability and efficiency of data transmission, support large-scale device access, and reduce the operation and maintenance costs of the system to meet the growing demand for intelligent parking.
[0043] To make the above objects, features, and advantages of the present disclosure more obvious and understandable, the following specific preferred embodiments are given in conjunction with the accompanying drawings and are described in detail as follows. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] To more clearly illustrate the technical solutions of the embodiments of the present disclosure, the following briefly introduces the accompanying drawings required for the embodiments. The accompanying drawings are incorporated into the specification and form a part of this specification. These drawings show embodiments that conform to the present disclosure and are used together with the specification to illustrate the technical solutions of the present disclosure. It should be understood that the following drawings only show some embodiments of the present disclosure and should not be regarded as limiting the scope. For those of ordinary skill in the art, other related drawings can be obtained based on these drawings without creative efforts.
[0045] Figure 1 Shows a flowchart of a method for detecting the occupancy status of a parking space provided by an embodiment of the present disclosure;
[0046] Figure 2 Shows a flowchart of a method for mobile networking provided by an embodiment of the present disclosure;
[0047] Figure 3 Shows a schematic diagram of a device for detecting the occupancy status of a parking space provided by an embodiment of the present disclosure;
[0048] Figure 4 Shows a schematic diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0049] To make the objectives, technical solutions, and advantages of the embodiments of the present disclosure clearer, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present disclosure. Apparently, the described embodiments are only some, rather than all, of the embodiments of the present disclosure. Components of the embodiments of the present disclosure described and illustrated herein generally may be arranged and designed in a variety of different configurations. Therefore, the detailed description of the embodiments of the present disclosure provided herein is not intended to limit the scope of the claimed present disclosure, but merely represents selected embodiments of the present disclosure. All other embodiments obtained by those skilled in the art based on the embodiments of the present disclosure without creative efforts fall within the scope of the present disclosure.
[0050] It should be noted that like reference numerals and letters denote like items in the following figures. Therefore, once an item is defined in one figure, it does not require further definition and explanation in subsequent figures.
[0051] As used herein, the term "and / or" merely describes an association relationship and indicates that three relationships may exist. For example, A and / or B may represent three cases: A exists alone, A and B exist simultaneously, and B exists alone. Additionally, the term "at least one" as used herein means any one or any combination of at least two of a plurality. For example, including at least one of A, B, and C may represent any one or more elements selected from the set composed of A, B, and C.
[0052] Through research, it is found that existing parking space detection systems usually rely on low-power wide-area network communication methods such as NB-IoT. Although this method has good communication coverage in some scenarios, in some areas, the network coverage of NB-IoT is still incomplete. Moreover, due to the slow progress of base station construction, it may lead to weak or unstable network signals, affecting the real-time upload of detection data and even potentially abnormal power consumption. The uplink and downlink rates of the NB-IoT technology used in traditional parking space detection systems are relatively low, usually not exceeding 100 kbps, resulting in limited real-time data transmission capabilities. In a parking space detection system, especially in high-traffic urban central areas, the transmission rate of parking space status data directly affects the response speed of the system and the timeliness of data updates, which may cause vehicle owners to be unable to immediately obtain real-time information about available parking spaces, reducing the actual utility of the system. At the same time, existing parking space detection devices often rely on a single base station for data transmission, and the concurrent bearing capacity of a single base station is limited, usually only supporting the simultaneous connection of about 20 devices. This cannot meet the high-concurrency requirements for large-scale deployed parking lots or parking space detection systems in urban core areas, resulting in poor scalability of the system.
[0053] Based on the above research, the present disclosure provides a method, apparatus, and electronic device for detecting the occupancy status of a parking space, which acquire the occupancy characterization information collected by a detection terminal and control the mobile network module of the detection terminal to power on for mobile networking; after successful networking, control the detection terminal to send the occupancy characterization information to an equipment cloud platform through the mobile network using a preset communication protocol; parse the occupancy characterization information through the equipment cloud platform and determine the occupancy status information of the parking space according to the occupancy characterization information; start a first timer and monitor whether the detection terminal receives a reply message from the equipment cloud platform during the timing period of the first timer; if so, determine that the data upload is successful and control the mobile network module to power off; if not, determine that the data upload fails, save the occupancy characterization information and wait for the next upload process to retransmit. This can improve the stability and efficiency of data transmission, support large-scale device access, and reduce the operation and maintenance costs of the system to meet the growing demand for intelligent parking.
[0054] To facilitate the understanding of this embodiment, a method for detecting the occupancy status of a parking space disclosed in the embodiments of the present disclosure will be introduced in detail first. The execution subject of the method for detecting the occupancy status of a parking space provided in the embodiments of the present disclosure is generally a computer device with certain computing capabilities, such as a terminal device, a server, or other processing devices. The terminal device can be a user equipment (UE), a mobile device, a user terminal, a terminal, a cellular phone, a cordless phone, a personal digital assistant (PDA), a handheld device, a computing device, a vehicle-mounted device, a wearable device, etc. In some possible implementation manners, the method for detecting the occupancy status of a parking space can be implemented by a processor calling computer-readable instructions stored in a memory.
[0055] See Figure 1 As shown, it is a flowchart of a method for detecting the occupancy status of a parking space provided in an embodiment of the present disclosure. The method includes steps S101 to S104, where:
[0056] S101. Acquire the occupancy characterization information collected by the detection terminal and control the mobile network module of the detection terminal to power on for mobile networking.
[0057] In a specific implementation, occupancy characterization information collected by a detection terminal is obtained, and the mobile network module of the detection terminal is controlled to power on for mobile networking. The geomagnetic signal value corresponding to the parking space can be detected by a geomagnetic detection terminal, and the change amplitude of the geomagnetic signal between the current geomagnetic signal value and the vacant space value at the time of reset can be determined; a modulated electromagnetic wave is transmitted above the parking space by a radar detection terminal and the returned electromagnetic wave is received to determine the time-frequency difference between the modulated electromagnetic wave and the returned electromagnetic wave; the light intensity corresponding to the surface of the parking space is detected by a light sensor terminal, and the light change value corresponding to the light intensity is determined; the change amplitude of the geomagnetic signal, the time-frequency difference, and the light change value are determined as the occupancy characterization information of the parking space.
[0058] Here, the geomagnetic sensor uses the magnetic field change of on-vehicle metal objects to detect whether a parking space is occupied. When a vehicle is parked in a certain parking space, the geomagnetic signal of the parking space will change, and the geomagnetic sensor will detect this change. By comparing the difference between the current geomagnetic signal and the vacant space signal value at the time of reset, it can be determined whether the parking space is occupied.
[0059] Among them, the geomagnetic sensor is installed under the parking space, and the occupancy information of the parking space is collected by real-time monitoring of the change of the geomagnetic field. These signals are transmitted to the detection terminal for processing and are used as part of the occupancy characterization information of the parking space.
[0060] Here, the radar sensor emits a modulated electromagnetic wave (usually using FMCW modulation technology) to the parking space and receives the electromagnetic wave reflected from the ground or the vehicle, and determines the distance and movement speed between the vehicle and the sensor by calculating the time difference and frequency difference.
[0061] Among them, the radar module in the detection terminal calculates whether there is a vehicle on the parking space and the distance between the vehicle and the sensor based on the reflection information of the electromagnetic wave. Through these data, it can be judged whether the parking space is occupied and whether the vehicle is parked in a suitable position, and at the same time, the movement speed of the vehicle can be calculated.
[0062] Here, the light sensor measures the light intensity on the surface of the parking space. When the surrounding light intensity changes, especially when the vehicle enters and exits, the light intensity of the parking space will change, and the light sensor can detect this change.
[0063] Among them, the light sensor is installed on the surface of the parking space, and the light intensity of the surrounding environment is collected in real time, and these data are used as a dimension of the occupancy characterization information of the parking space to provide auxiliary information on whether the parking space is occupied.
[0064] It should be noted that after obtaining the geomagnetic signal, radar signal, and light sensor signal, the detection terminal fuses these signals together and generates parking space occupancy characterization information through algorithms such as weighted average or threshold judgment. These characterization information comprehensively reflect the parking space occupancy status and can accurately determine whether the parking space is occupied and relevant information about the entering and leaving vehicles.
[0065] Furthermore, in order to upload the collected parking space occupancy characterization information to the cloud platform or the background system, the detection terminal needs to connect to the network through a mobile network (such as a 4G network). As a possible implementation manner, refer to Figure 2 shown in the flowchart of a mobile networking method provided by an embodiment of the present disclosure. The method includes steps S1011 to S1013, where:
[0066] S1011. Power on the mobile network module. If the detection terminal has inserted a SIM card, start the second timer, and determine whether there is a mobile network signal during the timing period of the second timer.
[0067] S1012. If there is the mobile network signal, start the third timer, and determine whether to register to the mobile network during the timing period of the third timer.
[0068] S1013. If registered to the mobile network, output the mobile networking success result information.
[0069] In a specific implementation, when the detection terminal collects the parking space occupancy characterization information, it is first necessary to ensure that the 4G communication module (mobile network module) of the detection terminal is in an enabled state. At this time, the control system will send an instruction through the hardware interface to power on the mobile network module, enabling it to enter the normal working state.
[0070] Here, in order to extend the service life of the device, the detection terminal is in a low-power state most of the time and only starts the network module when it needs to connect to the network. The control system will judge whether to start the network module according to the conditions for connecting to the network.
[0071] Furthermore, after starting the mobile network module, it is first necessary to check whether the detection terminal has inserted a SIM card. If the SIM card is inserted successfully, the system will start the second timer to check whether the 4G module can receive a valid network signal. At this time, the network module of the detection terminal will scan the surrounding 4G signal base stations to confirm whether there is an available network connection. If the signal check passes, the system will start the third timer and try to let the 4G module register to the mobile communication network of the network operator. If successful, the device can transmit data through the 4G network.
[0072] Here, if the 4G module successfully registers to the network and obtains a network connection, the system will output the result information of successful network connection and start uploading the collected parking space occupancy characterization information to the device cloud platform. If there are problems during the network signal detection or registration process, the system will output the result information of failed network connection, control the power-down of the mobile network module, enter the standby state, and wait for the next network connection attempt.
[0073] It should be noted that if the detection terminal does not insert the SIM card, the mobile network module will be powered down and the result information of failed network connection will be output; if there is no mobile network signal during the timing of the second timer, the mobile network module will be powered down and the result information of failed network connection will be output; if not registered to the mobile network during the timing of the third timer, the mobile network module will be powered down and the result information of failed network connection will be output.
[0074] Here, if the SIM card is not inserted, the device will not be able to connect to the mobile network. Therefore, the system will control the module to power down and output the result information of failed network connection. If the registration is not successful, the system will control the module to power down and output the result information of failed network connection.
[0075] S102. After successful network connection, control the detection terminal to send the parking space occupancy characterization information to the device cloud platform through the mobile network using a preset communication protocol.
[0076] In a specific implementation, after successful network connection, control the detection terminal to send the parking space occupancy characterization information to the device cloud platform through the mobile network using a preset communication protocol. In the previous step, the mobile network module of the detection terminal has successfully connected to the available mobile communication network through SIM card authentication, signal detection, and network registration, and obtained an effective network connection. At this time, the device can start the data transmission operation.
[0077] It should be noted that the preset communication protocol can be selected according to the actual needs of the device. For resource-constrained devices, some lightweight protocols can be selected, such as CoAP, MQTT, UDP, etc. protocols. Preferably, the CoAP protocol can be used.
[0078] Here, the CoAP protocol is a lightweight application layer protocol designed for resource-constrained devices and networks. It is especially suitable for low-bandwidth, low-power devices and is based on the request / response mode, similar to the HTTP protocol, but optimized for low-power devices and unstable network environments. Therefore, the CoAP protocol is very common in Internet of Things (IoT) devices, especially for application scenarios such as parking space detection that require real-time, low-latency transmission of small-scale data.
[0079] Among them, CoAP is based on the UDP protocol, with relatively small data packets, which reduces the bandwidth consumption during transmission. It also supports multiple communication modes, including unicast and multicast, adapting to different network environments. In addition, CoAP provides a confirmation message mechanism to ensure the transmission reliability of messages in an unstable network environment and supports RESTful interfaces, facilitating data interaction with the device cloud platform.
[0080] Specifically, after the detection terminal successfully connects to the network, it will first construct a data packet to be sent to the cloud platform based on the collected parking space occupancy characterization information (such as geomagnetic signals, radar data, light changes, etc.). The data packet can include the occupancy status of the parking space (such as "occupied" or "idle"), vehicle entry and exit events (such as "car entry" or "car exit"), the distance and speed information between the vehicle and the parking space, and positioning information such as the parking space number or location, which are packed into a data packet conforming to the CoAP protocol format for easy data analysis and display by the cloud platform.
[0081] Here, during the CoAP protocol sending process, the control module in the detection terminal will generate a CoAP protocol request through the encoding module according to the parking space occupancy information. After constructing the CoAP request, the detection terminal will send this request to the device cloud platform through the mobile network, encapsulate the constructed CoAP message into a data packet, and perform network transmission through the UDP protocol. Since CoAP is based on UDP, it is necessary to ensure that the IP address and port number of the target cloud platform are correct when sending. The detection terminal determines the target address of the cloud platform through the network module and then sends the CoAP message to this address. During the sending process, the detection terminal sets an appropriate timeout mechanism to handle problems such as packet loss or network latency. If the data packet is not confirmed in time, the detection terminal will resend the data according to the retry mechanism of the CoAP protocol.
[0082] Furthermore, after receiving the CoAP message, the device cloud platform will judge the content of this request according to the URIPath and process the message (such as parsing the parking space occupancy information, storing data, etc.). After the processing is completed, the cloud platform will generate a response message and return it to the detection terminal. If the cloud platform fails to successfully respond to the CoAP message (such as timeout or network problems), the detection terminal will resend the request according to the reliability mechanism of the CoAP protocol or retry according to the pre-set strategy.
[0083] As a possible implementation, if the mobile network connection is not successful, it is determined whether the current transmission content is a detection data packet; if so, the parking space occupancy characterization information is saved and waiting for retransmission in the next upload process, and a data upload failure message is output; if not, a data upload failure message is directly output.
[0084] S103. Analyze the parking space occupancy characterization information through the device cloud platform, and determine the parking space occupancy status information according to the parking space occupancy characterization information.
[0085] In specific implementation, determine whether the change amplitude of the geomagnetic signal is greater than a preset amplitude threshold. If the change amplitude of the geomagnetic signal is greater than the preset amplitude threshold, it is determined that there is a vehicle parked in the parking space; determine the distance between the vehicle and the parking space and the moving speed of the vehicle according to the time-frequency difference value; determine whether the light change value is greater than a preset change threshold. If the light change value is greater than the preset change threshold, it is determined that there is a vehicle entry / exit event in the parking space.
[0086] Here, when the detection terminal successfully uploads the parking space occupancy characterization information through the mobile network, the device cloud platform receives the data packet sent by the CoAP protocol. The data packet contains the relevant information of the parking space occupancy, including the change amplitude of the geomagnetic signal (used to determine whether the parking space is occupied), the time-frequency difference value (used to determine the distance between the vehicle and the parking space and the motion state of the vehicle), and the light change value (used to judge whether there is a vehicle entry / exit event in the parking space).
[0087] After that, the device cloud platform will first analyze the received parking space occupancy characterization information, extract the values of each field from the uploaded message, including the parking space number, the change amplitude of the geomagnetic signal, the radar time-frequency difference value, and the light change value. Analyze the received original detection data, convert it into structured information, and remove the noise and abnormal data therein to improve the data quality.
[0088] Here, format the received field data into a format suitable for analysis. For example, compare the change amplitude of the geomagnetic signal with a preset threshold, and convert the light change value into a comparison result with other light data. At the same time, check the rationality of the data, such as whether there are missing fields, or whether the values of some fields exceed the reasonable range.
[0089] Furthermore, after the parsing is completed, the device cloud platform uses this parking space occupancy characterization information to determine the occupancy status of the parking space based on preset algorithms and logics. The core of the determination is to combine the data of various sensors and determine whether the parking space is occupied through threshold setting and logical judgment. The geomagnetic sensor is used to detect whether the parking space is occupied. When the change amplitude of the geomagnetic signal exceeds a certain threshold, it means that a vehicle enters or leaves the parking space. Therefore, the platform will analyze the change amplitude of the geomagnetic signal. If the change amplitude of the geomagnetic signal is greater than the preset threshold, it can be determined that the parking space has been occupied. The radar sensor is used to measure the distance between the vehicle and the parking space and the motion state of the vehicle. By calculating the time-frequency difference value, the platform can judge whether the vehicle has entered the parking space or whether there is a moving vehicle in the parking space. For example, a small time-frequency difference value of the radar may mean that the vehicle is close to the parking space or there is indeed a vehicle in the parking space. The light sensor is mainly used to detect whether there are vehicle entry and exit events in the parking space. When the light intensity above the parking space changes, it may indicate that a vehicle enters or leaves. The cloud platform judges the dynamic state of the parking space according to the light change value. For example, if the light change value is greater than a certain set threshold, it may mean that a vehicle enters or leaves the parking space, resulting in an obvious light change.
[0090] It should be noted that after parsing and judging the occupancy status of the parking space, the device cloud platform will update the occupancy status of the parking space and store it in the database. In addition, the platform can also push the real-time parking space status information to the front-end applications (such as the vehicle owner side, the management side, etc.) through APIs or other means for users to view.
[0091] As a possible implementation method, the device cloud platform is divided into a device background cluster and an application service cluster. The device background cluster supports the access and registration of a large number of geomagnetic devices, meeting the needs of large-scale deployment. Ensure the legality and uniqueness of the devices. Manage the entire life cycle of the sensors from online, operation to offline, record the relevant information and operation history of the devices. And the parameters of the geomagnetic devices can be remotely set, such as night sleep, postponed activation, vehicle entry and exit detection parameters, heartbeat interval, etc. Batch activation, command issuance, batch upgrade, etc. can also be carried out, and the operation status of the geomagnetic sensors, including battery power, signal strength, etc., can be monitored in real time. If it is found that the battery power of the sensor is too low or the signal is abnormal, an alarm will be issued in time to remind the maintenance personnel to check and handle.
[0092] Furthermore, the application service cluster is responsible for parsing the received original detection data, converting it into structured information, and removing the noise and abnormal data therein to improve the data quality. By analyzing the geomagnetic field change data, it can accurately determine whether a parking space is occupied and the entry and exit times of the vehicle, etc. It can also determine the parking duration of the vehicle according to the vehicle entry time point and vehicle exit time point corresponding to the vehicle entry and exit events; and determine the parking fee of the vehicle according to the preset charging rules corresponding to the parking duration and the parking space (such as the charging rules corresponding to the first-class parking spaces in the core area of the city and the third-class parking spaces in the suburbs, etc.).
[0093] It should be noted that internal communication is adopted between the device background cluster and the application service cluster, and the device background cluster transmits the decoded detection packet to the application service cluster.
[0094] Optionally, the application service cluster can also analyze the detection data accumulated over a long period of time, and dig out rules such as peak parking hours, parking space usage frequency, and parking demands in different regions, providing a decision-making basis for parking management and urban planning.
[0095] S104. Start the first timer and monitor whether the detection terminal receives a reply message from the device cloud platform during the timing period of the first timer; if so, determine that the data upload is successful, and power off the mobile network module; if not, determine that the data upload fails, save the parking space occupancy characterization information, and wait for the next upload process to retransmit.
[0096] In a specific implementation, after the detection terminal successfully uploads the parking space occupancy characterization information to the device cloud platform through the mobile network, the system will start a timer to monitor whether the data upload is successful. When starting, the first timer will start timing, and during the timing period of the timer, the system will continuously monitor whether a confirmed reply message is received from the device cloud platform. During the timing period of the first timer, the detection terminal will continuously listen for the return messages of the mobile network. The device cloud platform will complete data processing based on the parking space occupancy characterization information and return a corresponding reply message.
[0097] Here, the detection terminal will continuously check whether there is a reply message from the cloud platform during the timing period of the timer. These reply messages can be transmitted back through the CoAP protocol (as described above) or other network protocols, and usually contain the upload status or other feedback related to the processing of the parking space occupancy characterization information.
[0098] Among them, according to the status of the timer and whether the confirmation information from the device cloud platform is received, if during the timing period of the first timer, the detection terminal receives the reply information from the device cloud platform, and this reply information indicates that the data upload is successful. It is determined that the upload process is successful, and the parking space occupancy characterization information has been successfully stored and processed. To save energy and avoid unnecessary communication, the system will control the power-down (disconnection) of the mobile network module, and turn off the network module by sending the corresponding signal to prevent excessive power consumption. After the upload is successful, the timer can also be stopped, no longer need to wait, and the upload process ends.
[0099] Among them, if during the timing period of the first timer, the detection terminal does not receive the reply information from the device cloud platform, or the received reply information indicates that the data upload fails. Due to the data upload failure, the detection terminal will save the current parking space occupancy characterization information to the local storage. This can prevent data loss and prepare for the next upload. The detection terminal will continue to wait for the next upload opportunity or network recovery. When the next upload process starts, the system will attempt to re-upload the saved parking space occupancy characterization information to the cloud platform this time to ensure that the data can finally be uploaded successfully.
[0100] It should be noted that if the detection terminal fails to successfully send the parking space occupancy characterization information to the cloud platform during a certain upload process, the system will automatically save the failed data to the local storage and continue to re-upload it in the next upload cycle. This mechanism ensures that even if the data upload fails in a certain cycle, the data will not be lost and can be resubmitted through subsequent upload processes.
[0101] Specifically, when the detection terminal starts the upload process next time, it will first check whether there is data to be uploaded locally (i.e., the data saved due to previous failures). If there is data to be uploaded, the system will attempt to send this data to the device cloud platform again until the upload is successful. This re-upload mechanism ensures the persistence and integrity of the data and avoids data loss caused by occasional network problems.
[0102] A method for detecting the occupancy status of a parking space provided by an embodiment of the present disclosure obtains the occupancy characterization information collected by a detection terminal, and controls the mobile network module of the detection terminal to power on for mobile networking; after successful networking, controls the detection terminal to send the occupancy characterization information to a device cloud platform through the mobile network using a preset communication protocol; parses the occupancy characterization information through the device cloud platform, and determines the occupancy status information of the parking space according to the occupancy characterization information; starts a first timer and monitors whether the detection terminal receives a reply message from the device cloud platform during the timing period of the first timer; if so, determines that the data upload is successful, and controls the mobile network module to power off; if not, determines that the data upload fails, saves the occupancy characterization information and waits for the next upload process to retransmit. It can improve the stability and efficiency of data transmission, support large-scale device access at the same time, and reduce the operation and maintenance costs of the system to meet the growing intelligent parking needs.
[0103] Those skilled in the art can understand that in the above method of the specific embodiment, the writing order of each step does not mean a strict execution order that constitutes any limitation on the implementation process, and the specific execution order of each step should be determined according to its function and possible internal logic.
[0104] Based on the same inventive concept, an embodiment of the present disclosure also provides a detection device for the occupancy status of a parking space corresponding to the method for detecting the occupancy status of a parking space. Since the principle of solving problems by the device in the embodiment of the present disclosure is similar to the above method for detecting the occupancy status of a parking space in the embodiment of the present disclosure, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be described again.
[0105] Please refer to Figure 3 , Figure 3 which is a schematic diagram of a detection device for the occupancy status of a parking space provided by an embodiment of the present disclosure. As Figure 3 shown in
[0106] The networking module 310 is used to obtain the occupancy characterization information collected by the detection terminal, and control the mobile network module of the detection terminal to power on for mobile networking.
[0107] The information transmission module 320 is used to control the detection terminal to send the occupancy characterization information to the device cloud platform through the mobile network using a preset communication protocol after successful networking.
[0108] The status detection module 330 is used to parse the occupancy characterization information through the device cloud platform, and determine the occupancy status information of the parking space according to the occupancy characterization information.
[0109] A communication verification module 340 is configured to start a first timer and monitor whether the detection terminal receives a reply message from the device cloud platform during the timing period of the first timer; if so, it determines that the data upload is successful and controls the power-off of the mobile network module; if not, it determines that the data upload fails, saves the parking space occupancy characterization information, and waits for the next upload process to retransmit.
[0110] For the processing flow of each module in the device and the interaction flow between modules, reference can be made to the relevant descriptions in the above method embodiments, which will not be elaborated here.
[0111] A detection device for parking space occupancy status provided by an embodiment of the present disclosure acquires parking space occupancy characterization information collected by a detection terminal, and controls the power-on of the mobile network module of the detection terminal for mobile networking; after successful networking, it controls the detection terminal to send the parking space occupancy characterization information to the device cloud platform through the mobile network using a preset communication protocol; the device cloud platform analyzes the parking space occupancy characterization information and determines the parking space occupancy status information according to the parking space occupancy characterization information; starts a first timer and monitors whether the detection terminal receives a reply message from the device cloud platform during the timing period of the first timer; if so, it determines that the data upload is successful and controls the power-off of the mobile network module; if not, it determines that the data upload fails, saves the parking space occupancy characterization information, and waits for the next upload process to retransmit. This can improve the stability and efficiency of data transmission, support large-scale device access, and reduce the operation and maintenance costs of the system to meet the growing intelligent parking needs.
[0112] Corresponding to Figure 1 the detection method for parking space occupancy status in Figure 4 as shown, which is a schematic structural diagram of an electronic device 400 provided by an embodiment of the present disclosure, including:
[0113] A processor 41, a memory 42, and a bus 43; the memory 42 is used to store execution instructions, including an internal memory 421 and an external memory 422; here, the internal memory 421 is also called the main memory, which is used to temporarily store the operation data in the processor 41 and the data exchanged with the external memory 422 such as a hard disk. The processor 41 exchanges data with the external memory 422 through the internal memory 421. When the electronic device 400 runs, communication is carried out between the processor 41 and the memory 42 through the bus 43, so that the processor 41 executes Figure 1 the steps of the detection method for parking space occupancy status in
[0114] An embodiment of the present disclosure also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is run by a processor, it executes the steps of the method for detecting the parking space occupancy status described in the above method embodiment. Among them, the storage medium can be a volatile or non-volatile computer-readable storage medium.
[0115] An embodiment of the present disclosure also provides a computer program product, which includes computer instructions. When the computer instructions are executed by a processor, they can execute the steps of the method for detecting the parking space occupancy status described in the above method embodiment. For details, refer to the above method embodiment and will not be elaborated here.
[0116] Among them, the above computer program product can be specifically implemented in a manner of hardware, software, or a combination thereof. In an optional embodiment, the computer program product is specifically embodied as a computer storage medium. In another optional embodiment, the computer program product is specifically embodied as a software product, such as a Software Development Kit (SDK), etc.
[0117] Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working process of the above-described device can refer to the corresponding process in the foregoing method embodiment and will not be elaborated here. In several embodiments provided by the present disclosure, it should be understood that the disclosed device and method can be implemented in other ways. The device embodiments described above are only illustrative. For example, the division of the units is only a logical function division, and there may be other division methods in actual implementation. For another example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed mutual coupling or direct coupling or communication connection can be through some communication interfaces. The indirect coupling or communication connection of the device or unit can be in an electrical, mechanical, or other form.
[0118] The units described as separate components may or may not be physically separated. The components displayed as units may or may not be physical units, that is, they can be located in one place, or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0119] In addition, in each embodiment of the present disclosure, the functional units can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit.
[0120] When the above-mentioned functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such an understanding, the technical solution of the present disclosure, in essence, or the part that contributes to the prior art, or a part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present disclosure. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROM), random access memories (RAM), magnetic disks, or optical discs.
[0121] Finally, it should be noted that the above-mentioned embodiments are only specific implementation manners of the present disclosure, used to illustrate the technical solutions of the present disclosure, rather than limiting them. The protection scope of the present disclosure is not limited thereto. Although the present disclosure has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that any person skilled in the art within the technical scope disclosed by the present disclosure can still modify the technical solutions recorded in the foregoing embodiments or easily conceive of changes, or perform equivalent replacements for some of the technical features; and these modifications, changes, or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure and should all be covered by the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be subject to the protection scope of the claims.
Claims
1. A method for detecting parking space occupancy status, characterized in that: include: Acquire parking space occupancy characterization information collected by the detection terminal, and control the mobile network module of the detection terminal to power on and perform mobile networking; After the network connection is successful, the detection terminal is controlled to send the parking space occupancy representation information to the device cloud platform via a mobile network using a preset communication protocol; parsing the parking space occupancy representation information through the device cloud platform, and determining parking space occupancy status information according to the parking space occupancy representation information; Start a first timer and monitor whether the detection terminal receives a reply message from the device cloud platform during the timing period of the first timer; if so, determine that the data upload is successful, and control the mobile network module to power off; if not, determine that the data upload has failed, save the parking space occupancy representation information and wait for the next upload process to retransmit.
2. The method according to claim 1, characterized in that Obtain parking space occupancy information collected by the detection terminal, including: Detecting the geomagnetic signal value corresponding to the parking space through the geomagnetic detection terminal, and determining the geomagnetic signal change amplitude between the geomagnetic signal value and the vacant space value at the time of reset; Transmitting a modulated electromagnetic wave above the parking space through a radar detection terminal and receiving a return electromagnetic wave, and determining a time-frequency difference between the modulated electromagnetic wave and the return electromagnetic wave; Detecting the light intensity corresponding to the parking space surface through the light sensing detection terminal, and determining the light change value corresponding to the light intensity; The geomagnetic signal change amplitude, the time-frequency difference value and the illumination change value are determined as the parking space occupancy representation information.
3. The method according to claim 1, characterized in that Controlling the mobile network module of the detection terminal to power on and perform mobile networking specifically includes: Controlling the mobile network module to power on, starting a second timer if a SIM card has been inserted into the detection terminal, and determining whether a mobile network signal exists during the timing of the second timer; If the mobile network signal is present, starting a third timer, and determining whether to register with the mobile network during the timing of the third timer; If the mobile network is registered, the mobile network connection success result information is output.
4. The method according to claim 3, characterized in that The method further comprises: If the detection terminal does not have a SIM card inserted, the mobile network module is controlled to be powered off and network failure result information is output; If the mobile network signal does not exist during the timing of the second timer, controlling the mobile network module to power off and outputting the networking failure result information; If the mobile network is not registered during the timing of the third timer, the mobile network module is controlled to be powered off and the network connection failure result information is output.
5. The method according to claim 2, characterized in that: Parsing the parking space occupancy representation information through the device cloud platform and determining the parking space occupancy status information according to the parking space occupancy representation information specifically includes: Determining whether the change amplitude of the geomagnetic signal is greater than a preset amplitude threshold, and if the change amplitude of the geomagnetic signal is greater than the preset amplitude threshold, determining that a vehicle is parked in the parking space; Determine the distance between the vehicle and the parking space and the moving speed of the vehicle according to the time-frequency difference; It is determined whether the illumination change value is greater than a preset change threshold value. If the illumination change value is greater than the preset change threshold value, it is determined that a vehicle entry and exit event occurs in the parking space.
6. The method according to claim 1, characterized in that The method further comprises: If the mobile networking is unsuccessful, determining whether the current transmission content is a detection data packet; If yes, save the parking space occupancy representation information and wait for the next upload process to re-upload, and output data upload failure information; If not, directly output the data upload failure information.
7. The method according to claim 5, characterized in that The method further comprises: Determine the parking time of the vehicle according to the vehicle entry time point and the vehicle exit time point corresponding to the vehicle entry and exit event; The vehicle parking fee is determined according to the pre-designed fee rules corresponding to the vehicle parking time and the parking space.
8. A parking space occupancy status detection device, characterized in that: include: A networking module, used to obtain the parking space occupancy characterization information collected by the detection terminal, and control the mobile network module of the detection terminal to power on for mobile networking; An information transmission module, used for controlling the detection terminal to send the parking space occupancy representation information to the device cloud platform via a mobile network using a preset communication protocol after the network is successfully connected; A state detection module, used to parse the parking space occupancy representation information through the device cloud platform, and determine the parking space occupancy state information according to the parking space occupancy representation information; The communication verification module is used to start the first timer and monitor whether the detection terminal receives the reply information from the device cloud platform during the timing period of the first timer; if so, it is determined that the data upload is successful and the mobile network module is controlled to power off; if not, it is determined that the data upload fails, the parking space occupancy representation information is saved and waits for the next upload process to re-upload.
9. An electronic device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the steps of the method for detecting the parking space occupancy status as described in any one of claims 1 to 7 are performed.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for detecting the parking space occupancy status as described in any one of claims 1 to 7 are executed.