CN105843655B - A kind of jamproof geomagnetic parking stall detector program wireless downloading update method - Google Patents

A kind of jamproof geomagnetic parking stall detector program wireless downloading update method Download PDF

Info

Publication number
CN105843655B
CN105843655B CN201610255139.XA CN201610255139A CN105843655B CN 105843655 B CN105843655 B CN 105843655B CN 201610255139 A CN201610255139 A CN 201610255139A CN 105843655 B CN105843655 B CN 105843655B
Authority
CN
China
Prior art keywords
message
private mark
detector
program
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610255139.XA
Other languages
Chinese (zh)
Other versions
CN105843655A (en
Inventor
谢斌
王维锋
董学武
季锦章
周云城
万剑
谭挺
党倩
Original Assignee
Design Group Ltd By Share Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Design Group Ltd By Share Ltd filed Critical Design Group Ltd By Share Ltd
Priority to CN201610255139.XA priority Critical patent/CN105843655B/en
Publication of CN105843655A publication Critical patent/CN105843655A/en
Application granted granted Critical
Publication of CN105843655B publication Critical patent/CN105843655B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Abstract

The invention discloses a kind of jamproof geomagnetic parking stall detector program wireless downloading update methods, utilize the cordless communication network between the existing parking lot server in parking lot and parking space detector, writing to each other between server and the newer detector of needs is established, is uniformly denoted as II class messages for the newer message of program wireless downloading between the two;II classes message between server and object detector passes through private mark processing and the parsing of anti-private mark;It is handled by private mark, makes II classes message and without newer detector(" non-targeted detector ")The parking space information message of upload(" I classes message ")Character range is not intersected, and avoiding the II classes message of object detector from obscuring with non-targeted detector I class messages leads to download update failure.The newer anti-interference ability of program wireless downloading and the more newly downloaded cost of reduction parking field detector program can be improved.

Description

A kind of jamproof geomagnetic parking stall detector program wireless downloading update method
Technical field
The present invention relates to a kind of jamproof geomagnetic parking stall detector program wireless downloading update methods, serve primarily in ground The update of magnetic parking space detector program, belongs to geomagnetic parking stall detection technique field.
Background technology
Currently, the scale of urban parking area is increasing, parking lot establish parking lot server and geomagnetism detecting device it Between communication network.Geomagnetism detecting device generally can non-maintaining work 3-5 years as long as using low energy consumption operation mode.It is detecting In the life cycle of device, generally requires and update is downloaded to detector program.It has invented herein and a kind of having utilized server and The communication network of construction to object detector into the newer method of line program wireless downloading, it is not necessary that the detector is torn open from parking stall Under, improve update efficiency.Meanwhile the program down loading updating of object detector can when non-targeted detector is worked normally into Row ensures to carry out, by batch program update, reducing update cost to geomagnetism detecting device in the case of the normal operation of parking lot.
Actual conditions are that the communication of server and detector generally uses same frequency range, if program wireless downloading updates Also it uses the frequency range, the I class messages that will produce non-targeted detector to be received by object detector, update is caused to fail.Especially It is extensive in the newer program file character distribution of download, is easy to obscure with the I class messages of non-targeted detector, unsuitable area Point.If wireless downloading update uses other frequency ranges, all devices in the communication link of parking lot to be required to change frequency range Setting, non-targeted detector can not upload I class messages, parking lot caused to will be unable to normal operation.Therefore one kind has been invented herein New program wireless downloading updates agreement, under the premise of not being modified to the working frequency of detector, excludes I class messages, Screening obtains II class messages.
Invention content
Purpose:In order to overcome the deficiencies in the prior art, the present invention to provide a kind of jamproof geomagnetic parking stall detection Device program wireless downloading update method avoids normal work during newer into line program wireless downloading to object detector The non-targeted detector made generates interference when carrying out the publication of I class messages using same frequency range, to current renewal process.It is known The program file character range that server is sent is extensive, should not be distinguished with I classes message, needs to ensure journey using certain agreement grammer The intersection of character distributed area and I class message character distributed areas is sky in preface part.In order to improve program down loading updating process Efficiency, communication of the present invention between server and object detector, has all carried out private mark processing and anti-private mark is parsed Journey improves the accuracy rate and efficiency of II class message filters.
Technical solution:In order to solve the above technical problems, the technical solution adopted by the present invention is:
A kind of jamproof geomagnetic parking stall detector program wireless downloading update method, it is characterised in that:Server and mesh It marks the update of detector program wireless downloading and uses synchronous communication mode, include the following steps:
Step 1. server generates and downloads bind command message, carries out private mark processing and continuous several times are sent;
Step 2. object detector is received, is screened, anti-private mark is resolved to after downloading bind command message and being verified, with Server establishes communication connection, generates the message that waits for downloads, carries out private mark processing and continuous several times are sent;
Step 3. server receives, screening, the parsing of anti-private mark obtain wait for downloads message and after being verified by a fixed number The program file data generator file download data message of amount, and sent after carrying out private mark processing;
Step 4. object detector screens the message received within the stand-by period, isolates non-targeted detector I class messages, obtain by private mark processing program file downloading data message;Object detector passes through private mark to what is received The program file downloading data message of processing carries out anti-private mark parsing;Object detector verifies the message after parsing, tests Card, which is successfully generated, receives downloading data success message, otherwise generates and receives downloading data failure message, is sent out after carrying out private mark processing It send;
Step 5. server screens the message received in waiting response time, the parsing of anti-private mark obtains target The reception downloading data response message that detector is sent;If it is downloading data success message is received, selection is executed to be examined to target It surveys device to generate lower a data message and carry out private mark processing and send, otherwise retransmits a message;If program file is sent out Send and finish, and receive object detector transmission reception downloading data success message, generate program update command message, into It is sent after the processing of row private mark;
Step 6. object detector is received, is screened, anti-private mark is resolved to server message and is verified;If it is program File download data message executes step 4;Command message is updated if it is program, uses all program file numbers downloaded According to update existing program, generation is updated successfully message after the completion of upgrading, private mark is handled and continuous several times are sent, automatically into work Parameter configuration mode.
Preferably, the jamproof geomagnetic parking stall detector program wireless downloading update method, feature It is:In step 1 to step 6, server and object detector are during program wireless downloading is newer, the message that receives Including I classes message and II class messages, the character in all 128 to 255 ranges of I class messages is set in advance;
In order to ensure the quick screening of II class messages, while I classes message being avoided to generate interference to program file downloading data, II class messages are generated first, in accordance with the message format of setting, is handled later by private mark and II class message characters is completely converted into 0 Into 127 ranges.
Preferably, the jamproof geomagnetic parking stall detector program wireless downloading update method, feature It is, in step 1 to step 6, server in the message received, is sieved according to character range first with object detector Choosing obtains II class messages, then carries out anti-private mark parsing reduction to the II class messages of acquisition and verify;Anti- private mark parses conduct The inverse operation of private mark processing, converts II class message of the character range in 0 to 127 ranges to original message, to realize target Detector program is wirelessly more newly downloaded.
Advantageous effect:Jamproof geomagnetic parking stall detector program wireless downloading update method provided by the invention utilizes The existing parking lot server in parking lot(Hereinafter referred to as " server ")Cordless communication network between parking space detector is established Server and the newer detector of needs(Hereinafter referred to as " object detector ")Between write to each other, between the two be used for program The newer message of wireless downloading is uniformly denoted as II class messages;II classes message between server and object detector passes through private mark Processing and the parsing of anti-private mark;It is handled by private mark, makes II classes message and without newer detector(It is hereinafter referred to as " non-targeted Detector ")The parking space information message of upload(Hereinafter referred to as " I classes message ")Character range is not intersected, and object detector is avoided II classes message and non-targeted detector I class messages obscure and lead to download update failure.The update of program wireless downloading can be improved Anti-interference ability and reduce the more newly downloaded cost of parking field detector program.
It has the following advantages:(1) utilizes the wireless communication between the existing server in parking lot and geomagnetic parking stall detector Network carries out wireless downloading update to geomagnetism detecting device and has been saved under detector program without removing detector from parking stall Carry newer human cost;(2) ensure large parking lot uninterruptedly run in the case of, realize detector by batch update, Without being interfered by other normal work detectors, the newer effect of detector program is improved while reducing upgrade cost Rate;(3) parking lot that the detector program of mono- version of can not possibly be different suitable for all environmental conditions;With social economy Continuous development, new model continues to bring out, and the detector program of legacy version may not be suitable for the new situation occurred.This hair The bright wireless downloading update that parking field detector program may be implemented, the parking of new situation and varying environment condition for appearance Field update detector program, is convenient for the marketing application of geomagnetic parking stall detector.
Description of the drawings
Fig. 1 is that parking field detector program wireless downloading updates system construction drawing;
Fig. 2 is program wireless downloading renewal process schematic diagram;
Fig. 3 is that server carries out private mark Processing Algorithm schematic diagram to former message;
Fig. 4 is that object detector carries out anti-private mark analytical algorithm schematic diagram to the message that private mark is handled.
Specific implementation mode
The present invention is further described with reference to specific embodiment.
As shown in Figure 1 to Figure 2, a kind of jamproof geomagnetic parking stall detector program wireless downloading update method, including such as Lower step:As shown in Figure 2, wherein I represents I class messages to communication process principle therein, and II represents II class messages:
Step 1. server generates and downloads bind command message, carries out private mark processing and continuous several times are sent;
Step 2. object detector is received, is screened, anti-private mark is resolved to after downloading bind command message and being verified, with Server establishes communication connection, generates the message that waits for downloads, carries out private mark processing and continuous several times are sent;
Step 3. server receives, screening, the parsing of anti-private mark obtain wait for downloads message and after being verified by a fixed number The program file data generator file download data message of amount, and sent after carrying out private mark processing;
Step 4. object detector screens the message received within the stand-by period, isolates non-targeted detector I class messages, obtain by private mark processing program file downloading data message.Object detector passes through private mark to what is received The program file downloading data message of processing carries out anti-private mark parsing.Object detector verifies the message after parsing, tests Card, which is successfully generated, receives downloading data success message, otherwise generates and receives downloading data failure message, is sent out after carrying out private mark processing It send;
Step 5. server screens the message received in waiting response time, the parsing of anti-private mark obtains target The reception downloading data response message that detector is sent.If it is downloading data success message is received, selection is executed to be examined to target It surveys device to generate lower a data message and carry out private mark processing and send, otherwise retransmits a message.If program file is sent out Send and finish, and receive object detector transmission reception downloading data success message, generate program update command message, into It is sent after the processing of row private mark;
Step 6. object detector is received, is screened, anti-private mark is resolved to server message and is verified.If it is journey Preface part downloading data message executes step 4.Command message is updated if it is program, uses all program files downloaded Data update existing program, generation is updated successfully message after the completion of upgrading, simultaneously continuous several times are sent for private mark processing, automatically into work Make parameter configuration mode.
In the step 1 to step 6, it is involved in the problems, such as that the processing of message private mark is parsed with anti-private mark, here by will be according to The II class messages that the message format of setting generates(Hereinafter referred to as " former message ")Character is split, every time 6 compositions one of extraction Character in former message is split the II classes for the character expression that combination producing is entirely located in 0 to 127 ranges by a new byte Message(Hereinafter referred to as " private mark message ").In the I classes message content of design all in the case of 127 or more, you can difference two Person.
In the step 1 and step 6, the algorithm description of private mark processing is as follows:
Using by every 6 segmentations of former message character once, the private mark message length of generation on the one hand can be limited, is improved more New speed;On the other hand, algorithm design is simple and practicable.When being split to former message, 6 two are extracted every time in former message System position forms low 6 of a new byte.Later in high 2 additions 0 of new byte, 8 characters, processing procedure are formed As shown in Figure 3.
Character in private mark message can be divided into 4 classes, as shown in Figure 3.Private mark report is indicated used here as dealbuf [i] I-th of character data in text, buf [k] indicates k-th of character data in former message, corresponding, wherein k=3*i/4 or 3*i/4+1.The characteristic of division and calculation formula of 4 class characters so in private mark message are shown in following analysis:
The classification characteristics of 1st class character be i%4==0, calculation formula sees below formula:
dealbuf[i]=(buf[3*i/4]&0xFC)>>2 (1)
The classification characteristics of 2nd class character be i%4==1, calculation formula sees below formula:
dealbuf[i]=((buf[3*i/4]&0x03)<<4)|((buf[3*i/4+1]&0xF0)>>4) (2)
The classification characteristics of 3rd class character be i%4==2, calculation formula sees below formula:
dealbuf[i]=((buf[3*i/4]&0x0F)<<2)|((buf[3*i/4+1]&0xC0)>>6) (3)
The classification characteristics of 4th class character be i%4==3, calculation formula sees below formula:
dealbuf[i]=(buf[3*i/4]&0x3F) (4)
In the step 3 to step 6, need to carry out anti-private mark dissection process to the private mark message of screening, to obtain former report Text.When anti-private mark parsing, take out private mark message character data low six, composition data bit string is cut from data bits successively Take 8 compositions, one character, specific execution algorithm as follows:
Parsing reduction is carried out to private mark message, obtained former message character can be divided into 3 classes, and segmentation combination process is shown in figure Shown in 4.Convertbuf [i] indicates that i-th of character data in detector original message, dealbuf [k] indicate in private mark message K-th of character data, corresponding, wherein k=4*i/3 or 4*i/3+1.Former message character data can be divided into 3 classes, classification Feature is shown in following analysis with calculation formula:
The classification characteristics of 1st class character be i%3==0, calculation formula sees below formula:
convertbuf[i]=
((dealbuf[4*i/3]&0x3F)<<2)|((dealbuf[4*i/3+1]&0x30)>>4) (5)
The classification characteristics of 2nd class character be i%3==1, calculation formula sees below formula:
convertbuf[i]=
((dealbuf[4*i/3]&0x0F)<<4)|((dealbuf[4*i/3+1]&0x3C)>>2) (6)
The classification characteristics of 3rd class character be i%3==2, calculation formula sees below formula:
convertbuf[i]=
((dealbuf[4*i/3]&0x03)<<6)|(dealbuf[4*i/3+1]&0x3F) (7)
The above is only a preferred embodiment of the present invention, it should be pointed out that:For the ordinary skill people of the art For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered It is considered as protection scope of the present invention.

Claims (1)

1. a kind of jamproof geomagnetic parking stall detector program wireless downloading update method, it is characterised in that:Server and target The update of detector program wireless downloading uses synchronous communication mode, includes the following steps:
Step 1. server generates and downloads bind command message, carries out private mark processing and continuous several times are sent;
Step 2. object detector is received, is screened, anti-private mark is resolved to after downloading bind command message and being verified, with service Device establishes communication connection, generates the message that waits for downloads, carries out private mark processing and continuous several times are sent;
Step 3. server receives, screening, the parsing of anti-private mark obtain the message and will be a certain number of after being verified of waiting for downloads Program file data generator file download data message, and sent after carrying out private mark processing;
Step 4. object detector screens the message received within the stand-by period, isolates the I of non-targeted detector Class message obtains the program file downloading data message by private mark processing;Object detector is to receiving by private mark The program file downloading data message of reason carries out anti-private mark parsing;Object detector verifies the message after parsing, verification It is successfully generated and receives downloading data success message, otherwise generate and receive downloading data failure message, sent after carrying out private mark processing;
Step 5. server screens the message received in waiting response time, the parsing of anti-private mark obtains target detection The reception downloading data response message that device is sent;If it is downloading data success message is received, selection is executed to object detector It generates lower a data message and carries out private mark processing and send, otherwise retransmit a message;If program file has been sent Finish, and receive the reception downloading data success message that object detector is sent, generates program update command message, carries out secretly It is sent after code processing;
Step 6. object detector is received, is screened, anti-private mark is resolved to server message and is verified;If it is program file Downloading data message executes step 4;Command message is updated if it is program, more using all program file data downloaded New existing program, generation is updated successfully message after the completion of upgrading, simultaneously continuous several times are sent for private mark processing, automatically into running parameter Configuration mode;
In step 1 to step 6, server and object detector are during program wireless downloading is newer, the message that receives Including I classes message and II class messages, the character in all 128 to 255 ranges of I class messages is set in advance;
In order to ensure the quick screening of II class messages, while I classes message being avoided to generate interference to program file downloading data, first II class messages are generated according to the message format of setting, is handled later by private mark and II class message characters is completely converted into 0 to 127 In range;
In step 1 to step 6, server in the message received, is sieved according to character range first with object detector Choosing obtains II class messages, then carries out anti-private mark parsing reduction to the II class messages of acquisition and verify;Anti- private mark parses conduct The inverse operation of private mark processing, converts II class message of the character range in 0 to 127 ranges to original message, to realize target Detector program is wirelessly more newly downloaded.
CN201610255139.XA 2016-04-22 2016-04-22 A kind of jamproof geomagnetic parking stall detector program wireless downloading update method Active CN105843655B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610255139.XA CN105843655B (en) 2016-04-22 2016-04-22 A kind of jamproof geomagnetic parking stall detector program wireless downloading update method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610255139.XA CN105843655B (en) 2016-04-22 2016-04-22 A kind of jamproof geomagnetic parking stall detector program wireless downloading update method

Publications (2)

Publication Number Publication Date
CN105843655A CN105843655A (en) 2016-08-10
CN105843655B true CN105843655B (en) 2018-09-18

Family

ID=56589965

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610255139.XA Active CN105843655B (en) 2016-04-22 2016-04-22 A kind of jamproof geomagnetic parking stall detector program wireless downloading update method

Country Status (1)

Country Link
CN (1) CN105843655B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005135070A (en) * 2003-10-29 2005-05-26 Fuji Photo Film Co Ltd System and device for information distribution, detecting device, and information communication terminal
CN101808315A (en) * 2010-04-08 2010-08-18 北京傲天动联技术有限公司 Thin AP upgrade method
CN103198528A (en) * 2013-02-26 2013-07-10 无锡普智联科高新技术有限公司 System and method for park charging based on RSSI locating
CN103914921A (en) * 2014-02-19 2014-07-09 江苏国盾科技实业有限责任公司 Road parking intelligence management system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7810088B2 (en) * 2003-06-20 2010-10-05 Samsung Electronics Co., Ltd. Apparatus and method for performing a fail-safe over-the-air software update in a mobile station

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005135070A (en) * 2003-10-29 2005-05-26 Fuji Photo Film Co Ltd System and device for information distribution, detecting device, and information communication terminal
CN101808315A (en) * 2010-04-08 2010-08-18 北京傲天动联技术有限公司 Thin AP upgrade method
CN103198528A (en) * 2013-02-26 2013-07-10 无锡普智联科高新技术有限公司 System and method for park charging based on RSSI locating
CN103914921A (en) * 2014-02-19 2014-07-09 江苏国盾科技实业有限责任公司 Road parking intelligence management system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Parking Guidance System Based on Zigbee and Geomagnetic Sensor Technology;Fengli Zhou et al.;《2014 13th International Symposium on Distributed Computing and Applications to Business, Engineering and Science》;20150105;全文 *
停车诱导系统在高速公路服务区中的应用;杨登松等;《中国交通信息化》;20151231;全文 *

Also Published As

Publication number Publication date
CN105843655A (en) 2016-08-10

Similar Documents

Publication Publication Date Title
CN104679627B (en) Test method and device
CN107315620A (en) Collector intelligent remote upgrade method in a kind of AMRS
CN106412010A (en) Remote LED display screen control system based on mobile phone mobile terminal and application method
CN105094824B (en) A kind of notification message methods of exhibiting on smartwatch and a kind of smartwatch
CN104284306B (en) A kind of method for filtering spam short messages, system, mobile terminal and Cloud Server
CN106776771A (en) Information-pushing method and device
CN106201890A (en) The performance optimization method of a kind of application and server
CN109710140A (en) A kind of smart phone social application automatic data collection method
CN103164232B (en) Update method, system and the computer of intelligent terminal operation system
CN107102833A (en) Line information interactive approach and electronic equipment
CN105843655B (en) A kind of jamproof geomagnetic parking stall detector program wireless downloading update method
CN108173713A (en) A kind of more network interface card parallel test methods of list PC
CN103702354B (en) Base station engineering parameter collection and analysis method
CN107526619B (en) The loading method of format data stream file
CN109992261A (en) A kind of voice online programming method and device based on artificial intelligence
CN106446064A (en) Data conversion method and device
CN113553077A (en) Intelligent ammeter firmware upgrading method and intelligent ammeter
CN110096594B (en) Short message canonical form library generation method and device and computer storage equipment
CN205486730U (en) Portable data acquisition system based on bluetooth and mobile terminal
CN108874646A (en) The method and apparatus for analyzing data
CN105159907B (en) The transmission method and device of data
CN105653123B (en) A kind of icon group technology and terminal device
CN114445789A (en) Automatic driving scene mining method based on semi-supervised transform detection
CN106406856A (en) Standalone one-key automatic deployment method for Oracle
CN107579871A (en) The generation method of distributed testing script based on model inspection and generation system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 210014 Ziyun Road, Qinhuai District, Jiangsu, No. 9, No.

Applicant after: CHINA DESIGN GROUP Co.,Ltd.

Address before: 210014 Ziyun Road, Qinhuai District, Jiangsu, No. 9, No.

Applicant before: Jiangsu Provincial Communications Planning and Design Institute Co.,Ltd.

COR Change of bibliographic data
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 210014 No. 9, Ziyun Avenue, Qinhuai District, Jiangsu, Nanjing

Patentee after: China Design Group Co.,Ltd.

Address before: 210014 No. 9, Ziyun Avenue, Qinhuai District, Jiangsu, Nanjing

Patentee before: CHINA DESIGN GROUP Co.,Ltd.

CP01 Change in the name or title of a patent holder