Parking lock instruction information transmission method and system

By analyzing the transmission log data of the parking locks and dynamically adjusting the timed polling value to optimize the parking lock status query, the problem of resource waste and shortened lifespan caused by the polling mechanism when the parking space is locked is solved, and stable transmission and extended lifespan are achieved.

CN118645011BActive Publication Date: 2024-11-12HANGZHOU PARKTECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411087408.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-09
Publication Date
2024-11-12
Estimated Expiration
2044-08-09

AI Technical Summary

Technical Problem

In the existing technology, the timed polling mechanism of parking locks leads to unnecessary resource consumption and shortens the lifespan of unused parking locks, thus affecting the service life of the parking locks.

Method used

By analyzing the transmission log data of parking locks, we can obtain the trend and actual values ​​of usage frequency. Combining usage frequency, transmission cost, and degree of usage, we can dynamically adjust the timed polling value to optimize parking lock status queries.

Benefits of technology

It achieves stable transmission of parking lock command information, while reducing resource consumption and extending the lifespan of unused parking locks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118645011B_ABST
    Figure CN118645011B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of traffic control technology, and in particular to a method and system for transmitting parking lock instruction information. The method obtains the transmission log data of each parking lock in the database of a cloud server, and obtains the trend change value of the usage frequency of each parking lock and the actual value of the usage frequency according to the daily usage frequency of each parking lock in the transmission log data, thereby obtaining the degree of use of each parking lock, and combining the degree of use of each parking lock and the transmission cost of the instruction information of each parking lock to obtain the timed polling value of each parking lock, and query the status of each parking lock according to the timed polling value of each parking lock. The present invention can solve the problem of unnecessary resource consumption caused by the conventional polling mechanism of parking locks to query the status of each parking lock, thereby affecting the life of the parking locks.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of traffic control, and in particular to a method and system for transmitting parking lock instruction information. Background Art

[0002] With the development of science and technology and the maturity of Internet technology, there are more and more shared parking space management based on smart parking locks. They use the Internet of Things technology to realize the network management of parking space information and usage rights, so that private parking spaces can be rented out during free time, alleviating the problem of parking difficulties. Among them, smart parking locks are a key component of shared parking space management. Smart parking locks are a further optimization and upgrade of traditional remote control parking locks combined with Internet of Things technology. The lifting and lowering of the parking lock arm is controlled by mobile phone network communication. Therefore, the transmission stability of parking lock command information directly affects the user experience and the effective management of parking spaces.

[0003] Existing parking locks usually need to be powered by batteries during use, so frequent communication between the parking locks and the management terminal will shorten the battery life. In the prior art, in addition to passively receiving status updates of parking locks, the parking management system also adopts a timed polling mechanism to query the status of each parking lock. This mechanism ensures that even if the parking lock fails to report status changes immediately, the cloud server can obtain the latest occupancy information through regular queries and ensure that the parking locks are in a controllable state. However, since each parking lock is used to different degrees on a daily basis, if all parking locks adopt the same polling mechanism, it will cause some unnecessary resource consumption, and will also cause unnecessary loss of the life of unused parking locks, thereby affecting the life of the parking locks. Summary of the invention

[0004] In order to solve the technical problem that in the prior art, when a parking space is locked, a polling mechanism queries the status of each parking lock, causing some unnecessary resource consumption, causing unnecessary loss of the life of the unused parking lock, and thus affecting the life of the parking lock, the purpose of the present invention is to provide a method and system for transmitting parking lock instruction information. The technical solution adopted is as follows:

[0005] In a first aspect, a method for transmitting parking lock instruction information is provided, the method comprising:

[0006] Step S1: Obtain the transmission log data of each parking lock in the database of the cloud server;

[0007] Step S2: analyzing the trend change value of the usage frequency of each parking lock according to the daily usage frequency of each parking lock in the transmission log data;

[0008] Step S3: obtaining a real value of the usage frequency of each parking lock according to the value of each usage frequency of each parking lock and the number of all usage frequencies of each parking lock in the transmission log data;

[0009] Step S4: Obtaining the usage degree of each parking lock according to the trend change value of the usage frequency of each parking lock, the actual value of the usage frequency of each parking lock, and the number of all parking locks;

[0010] Step S5: obtaining the transmission cost of the instruction information of each parking lock according to the transmission time of each instruction information of each parking lock, the timestamp of each instruction, and the number of all historical instructions transmitted;

[0011] Step S6: Obtaining a timed polling value for each parking lock according to the transmission cost of the instruction information of each parking lock, the degree of use of each parking lock, and a preset minimum timed polling value and a maximum timed polling value;

[0012] Step S7: query the status of each parking lock according to the timing polling value of each parking lock.

[0013] Furthermore, the transmission log data in step S1 includes source information, destination information, timestamp, function code, and transmission time in each transmission process.

[0014] Furthermore, the transmission log data of each parking lock in the database of the cloud server obtained in step S1 is specifically:

[0015] The parking lock communicates with the parking management system in the cloud server via the GPRS communication protocol;

[0016] The parking management system saves the transmission log data between the parking lock and the parking space lock in the database of the cloud server;

[0017] Get the transmission log data of each parking lock in the cloud server database.

[0018] Furthermore, the daily usage frequency of each parking lock in the transmission log data in step S2 is specifically as follows: the daily usage frequency of each parking lock is determined according to the number of function codes corresponding to the on or off instructions for the parking lock in the transmission log data.

[0019] Furthermore, the trend change value of the usage frequency of each parking lock analyzed in step S2 is specifically:

[0020] According to the daily usage frequency of each parking lock, a daily usage frequency fluctuation curve of each parking lock is obtained, and a fitting curve corresponding to the frequency fluctuation curve is obtained using a polynomial fitting method;

[0021] Obtain all extreme value points of the fitting curve corresponding to the frequency fluctuation curve, and the fitting curve between two adjacent extreme value points constitutes a sub-curve segment;

[0022] Determine the positive trend change value of the usage frequency of each parking lock according to the number of sub-curve segments of the positive trend in the usage frequency fitting curve of each parking lock, the array composed of the minimum value and the maximum value of each sub-curve segment of the positive trend, and the maximum value point in each sub-curve segment of the positive trend;

[0023] Determine the negative trend change value of the usage frequency of each parking lock according to the number of sub-curve segments with a negative trend in the usage frequency fitting curve of each parking lock, an array consisting of the minimum value and the maximum value of each sub-curve segment with a negative trend, and the maximum value point in each sub-curve segment with a negative trend;

[0024] The positive trend change value and the negative trend change value of the usage frequency of each parking lock are compared, and the larger value is used as the trend change value of the corresponding parking lock.

[0025] Furthermore, in step S3, the greater the ratio of a usage frequency of the parking lock to the number of all usage frequencies of the parking lock, the greater the actual value of the usage frequency of the parking lock.

[0026] Furthermore, in step S4, the greater the trend change value of the usage frequency of the parking lock and the greater the actual value of the usage frequency, the greater the degree of usage of the parking lock.

[0027] Furthermore, in step S5, the shorter the transmission time of a command information is and the smaller the difference between the timestamps of two adjacent commands is, the smaller the transmission cost of the command information corresponding to the parking space lock is.

[0028] Furthermore, in step S6, when the transmission cost of the instruction information of a parking lock is smaller and the usage degree of each parking lock is higher, the timing polling value corresponding to the parking lock is smaller.

[0029] In a second aspect, a parking lock instruction information transmission system is provided, the system comprising:

[0030] A data acquisition module is used to obtain the transmission log data of each parking lock from the database of the cloud server;

[0031] A usage frequency trend change acquisition module: used to analyze the usage frequency trend change value of each parking lock according to the daily usage frequency of each parking lock in the transmission log data;

[0032] A usage frequency real value acquisition module: used to obtain the usage frequency real value of each parking lock according to the value of each usage frequency of each parking lock and the number of all usage frequencies of each parking lock in the transmission log data;

[0033] The usage degree acquisition module is used to obtain the usage degree of each parking lock according to the trend change value of the usage frequency of each parking lock, the actual value of the usage frequency of each parking lock, and the number of all parking locks;

[0034] Instruction information transmission cost acquisition module: obtains the transmission cost of the instruction information of each parking lock according to the transmission time of each instruction information of each parking lock, the timestamp of each instruction, and the number of all historical instructions transmitted;

[0035] The timing polling value acquisition module obtains the timing polling value of each parking lock according to the transmission cost of the instruction information of each parking lock, the degree of use of each parking lock, and the preset minimum timing polling value and maximum timing polling value.

[0036] The present invention has the following beneficial effects: it can ensure the stability of the parking lock instruction information transmission process while reducing resource consumption, avoiding unnecessary loss of the life of unused parking locks, and thus increasing the life of the parking locks. First, the transmission log data of each parking lock in the database of the cloud server is obtained; according to the daily usage frequency of each parking lock in the transmission log data, the trend change value of the usage frequency of each parking lock is analyzed; according to the value of each usage frequency of each parking lock in the transmission log data and the number of all usage frequencies of each parking lock, the real value of the usage frequency of each parking lock is obtained; then, according to the trend change value of the usage frequency of each parking lock, the real value of the usage frequency of each parking lock, and the number of all parking locks, the degree of use of each parking lock is obtained; according to the transmission time of each instruction information of each parking lock, the timestamp of each instruction, and the number of all historical instructions transmitted, the transmission cost of the instruction information of each parking lock is obtained; according to the transmission cost of the instruction information of each parking lock, the usage degree of each parking lock and the preset minimum timing polling value and maximum timing polling value, the timing polling value of each parking lock is obtained; finally, the status of each parking lock is queried according to the timing polling value of each parking lock. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0038] Figure 1 A flow chart of a parking lock instruction information transmission method provided by an embodiment of the present invention.

[0039] Figure 2A block diagram of a parking lock instruction information transmission system provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0040] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of a parking lock command information transmission method and system proposed by the present invention, its specific implementation method, structure, features and effects, in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. Unless otherwise defined, all technical and scientific terms used in this article have the same meaning as those commonly understood by technicians in the technical field of the present invention.

[0041] The scenario targeted by the present invention is that in addition to passively receiving the status updates of parking locks, the parking management system also adopts a timed polling mechanism to query the status of each parking lock. This mechanism ensures that even if the parking lock fails to report the status change in time, the cloud server can obtain the latest occupancy information of all parking locks through regular queries.

[0042] The specific scheme of a parking lock command information transmission method and system provided by the present invention is described in detail below with reference to the accompanying drawings.

[0043] First, see Figure 1 , which shows a flow chart of a parking lock instruction information transmission method provided by an embodiment of the present invention, the method comprising the following steps:

[0044] Step S1: Obtain the transmission log data of each parking lock in the database of the cloud server.

[0045] The smart parking lock system generally includes user terminals, various smart parking locks, and cloud servers. The smart parking locks and the parking management system in the cloud server communicate through the GPRS communication protocol. The user terminal interacts with the parking management software in the cloud server through the Internet. The parking management system interacts with the user through its own parking management software or third-party calling software. All data interacted with the parking management system is stored in the database of the cloud server.

[0046] Specifically, the transmission log data in step S1 includes the source information, destination information, timestamp, function code, and transmission time of each transmission process. For example, the source information and destination information are respectively the cloud server and the parking lock. For another example, the function code can be 01, 02, 03, 04, 05, 06, 07, 08, 09, 0A, 11, 12, 13, 14, 14, 16, 17, 18, 19, 1A, which represent different functions respectively, such as 01 represents the parking lock function for taxis, 02 represents the parking lock closing function, 03 represents the rental permission function, 04 represents the rental prohibition function, 05 represents the function of checking whether there is a car currently, 06 represents the function of checking the parking lock status, and 07 represents the function of checking the parking lock status. Rental status function, 08 represents the rental time query function, 09 represents the car has left upload function, 0A represents the parking lock sends a heartbeat packet to the server, 11 represents the parking lock is open function, 12 represents the parking lock is closed function, 13 represents the rental is allowed, 14 represents the rental is prohibited, 15 represents the function of replying whether there is a car, 16 represents the function of replying the parking lock status, 17 represents the function of replying the rental status, 18 represents the function of replying the rental time, 19 represents the function of receiving the car has left and starting the settlement, 1A represents the server returns the heartbeat packet function.

[0047] Furthermore, in step S1, the transmission log data of each parking lock in the database of the cloud server is obtained specifically as follows: the parking lock communicates with the parking management system in the cloud server via the GPRS communication protocol; the parking management system saves the transmission log data between the parking lock and the parking lock in the database of the cloud server; and the transmission log data of each parking lock in the database of the cloud server is obtained.

[0048] Specifically, the transmission log data of each parking lock in history is obtained through the database. Assuming there are I parking locks in total, each parking lock obtains M days of transmission log data. The transmission log data stores the source information, destination information, timestamp, function code, transmission time and other information in each transmission process.

[0049] Step S2: Analyze the trend change value of the usage frequency of each parking lock according to the daily usage frequency of each parking lock in the transmission log data.

[0050] The specific usage frequency of each parking lock per day in the transmission log data is as follows: the usage frequency of each parking lock per day is determined according to the number of function codes corresponding to the on or off instructions for the parking lock in the transmission log data. In the transmission log data of each parking lock, the corresponding function code is saved during each transmission process, and function code 01 and function code 02 respectively represent the on / off instructions of the parking lock. Therefore, the number of function codes 01 or 02 in the historical transmission log of each parking lock is first counted (each opening operation of the parking lock corresponds to a closing operation, and the present invention takes the number of function codes 01) to determine the frequency of each parking lock being used per day. Then, the usage frequency of each parking lock per day can be obtained.

[0051] Further, the trend change value of the usage frequency of each parking lock is analyzed in step S2 as follows: according to the daily usage frequency of each parking lock, a daily usage frequency fluctuation curve of each parking lock is obtained, and a fitting curve corresponding to the frequency fluctuation curve is obtained by using a polynomial fitting method; all extreme value points of the fitting curve corresponding to the frequency fluctuation curve are obtained, and the fitting curve between two adjacent extreme value points constitutes a sub-curve segment; according to the number of sub-curve segments with positive trends in the usage frequency fitting curve of each parking lock, an array composed of the minimum and maximum values ​​of each sub-curve segment with positive trends, and a maximum value point in each sub-curve segment with positive trends, a positive trend change value of the usage frequency of each parking lock is determined; according to the number of sub-curve segments with negative trends in the usage frequency fitting curve of each parking lock, an array composed of the minimum and maximum values ​​of each sub-curve segment with negative trends, and a maximum value point in each sub-curve segment with negative trends, a negative trend change value of the usage frequency of each parking lock is determined; and the positive trend change value and the negative trend change value of the usage frequency of each parking lock are compared, and the larger value is used as the trend change value of the corresponding parking lock.

[0052] Specifically, for the i-th parking lock, its daily usage frequency fluctuation curve can be obtained. Since the fitting curve can better represent the overall change trend of the data, the polynomial fitting method is used to obtain the fitting curve corresponding to the frequency fluctuation curve, and the Newton method is used to obtain all the extreme points on the fitting curve, where the first and last data on the fitting curve are defaulted as extreme points. Then, two extreme points constitute a sub-curve segment, and the change trends of adjacent sub-curve segments are opposite. Therefore, the trend change value of the usage frequency of the i-th parking lock is determined by analyzing the trend change of the sub-curve segments with the same change trend (where the slope of the sub-curve segment is positive, indicating a positive trend, and the slope of the sub-curve is negative, indicating a negative trend).

[0053] In this embodiment, taking all sub-curve segments with positive slopes as an example, the formula for constructing the positive trend change value of the i-th parking lock is as follows:

[0054] ;

[0055] in, represents the positive trend change value of the i-th parking lock, represents the number of sub-curve segments with a positive trend in the frequency fitting curve of the i-th parking lock, b represents the b-th sub-curve segment with a positive trend, Represents an array of minimum and maximum values ​​of the sub-segment that constitutes the b-th positive trend. Represents an array of minimum and maximum values ​​of the sub-segment that constitutes the b+1th positive trend. represents the Euclidean distance, Represents the maximum point in the sub-curve segment of the b-th positive trend, Represents the maximum point in the sub-curve segment of the b+1th positive trend, Represents a symbolic function.

[0056] In the above formula for the positive trend change value of the i-th parking lock, The larger the value of is, the greater the distance between the extreme point arrays of the two sub-curves is, and the greater the trend change of the corresponding b-th positive trend sub-curve segment and the b+1-th positive trend sub-curve segment is. The value of is positive, indicating that the positive change trend of the two sub-curve segments is increasing. Furthermore, the greater the trend change degree of the two adjacent sub-curve segments with positive trends, the greater the positive change trend of the two sub-curve segments is. The larger the value of , the greater the positive trend change value of the i-th parking lock.

[0057] Similarly, according to the number of sub-curve segments with negative trends in the usage frequency fitting curve of each parking lock, the array composed of the minimum and maximum values ​​of each sub-curve segment with negative trends, and the maximum value point in each sub-curve segment with negative trends, the negative trend change value of the usage frequency of each parking lock is determined, that is, the negative trend change value of the i-th parking lock is calculated according to the above method. It should be further explained that when calculating the negative trend change value of the i-th parking lock When becomes .

[0058] Then, compare the positive trend change value and negative trend change value of the usage frequency of each parking lock, that is, compare and The larger value is taken as the trend change value of the corresponding parking lock. In this way, the trend change value of the usage frequency of each parking lock is obtained.

[0059] Step S3: obtaining a true value of the usage frequency of each parking lock according to the value of each usage frequency of each parking lock and the number of all usage frequencies of each parking lock in the transmission log data.

[0060] For the i-th parking lock, it has a total of M usage frequency values. Since the usage frequency value closer to the current moment has a greater reference to the subsequent usage frequency, further, when the ratio of a usage frequency on the parking lock to the number of all usage frequencies on the parking lock is larger, it means that the usage frequency of the parking lock is closer to the current moment, the corresponding usage frequency value at this moment can better represent the subsequent usage frequency value, and the actual usage frequency value of the parking lock is larger.

[0061] In this embodiment, the mathematical formula corresponding to the actual value of the usage frequency of the i-th parking lock is constructed as follows:

[0062] ;

[0063] Among them, j represents the jth usage frequency, represents the actual value of the usage frequency of the i-th parking lock, represents the value of the jth usage frequency of the i-th parking lock, represents the number of all usage frequencies of the i-th parking lock, Represents the normalization function.

[0064] In the mathematical formula corresponding to the actual value of the usage frequency of the i-th parking lock, express The weight of The larger the value is, the closer the j-th usage frequency of the i-th parking lock is to the current moment. The corresponding usage frequency value at this moment can better represent the subsequent usage frequency value. The corresponding actual usage frequency value of the i-th parking lock is The larger, that is, The larger the value of , the greater the actual value of the usage frequency of the i-th parking lock.

[0065] According to the above method, the trend change value and the actual value of the usage frequency of the i-th parking lock can be calculated. When the trend change value of the i-th parking lock is larger and the actual value of the usage frequency is larger, it means that the trend of the i-th parking lock is more positive and the usage frequency is larger, and the corresponding i-th parking lock is more used. Therefore, this implementation further proposes the following steps.

[0066] Step S4: Obtain the usage degree of each parking lock according to the trend change value of the usage frequency of each parking lock, the actual value of the usage frequency of each parking lock, and the number of all parking locks.

[0067] Furthermore, the greater the trend change value of the usage frequency of the parking lock and the greater the actual value of the usage frequency, the greater the degree to which the parking lock is used.

[0068] In this embodiment, the mathematical formula corresponding to the usage degree of the i-th parking lock is constructed as follows:

[0069] ;

[0070] in, Indicates the usage degree of the i-th parking lock, represents the actual value of the usage frequency of the i-th parking lock, represents the actual value of the usage frequency of the kth parking lock, It represents the trend change value of the usage frequency of the i-th parking lock, or it can be the fluctuating contingency of the usage frequency of the i-th parking lock. It indicates the trend change value of the usage frequency of the k-th parking lock, or it can be the fluctuating contingency of the usage frequency of the k-th parking lock. Indicates the number of all parking locks, Represents the normalization function.

[0071] In the above-mentioned calculation formula for the usage degree of the i-th parking lock, the greater the proportion of the trend change value of the usage frequency of a parking lock in the sum of the trend change values ​​of the usage frequencies of all parking locks, the higher the usage degree of the parking lock; similarly, the greater the proportion of the trend change value of the usage frequency of a parking lock in the sum of the trend change values ​​of the usage frequencies of all parking locks, the higher the usage degree of the parking lock.

[0072] Step S5: according to the transmission time of each instruction information of each parking lock, the timestamp of each instruction, and the number of all historical instructions transmitted, the transmission cost of the instruction information of each parking lock is obtained.

[0073] Furthermore, the shorter the transmission time of a command information is and the smaller the difference between the timestamps of two adjacent commands is, the smaller the transmission cost of the command information corresponding to the parking space lock is.

[0074] In this embodiment, the main purpose of this step is to determine the transmission cost of each parking lock. The higher the transmission cost, the longer the time required for the corresponding parking lock in the transmission process. The corresponding parking lock is located in an area where there are problems such as poor network communication signals. Therefore, when the parking lock is used to a certain extent, the corresponding timing polling value should be smaller, so as to avoid communication congestion as much as possible, and further avoid the situation where the instructions of function code 01 or function code 02 are not executed in time. Therefore, the transmission cost of each parking lock is first determined according to the changes in the timestamp and transmission time of the transmission log data.

[0075] In this implementation, the mathematical formula corresponding to the transmission cost of constructing the instruction information of the i-th parking lock is as follows:

[0076] ;

[0077] in, represents the transmission cost of the instruction information of the i-th parking lock, represents the number of all historical instructions transmitted by the i-th parking lock, Indicates the transmission time of the nth instruction information; Indicates the timestamp of the nth instruction, indicating the start time of the nth instruction; The timestamp of the n+1th instruction indicates the start time of the n+1th instruction; Indicates shared The timestamps of adjacent instructions.

[0078] In the above formula for calculating the transmission cost of the instruction information of the i-th parking lock, The smaller the value of, the shorter the transmission time of the command information of the i-th parking lock. The smaller the value of , the higher the density between the instructions of the i-th parking lock. Therefore, the transmission time of the instruction information of the i-th parking lock is shorter and the execution of the instructions is more intensive. Therefore, the transmission cost of the instruction information of the corresponding i-th parking lock is smaller.

[0079] Step S6: Obtain the timed polling value of each parking lock according to the transmission cost of the instruction information of each parking lock, the usage degree of each parking lock, and the preset minimum timed polling value and maximum timed polling value.

[0080] Furthermore, when the transmission cost of the instruction information of a parking lock is smaller and the utilization degree of each parking lock is higher, the timing polling value corresponding to the parking lock is smaller.

[0081] After calculating the transmission cost of each parking lock in the above steps, it needs to be combined with the degree of use of each parking lock. When the transmission cost of the parking lock is smaller and the degree of use of the parking lock is higher, the corresponding timed polling value should be smaller, and the smaller the timed polling value is, the higher the polling frequency is.

[0082] In this embodiment, the mathematical formula corresponding to the timed polling value of the i-th parking lock is constructed as follows:

[0083] ;

[0084] in, represents the timed polling value of the i-th parking lock, represents the transmission cost of the instruction information of the i-th parking lock, Indicates the usage degree of the i-th parking lock, is the preset minimum periodic polling value, Indicates the preset maximum periodic polling value.

[0085] In the mathematical formula corresponding to the timed polling value of the i-th parking lock, The smaller the value of is, the smaller the transmission cost of the i-th parking lock is, and the smaller the corresponding timing polling value of the i-th parking lock is; The larger the value, the more the i-th parking lock is used, and the smaller the corresponding i-th parking lock timing polling value is. The preset maximum timing polling value is used. After deducting the preset polling value range and considering the transmission cost of the parking lock and the degree of use of the parking lock, that is, , then the timing polling value of the i-th parking lock is obtained.

[0086] Step S7: query the status of each parking lock according to the timing polling value of each parking lock.

[0087] In this embodiment, the timed polling value of each parking lock can be calculated according to the above steps 1 to 6. In the subsequent process of transmitting command information between the parking lock and the parking management system in the cloud server, the status of each parking lock is queried according to the timed polling value of each parking lock, thereby reducing the consumption of system resources while ensuring the transmission stability during the entire transmission process, and further avoiding affecting the life of the parking lock.

[0088] In the second aspect, this embodiment provides a parking lock instruction information transmission system, see Figure 2 , which shows a block diagram of a parking lock instruction information transmission system provided by an embodiment of the present invention, the system comprising:

[0089] The data acquisition module 101 is used to obtain the transmission log data of each parking lock from the database of the cloud server;

[0090] The usage frequency trend change acquisition module 102 is used to analyze the usage frequency trend change value of each parking lock according to the daily usage frequency of each parking lock in the transmission log data;

[0091] The usage frequency real value acquisition module 103 is used to obtain the usage frequency real value of each parking lock according to the value of each usage frequency of each parking lock and the number of all usage frequencies of each parking lock in the transmission log data;

[0092] The usage degree acquisition module 104 is used to obtain the usage degree of each parking lock according to the trend change value of the usage frequency of each parking lock, the actual value of the usage frequency of each parking lock, and the number of all parking locks;

[0093] The instruction information transmission cost acquisition module 105: obtains the transmission cost of the instruction information of each parking lock according to the transmission time of each instruction information of each parking lock, the timestamp of each instruction, and the number of all historical instructions transmitted;

[0094] The timing polling value acquisition module 106 acquires the timing polling value of each parking lock according to the transmission cost of the instruction information of each parking lock, the usage degree of each parking lock, and the preset minimum timing polling value and maximum timing polling value.

[0095] The present embodiment provides a method and system for transmitting parking lock instruction information. First, the transmission log data of each parking lock in the database of the cloud server is obtained; according to the daily usage frequency of each parking lock in the transmission log data, the trend change value of the usage frequency of each parking lock is analyzed; according to the value of each usage frequency of each parking lock in the transmission log data and the number of all usage frequencies of each parking lock, the actual value of the usage frequency of each parking lock is obtained; then, according to the trend change value of the usage frequency of each parking lock, the actual value of the usage frequency of each parking lock, and the number of all parking locks, the degree of use of each parking lock is obtained; according to the transmission time of each instruction information of each parking lock, the timestamp of each instruction, and the number of all historical instructions transmitted, the transmission cost of the instruction information of each parking lock is obtained; according to the transmission cost of the instruction information of each parking lock, the degree of use of each parking lock, and the preset minimum timed polling value and maximum timed polling value, the timed polling value of each parking lock is obtained; finally, the status of each parking lock is queried according to the timed polling value of each parking lock. Ultimately, the stability of the parking lock instruction information transmission process can be guaranteed while reducing resource consumption, avoiding unnecessary loss of the life of unused parking locks, thereby increasing the life of the parking locks.

[0096] It should be noted that the sequence of the above embodiments of the present invention is only for description and does not represent the advantages and disadvantages of the embodiments. The processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0097] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A method for transmitting parking lock instruction information, characterized in that: The method comprises: Step S1: Obtain the transmission log data of each parking lock in the database of the cloud server; Step S2: analyzing the trend change value of the usage frequency of each parking lock according to the daily usage frequency of each parking lock in the transmission log data; Step S3: obtaining a real value of the usage frequency of each parking lock according to the value of each usage frequency of each parking lock and the number of all usage frequencies of each parking lock in the transmission log data; Step S4: Obtaining the usage degree of each parking lock according to the trend change value of the usage frequency of each parking lock, the actual value of the usage frequency of each parking lock, and the number of all parking locks; Step S5: According to the transmission time of each instruction information of each parking lock, the timestamp of each instruction, and the number of all historical instructions transmitted, the transmission cost of the instruction information of each parking lock is obtained, which specifically includes: Among them, ρ i represents the transmission cost of the command information of the i-th parking lock, N represents the number of all historical commands transmitted by the i-th parking lock, T n Indicates the transmission time of the nth instruction information; t n Indicates the timestamp of the nth instruction, indicating the start time of the nth instruction; t n+1 The timestamp of the n+1th instruction indicates the start time of the n+1th instruction; N-1 indicates that there are a total of N-1 timestamps of adjacent instructions; Step S6: Obtaining the timed polling value of each parking lock according to the transmission cost of the instruction information of each parking lock, the degree of use of each parking lock, and the preset minimum timed polling value and maximum timed polling value, specifically including: Among them, λ i represents the timed polling value of the i-th parking lock, ρ i represents the transmission cost of the instruction information of the i-th parking lock, β i Indicates the usage degree of the i-th parking lock, L min is the preset minimum periodic polling value, L max Indicates the preset maximum timed polling value; Step S7: query the status of each parking lock according to the timing polling value of each parking lock.

2. A parking lock instruction information transmission method according to claim 1, characterized in that: The transmission log data in step S1 includes source information, destination information, timestamp, function code, and transmission time during each transmission process.

3. A parking lock instruction information transmission method according to claim 2, characterized in that: The transmission log data of each parking lock in the database of the cloud server obtained in step S1 is specifically: The parking lock communicates with the parking management system in the cloud server via the GPRS communication protocol; The parking management system saves the transmission log data between the parking lock and the parking space lock in the database of the cloud server; Get the transmission log data of each parking lock in the cloud server database.

4. A method for transmitting parking lock instruction information according to claim 1, characterized in that: The step S2 specifically includes determining the daily usage frequency of each parking lock according to the daily usage frequency of each parking lock in the transmission log data: determining the daily usage frequency of each parking lock according to the number of function codes corresponding to the on or off instructions for the parking lock in the transmission log data.

5. A method for transmitting parking lock instruction information according to claim 4, characterized in that: The trend change value of the usage frequency of each parking lock analyzed in step S2 is specifically: According to the daily usage frequency of each parking lock, a daily usage frequency fluctuation curve of each parking lock is obtained, and a fitting curve corresponding to the frequency fluctuation curve is obtained using a polynomial fitting method; Obtain all extreme value points of the fitting curve corresponding to the frequency fluctuation curve, and the fitting curve between two adjacent extreme value points constitutes a sub-curve segment; Determine the positive trend change value of the usage frequency of each parking lock according to the number of sub-curve segments of the positive trend in the usage frequency fitting curve of each parking lock, the array composed of the minimum value and the maximum value of each sub-curve segment of the positive trend, and the maximum value point in each sub-curve segment of the positive trend; Determine the negative trend change value of the usage frequency of each parking lock according to the number of sub-curve segments with a negative trend in the usage frequency fitting curve of each parking lock, an array consisting of the minimum value and the maximum value of each sub-curve segment with a negative trend, and the maximum value point in each sub-curve segment with a negative trend; The positive trend change value and the negative trend change value of the usage frequency of each parking lock are compared, and the largest value between the positive trend change value and the negative trend change value is used as the trend change value of the corresponding parking lock.

6. A method for transmitting parking lock instruction information according to claim 1, characterized in that: In step S3, the greater the ratio of a usage frequency of the parking lock to the number of all usage frequencies of the parking lock, the greater the actual value of the usage frequency of the parking lock.

7. A method for transmitting parking lock instruction information according to claim 1, characterized in that: In step S4, the greater the trend change value of the usage frequency of the parking lock and the greater the actual value of the usage frequency, the greater the degree of usage of the parking lock.

8. A parking lock instruction information transmission system, characterized in that: The system comprises: A data acquisition module is used to obtain the transmission log data of each parking lock from the database of the cloud server; A usage frequency trend change acquisition module: used to analyze the usage frequency trend change value of each parking lock according to the daily usage frequency of each parking lock in the transmission log data; A usage frequency real value acquisition module: used to obtain the usage frequency real value of each parking lock according to the value of each usage frequency of each parking lock and the number of all usage frequencies of each parking lock in the transmission log data; The usage degree acquisition module is used to obtain the usage degree of each parking lock according to the trend change value of the usage frequency of each parking lock, the actual value of the usage frequency of each parking lock, and the number of all parking locks; The instruction information transmission cost acquisition module obtains the transmission cost of the instruction information of each parking lock according to the transmission time of each instruction information of each parking lock, the timestamp of each instruction, and the number of all historical instructions transmitted, including: Among them, ρ i represents the transmission cost of the command information of the i-th parking lock, N represents the number of all historical commands transmitted by the i-th parking lock, T n Indicates the transmission time of the nth instruction information; t n Indicates the timestamp of the nth instruction, indicating the start time of the nth instruction; t n+1 The timestamp of the n+1th instruction indicates the start time of the n+1th instruction; N-1 indicates that there are a total of N-1 timestamps of adjacent instructions; The timing polling value acquisition module obtains the timing polling value of each parking lock according to the transmission cost of the instruction information of each parking lock, the degree of use of each parking lock, and the preset minimum timing polling value and maximum timing polling value, specifically including: Among them, λ i represents the timed polling value of the i-th parking lock, ρ i represents the transmission cost of the instruction information of the i-th parking lock, β i Indicates the degree of use of the i-th parking lock, L min is the preset minimum periodic polling value, L max Indicates the preset maximum periodic polling value.