CN102044912A - Method for concurrently surveying terminal time in batch - Google Patents

Method for concurrently surveying terminal time in batch Download PDF

Info

Publication number
CN102044912A
CN102044912A CN2010105652253A CN201010565225A CN102044912A CN 102044912 A CN102044912 A CN 102044912A CN 2010105652253 A CN2010105652253 A CN 2010105652253A CN 201010565225 A CN201010565225 A CN 201010565225A CN 102044912 A CN102044912 A CN 102044912A
Authority
CN
China
Prior art keywords
terminal
time
lock
patrolling
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2010105652253A
Other languages
Chinese (zh)
Other versions
CN102044912B (en
Inventor
沈祥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Clou Electronics Co Ltd
Original Assignee
Shenzhen Clou Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Clou Electronics Co Ltd filed Critical Shenzhen Clou Electronics Co Ltd
Priority to CN201010565225.3A priority Critical patent/CN102044912B/en
Publication of CN102044912A publication Critical patent/CN102044912A/en
Application granted granted Critical
Publication of CN102044912B publication Critical patent/CN102044912B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The invention discloses a method for concurrently surveying terminal time in batch, comprising the following steps: (1) querying a front-end processor for the on-line state of terminals to be surveyed in batch, wherein off-line terminals are not surveyed; (2) applying for obtaining the transmission lock of the on-line terminals, wherein the terminals failing in applying for the lock are not surveyed; (3) circularly organizing time request commands of the surveyed terminals by a send-thread, and transmitting the time request commands to a corresponding terminal by the front-end processor; (4) acquiring the current time of the system by each terminal, and organizing response data to be forwarded to a master station query module by the front-end processor; (5) receiving the response data of each terminal by a receive-thread, and notifying an analysis response thread; (6) analyzing the received response data by the analysis response thread, and extracting terminal time; and (7) releasing the transmission lock of the terminal finishing analysis. The method can find the problem of system time errors of an accessed terminal in an electric energy acquisition system in time.

Description

A kind of concurrent method of terminal time in batches of surveying of patrolling
Technical field
The invention belongs to electric power and communication technical field, relate in particular to a kind of batch and patrol the method for surveying terminal time.
Background technology
Transformation along with electric power system, the collection of electric power data gradually abandoning tradition the manual metering pattern and adopt remote terminal control meter reading method, and meter reading data is sent to main station system by modes such as GPRS/CDMA, Ethernet, telephone line, serial ports passage, 230M analyzes and use.In order to carry out data analysis application in the main website side and to monitor the electricity consumption situation in real time, just must guarantee the correctness and the integrality of main website side electric power data, the generated energy acquisition system produces under this background just, but the markers of traditional institute of generated energy acquisition system image data depends critically upon terminal, if in a single day the data markers makes mistakes, these data just become without any practical value so, but also how therefore possible serious misleading analysis decision personnel find in time that the mistake of terminal system time is very crucial.
Concurrent patrolling based on GPRS among the present invention surveyed the method for designing of terminal time in batches; can be used for the electric energy information acquisition system; because the situations such as markers dislocation of the unsuccessful or image data of data acquisition appear in the electric energy information acquisition system through regular meeting in actual moving process, patrolling brake and can find timely that the time of which terminal system deviation occurs and in time revises to guarantee the normal operation of generated energy acquisition system by batch terminal time.
In the prior art of latest development, utilize GPRS to unite the data transmit-receive function of net or WCDMA net, in corresponding user locations acquisition terminal is installed, and unite net or WCDMA net by GPRS, the data of being gathered are sent to corresponding power private network, by the generated energy acquisition system these data are resolved again, and give application server and analyze accordingly and handle.
Summary of the invention
The object of the present invention is to provide a kind of concurrent patrolling to survey the method for terminal time in batches, be intended in time to find the problem of the system time mistake that accessed terminal in the generated energy acquisition system.
For achieving the above object, a kind of concurrent patrolling surveyed the method for terminal time in batches, it is characterized in that, said method comprising the steps of:
(1) wait to patrol the presence of surveying terminal to the front end processor batch query, not online terminal does not participate in patrolling survey;
(2) the transmission lock of online terminal is obtained in application, and the terminal of application lock failure does not participate in patrolling survey;
(3) sending the thread loop organization participates in patrolling the time request command of survey terminal and sends to counterpart terminal by front end processor;
(4) each terminal is obtained its current time in system and the tissue response data are transmitted to the main website enquiry module by front end processor;
(5) receiving thread receives the response data of each terminal and notifies the resolution response thread;
(6) the resolution response thread is resolved the response data that receives, and extracts terminal time;
(7) discharge the transmission lock that terminal is finished in parsing.
As specializing, in above-mentioned steps (1), the request command form of batch query terminal presence is with reference to main website communications protocol tissue, the frame format of communications protocol is as follows: bebinning character (E8H) 1bytes, the address 1byte of source main website, the address 1bytes of target main website, bebinning character (E8H) 1bytes, control domain (C) 1bytes, length (L) 2bytes, frame sequence territory (FIR, FIN, Pseq) 1bytes, data field (DATA), termination character (16H) 1bytes; Wherein source main website address and target main website address are numbered with the ID of program module and are replaced, and maximum can not surpass 127; Control domain presentation function sign indicating number, the function that different function codes is corresponding different, the form in different function code corresponding data districts is also different.
As improvement, the inquiry of terminal presence is comprised that single terminal presence inquiry and a plurality of terminal presence inquire about; Wherein, the function code of single terminal presence inquiry is defined as 0X05/0X15, and the data field of single terminal presence inquiry is content-defined to be: terminal protocol type-terminal address-terminal presence; The function code of multiple terminals presence inquiry is defined as 0X06/0X16, and the data field of multiple terminals presence inquiry is content-defined to be: terminal number n 1-terminal address 1-terminal 1 state of terminal protocol Class1-protocol type 1 ... terminal number n 2-terminal address 1-terminal 1 state of terminal address n1-terminal n 1 state-terminal protocol type 2-protocol type 2 ... terminal address n2-terminal n 2 states ....
As specializing, in above-mentioned steps (2), the prerequisite of requesting terminal time is that terminal has been logined front end processor; And be that each terminal has all been distributed an independently terminal transmission lock, before terminal is operated, must obtain the transmission lock of this terminal at every turn earlier, otherwise will not be allowed to carry out terminal operation.
As improvement, can apply for successfully that under following three kinds of situations terminal sends lock:
A, each terminal are obtained for the first time and are sent lock;
After B, transmission lock are discharged normally;
C, transmission lock were held continuously above the fixed time;
Wherein two kinds of situations of A and B all belong to normally to obtain and send lock, and C belongs to overtime pressure and obtains and send lock.
As specializing, in above-mentioned steps (3), sending the function that realizes in the thread is externally to offer caller as user's calling interface, and sending thread is any thread that calls this user interface, and user's calling interface method is defined as
publicvoidexeTermiCommCmd(List<TermiCommObj>termicommobjs,CompleteListener<Ter?miCommObj>listener),
Wherein, first parameter is pending terminal list object set, and second parameter is the event sniffer of finishing that is used to notify the user after certain terminal object is finished.
As improvement, user's calling interface realization flow is as follows:
The terminal list that a, traversal participate in patrolling survey obtains each terminal;
B, according to " power load management system transfer of data stipulations " tissue claim frame of each terminal time;
C, claim frame terminal time of tissue is transmitted to terminal by front end processor, if send failure then this terminal is deleted from participating in patrolling surveying the terminal list;
D, continue execution in step a, all send up to the request of all terminals and finish;
If the above-mentioned terminal list of e is not empty, then travel through terminal list, obtain each terminal, but whether the transmission lock of checking its terminal is in application status, if but be in application status, show that then this terminal is finished, inform the user by event notification mechanism immediately, and from terminal list this terminal of deletion, continue the next terminal of traversal, can not application status then directly travel through next terminal if be in; If this step has traveled through after one time, all terminals send lock and all are in the state that can not obtain, and then call Thread.sleep (1000) method and carry out the dormancy in 1 second;
F, judge that whether terminal list is empty, if be sky, then continues execution in step e, till terminal list is sky.
As improvement, the event interface that relates in the above-mentioned event notification mechanism is CompleteListener, this interface definition a method: public void operateCompleted (TerminalCommCmd trmcmd), the user obtains the execution result of station command by this method of heavy duty.
As specializing, the concrete steps of above-mentioned steps (4) are: after terminal is received the order of its system time of inquiry, data format 01 according to " power load management system transfer of data stipulations " definition, be organized into length and be 6 byte arrays, and it is made into complete protocol frame as data granule, and these frame data are uploaded to front end processor by the GPRS passage that connects the login front end processor; Front end processor is transmitted to the main website enquiry module with Frame then.
As specializing, in above-mentioned steps (7), all resolving is put into the try piece to be carried out, the process that discharges terminal transmission lock is put into the finally code block to be carried out, it is unusual which kind of so just can guarantee no matter to occur in the resolving, terminal sends the release that lock all can be successful, avoids the generation of deadlock problem.。
The invention has the beneficial effects as follows: by the concurrent characteristic of network support, realized the concurrent processing of front end processor to terminal, adopt multithread scheduling strategy and JAVA NIO asynchronous paths treatment mechanism to realize patrolling in batches the function of surveying terminal, adopt event notification mechanism to guarantee that user's perception terminal patrols the real-time of surveying the result.
Description of drawings
Fig. 1 is the electric energy information acquisition system structural representation that the embodiment of the invention provides;
Fig. 2 is that concurrent the patrolling that the embodiment of the invention provides surveyed the realization flow schematic diagram of terminal time in batches;
Fig. 3 is the workflow schematic diagram that patrols survey termination function user interface that the embodiment of the invention provides;
Fig. 4 is the main website inquiry system structural representation that the embodiment of the invention provides.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
The embodiment of the invention is achieved in that as shown in Figures 2 and 3 a kind of concurrent patrolling based on GPRS surveyed the method for designing of terminal time in batches, said method comprising the steps of:
(1) wait to patrol the presence of surveying terminal to the front end processor batch query, not online terminal does not participate in patrolling survey; The request command form of batch query terminal presence is with reference to main website communications protocol tissue, the frame format of batch query terminal presence is as follows: bebinning character (E8H) 1bytes, the address 1byte of source main website, the address 1bytes of target main website, bebinning character (E8H) 1bytes, control domain (C) 1bytes, length (L) 2bytes, frame sequence territory (FIR, FIN, Pseq) 1bytes, data field (DATA), termination character (16H) 1bytes.Wherein source main website address and target main website address are numbered with the ID of program module and are replaced, and maximum can not surpass 127.Control domain presentation function sign indicating number, the function that different function codes is corresponding different, the form in different function code corresponding data districts is also different.Inquiry to the terminal presence comprises single terminal presence inquiry and the inquiry of a plurality of terminal presence, wherein:
1), the function code of single terminal presence inquiry is defined as 0X05/0X15, the data field of single terminal presence inquiry is content-defined to be: terminal protocol type-terminal address-terminal presence.
2), the function code of multiple terminals presence inquiry is defined as 0X06/0X16, the data field of multiple terminals presence inquiry is content-defined to be: terminal number n 1-terminal address 1-terminal 1 state of terminal protocol Class1-protocol type 1 ... terminal number n 2-terminal address 1-terminal 1 state of terminal address n1-terminal n 1 state-terminal protocol type 2-protocol type 2 ... terminal address n2-terminal n 2 states ....
(2) the transmission lock of online terminal is obtained in application, and the terminal of application lock failure does not participate in patrolling survey; The prerequisite of requesting terminal time is that terminal has been logined front end processor, and is promptly online, and therefore not online terminal there is no need to participate in patrolling survey.Through regular meeting the situation that the user operates simultaneously to same terminal appears in actual applications; in order to guarantee the atomicity of each user's operation; the spy is provided with terminal and sends lock; this transmission lock is used to safeguard the serial when same terminal operated simultaneously; all distributed an independently terminal transmission lock for each terminal in the present invention; each transmission lock that before terminal is operated, must obtain this terminal earlier, otherwise will not be allowed to carry out terminal operation.Can apply for successfully that under following three kinds of situations terminal sends lock:
A, each terminal are obtained for the first time and are sent lock;
After B, transmission lock are discharged normally;
C, transmission lock were held continuously above the fixed time, as 1 minute.
Wherein two kinds of situations of A and B all belong to normally to obtain and send lock, and C belongs to overtime pressure and obtains and send lock.If it is occupied that certain terminal sends lock, and holding time is no more than the fixed time, then application sends and locks and will fail, and means that in this case the request command of main website requestor module has been issued to terminal and has waited for replying of this terminal, and this moment, this terminal should not participate in patrolling survey.
(3) sending the thread loop organization participates in patrolling the time request command of survey terminal and sends to counterpart terminal by front end processor; Send the function that realizes in the thread and externally offer caller as user's calling interface, sending thread can be any thread that calls this user interface, and this interface method is defined as:
PublicvoidexeTermiCommCmd (List<TermiCommObj〉termicommobjs, CompleteListener<Ter miCommObj〉listener), wherein, first parameter is pending terminal list object set, second parameter is the event sniffer of finishing that is used to notify the user after certain terminal object is finished, and this interface realization flow is as follows:
The terminal list that a, traversal participate in patrolling survey obtains each terminal;
B, according to " power load management system transfer of data stipulations " tissue claim frame of each terminal time;
C, claim frame terminal time of tissue is transmitted to terminal by front end processor, if send failure then this terminal is deleted from participating in patrolling surveying the terminal list;
D, continue execution in step a, all send up to the request of all terminals and finish;
If the above-mentioned terminal list of e is not empty, then travel through terminal list, obtain each terminal, check that but it sends lock and whether is in application status, but if be in application status, promptly, the transmission lock is normally discharged or overtime pressure is obtained, show that then this terminal is finished, promptly call by event notification mechanism immediately and finish event sniffer and inform the user, and from terminal list this terminal of deletion, continue the next terminal of traversal, can not application status if be in, promptly send lock at the appointed time and also be not released, then directly travel through next terminal; If this step has traveled through after one time, all terminals send lock and all are in the state that can not obtain, and then call Thread.sleep (1000) method and carry out the dormancy in 1 second;
F, judge that whether terminal list is empty, if be sky, then continues execution in step E, till terminal list is sky.
From above step a-f as can be seen, whole user interface enters wait state after sending the terminal request that participates in patrolling survey, resolve and release transmission lock etc. thread to be resolved, wait institute time-consuming is the longest to be to apply for that terminal sends the time-out time of lock permission, that is to say that the whole survey interface execution institute time-consuming that patrols is no more than the time-out time that single terminal to apply sends the lock setting.
The event interface that relates in the above-mentioned event notification mechanism is CompleteListener, promptly finishes the event sniffer interface, and this interface has only defined a method:
Public void operateCompleted (TerminalCommCmd trmcmd), user obtain the execution result of station command by this method of heavy duty.
(4) each terminal is obtained its current time in system and the tissue response data are transmitted to the main website enquiry module by front end processor; After terminal is received the order of its system time of inquiry, data format 01 according to " power load management system transfer of data stipulations " definition, be organized into length and be 6 byte arrays, and it is made into complete protocol frame as data granule, and these frame data are uploaded to front end processor by the GPRS passage that connects the login front end processor; Front end processor is transmitted to the main website enquiry module with Frame then.
(5) receiving thread receives the response data of each terminal and notifies the resolution response thread; The NIO technology that adopts receiving thread realizes the read-write of channel data frame, and the Frame that reads is deposited as thread parsings to be resolved such as parsing thread buffering areas; Receiving thread and to resolve thread be that mode by shared buffer realizes data sharing, and realize oneself's notice by what resolve that thread monitors this buffering area automatically.
(6) the resolution response thread is resolved the response data that receives, and extracts terminal time; Resolve thread and monitor to have in the buffering area and obtain Frame immediately behind the Frame and resolve, extract the legal terminal system time at last, and deposited in the data storage area of counterpart terminal this time according to " power load management system transfer of data stipulations ";
(7) discharge the transmission lock that terminal is finished in parsing; Resolve a terminal response Frame of thread every parsing finishing, just discharge the transmission lock that this terminal takies immediately, survey or other operations so that this terminal is patrolled next time; May variously cause resolving thread unusually in the data frame analyzing process of reality dies, and then influence the normal operation of whole procedure, the present invention puts into the try piece with all resolving and carries out for this reason, put into the finally code block and carry out and will discharge process that terminal sends lock, it is unusual which kind of so just can guarantee no matter to occur in the resolving, terminal sends the release that lock all can be successful, avoids the generation of deadlock problem.
In the present invention, described GPRS is the standard of relevant grouped data in the european telecommunication association gsm system, it can provide the air interface transmission rate up to 115Kbps, allows some mobile subscribers can share a wireless channel simultaneously, and a mobile subscriber also can use a plurality of wireless channels.Wherein, the actual user who does not send or receive packet only accounts for very little a part of Internet resources.GPRS has been arranged, and user's call set-up time shortens dramatically, and almost can accomplish " always online " (always online).Because These characteristics, the GPRS net can be the mobile data user burst data business is provided, and can connect fast, and not have the connection time delay.Be specially adapted to frequently transmit the application of small data quantity and the application of non-frequent transmission mass data.It is the means of communication of the present optimal management of power use.
Described terminal support " power load management system transfer of data stipulations " is applied to the data acquisition of electric power system, the control etc. of loading, and its Various types of data of freezing all has markers, and adopts GPRS as its data feedback channel.
Fig. 1 is the electric energy information acquisition system structural representation that the embodiment of the invention provides, and each module is briefly described below in the system configuration:
Collecting device comprises various acquisition terminals, concentrator, collector, net list, electric energy meter etc., and these equipment are referred to as acquisition target in the electric energy information acquisition system;
Communication channel comprises the radio channel that each Virtual network operator provides, and as GPRS/CDMA etc., also has light pricker private network, 230M wireless channel, telephone line channels, serial ports passage etc.;
Main website comprises front end processor, timing acquiring module, real-time acquisition module, middleware module, web application module etc., and method for designing wherein of the present invention is mainly used in the inquiry of main website to the terminal system time.
Fig. 4 is the main website inquiry system structural representation that the embodiment of the invention provides, and the C/S structure client software module that method for designing of the present invention can be used among the figure realizes the survey of patrolling of terminal time, and also can be used for realizing query function terminal time in the browser of B/S structure; As we can see from the figure, no matter be to adopt the sort of mode, all must carry out alternately with the front end processor service, front end processor mainly plays the office terminal passage and transmits data.
In sum, the present invention adopts that multithreading service and NIO technology realize terminal in batches concurrently patrols survey, adopt accurate algorithm and event-driven mode that the user interface of hommization is provided, the great terminal of acceptable number participates in patrolling survey simultaneously, guarantees to obtain patrolling the survey result in the short as far as possible time.Adopt the present invention, can reduce the situations such as markers dislocation of the unsuccessful or image data of data acquisition that the electric energy information acquisition system occurs as far as possible in actual moving process.Survey time function by patrolling of batch terminal and can find in time that deviation appears in the time of which terminal system, and in time revise to guarantee the normal operation of generated energy acquisition system, can reduce the use cost of safeguarding of power consuming administrative system significantly, and make system safer, reliable.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. concurrent patrolling surveyed the method for terminal time in batches, it is characterized in that, said method comprising the steps of:
(1) wait to patrol the presence of surveying terminal to the front end processor batch query, not online terminal does not participate in patrolling survey;
(2) the transmission lock of online terminal is obtained in application, and the terminal of application lock failure does not participate in patrolling survey;
(3) sending the thread loop organization participates in patrolling the time request command of survey terminal and sends to counterpart terminal by front end processor;
(4) each terminal is obtained its current time in system and the tissue response data are transmitted to the main website enquiry module by front end processor;
(5) receiving thread receives the response data of each terminal and notifies the resolution response thread;
(6) the resolution response thread is resolved the response data that receives, and extracts terminal time;
(7) discharge the transmission lock that terminal is finished in parsing.
2. a kind of concurrent method of terminal time in batches of surveying of patrolling according to claim 1, it is characterized in that: in above-mentioned steps (1), the request command form of batch query terminal presence is with reference to main website communications protocol tissue, the frame format of communications protocol is as follows: bebinning character (E8H) 1bytes, the address 1byte of source main website, the address 1bytes of target main website, bebinning character (E8H) 1bytes, control domain (C) 1bytes, length (L) 2bytes, frame sequence territory (FIR, FIN, Pseq) 1bytes, data field (DATA), termination character (16H) 1bytes; Wherein source main website address and target main website address are numbered with the ID of program module and are replaced, and maximum can not surpass 127; Control domain presentation function sign indicating number, the function that different function codes is corresponding different, the form in different function code corresponding data districts is also different.
3. a kind of concurrent patrolling according to claim 2 surveyed the method for terminal time in batches, it is characterized in that: the inquiry to the terminal presence comprises single terminal presence inquiry and the inquiry of a plurality of terminal presence; Wherein, the function code of single terminal presence inquiry is defined as 0X05/0X15, and the data field of single terminal presence inquiry is content-defined to be: terminal protocol type-terminal address-terminal presence; The function code of multiple terminals presence inquiry is defined as 0X06/0X16, and the data field of multiple terminals presence inquiry is content-defined to be: terminal number n 1-terminal address 1-terminal 1 state of terminal protocol Class1-protocol type 1 ... terminal number n 2-terminal address 1-terminal 1 state of terminal address n1-terminal n 1 state-terminal protocol type 2-protocol type 2 ... terminal address n2-terminal n 2 states ....
4. a kind of concurrent patrolling according to claim 1 surveyed the method for terminal time in batches, and it is characterized in that: in above-mentioned steps (2), the prerequisite of requesting terminal time is that terminal has been logined front end processor; And be that each terminal has all been distributed an independently terminal transmission lock, before terminal is operated, must obtain the transmission lock of this terminal at every turn earlier, otherwise will not be allowed to carry out terminal operation.
5. a kind of concurrent patrolling according to claim 5 surveyed the method for terminal time in batches, goes to be characterised in that: can apply for successfully that under following three kinds of situations terminal sends lock:
A, each terminal are obtained for the first time and are sent lock;
After B, transmission lock are discharged normally;
C, transmission lock were held continuously above the fixed time;
Wherein two kinds of situations of A and B all belong to normally to obtain and send lock, and C belongs to overtime pressure and obtains and send lock.
6. a kind of concurrent method of terminal time in batches of surveying of patrolling according to claim 1, it is characterized in that: in above-mentioned steps (3), sending the function that realizes in the thread is externally to offer caller as user's calling interface, sending thread is any thread that calls this user interface, user's calling interface
Method is defined as
publicvoidexeTermiCommCmd(List<TermiCommObj>termicommobjs,CompleteListener<Termi?CommObj>listener),
Wherein, first parameter is pending terminal list object set, and second parameter is the event sniffer of finishing that is used to notify the user after certain terminal object is finished.
7. a kind of concurrent patrolling according to claim 6 surveyed the method for terminal time in batches, and it is characterized in that: user's calling interface realization flow is as follows:
The terminal list that a, traversal participate in patrolling survey obtains each terminal;
B, according to " power load management system transfer of data stipulations " tissue claim frame of each terminal time;
C, claim frame terminal time of tissue is transmitted to terminal by front end processor, if send failure then this terminal is deleted from participating in patrolling surveying the terminal list;
D, continue execution in step a, all send up to the request of all terminals and finish;
If the above-mentioned terminal list of e is not empty, then travel through terminal list, obtain each terminal, but whether the transmission lock of checking its terminal is in application status, if but be in application status, show that then this terminal is finished, inform the user by event notification mechanism immediately, and from terminal list this terminal of deletion, continue the next terminal of traversal, can not application status then directly travel through next terminal if be in; If this step has traveled through after one time, all terminals send lock and all are in the state that can not obtain, and then call Thread.sleep (1000) method and carry out the dormancy in 1 second;
F, judge that whether terminal list is empty, if be sky, then continues execution in step e, till terminal list is sky.
8. a kind of concurrent method of terminal time in batches of surveying of patrolling according to claim 7, it is characterized in that: the event interface that relates in the above-mentioned event notification mechanism is CompleteListener, this interface definition a method: public void operateCompleted (TerminalCommCmd trmcmd), the user obtains the execution result of station command by this method of heavy duty.
9. a kind of concurrent method of terminal time in batches of surveying of patrolling according to claim 1, it is characterized in that: the concrete steps of above-mentioned steps (4) are: after terminal is received the order of its system time of inquiry, data format 01 according to " power load management system transfer of data stipulations " definition, be organized into length and be 6 byte arrays, and it is made into complete protocol frame as data granule, and these frame data are uploaded to front end processor by the GPRS passage that connects the login front end processor; Front end processor is transmitted to the main website enquiry module with Frame then.
10. a kind of concurrent method of terminal time in batches of surveying of patrolling according to claim 1, it is characterized in that: in above-mentioned steps (7), all resolving is put into the try piece to be carried out, the process that discharges terminal transmission lock is put into the finally code block to be carried out, it is unusual which kind of so just can guarantee no matter to occur in the resolving, terminal sends the release that lock all can be successful, avoids the generation of deadlock problem.
CN201010565225.3A 2010-11-25 2010-11-25 Method for concurrently surveying terminal time in batch Active CN102044912B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010565225.3A CN102044912B (en) 2010-11-25 2010-11-25 Method for concurrently surveying terminal time in batch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010565225.3A CN102044912B (en) 2010-11-25 2010-11-25 Method for concurrently surveying terminal time in batch

Publications (2)

Publication Number Publication Date
CN102044912A true CN102044912A (en) 2011-05-04
CN102044912B CN102044912B (en) 2014-03-12

Family

ID=43910797

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010565225.3A Active CN102044912B (en) 2010-11-25 2010-11-25 Method for concurrently surveying terminal time in batch

Country Status (1)

Country Link
CN (1) CN102044912B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109495303A (en) * 2018-11-19 2019-03-19 广州开信通讯系统有限公司 Obtain the method, device network managing device and system, electronic device and storage medium of equipment parameter information
CN110139452A (en) * 2019-07-10 2019-08-16 南京理控物联技术有限公司 A method of it improving NB-IoT single-lamp controller and communicates success rate
CN113010750A (en) * 2019-12-20 2021-06-22 深圳市帝迈生物技术有限公司 Query method and device for sample analyzer, sample analyzer and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1719914A (en) * 2005-07-15 2006-01-11 胡波 Method and system for receiving, transmitting and processing electronic message in mobile network
CN101452069A (en) * 2007-12-06 2009-06-10 深圳市科陆电子科技股份有限公司 Electric energy meter calibrating system and timing method thereof
CN201583648U (en) * 2009-12-10 2010-09-15 河南省电力公司郑州供电公司 Clock remote timing device of electric energy meter

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1719914A (en) * 2005-07-15 2006-01-11 胡波 Method and system for receiving, transmitting and processing electronic message in mobile network
CN101452069A (en) * 2007-12-06 2009-06-10 深圳市科陆电子科技股份有限公司 Electric energy meter calibrating system and timing method thereof
CN201583648U (en) * 2009-12-10 2010-09-15 河南省电力公司郑州供电公司 Clock remote timing device of electric energy meter

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109495303A (en) * 2018-11-19 2019-03-19 广州开信通讯系统有限公司 Obtain the method, device network managing device and system, electronic device and storage medium of equipment parameter information
CN110139452A (en) * 2019-07-10 2019-08-16 南京理控物联技术有限公司 A method of it improving NB-IoT single-lamp controller and communicates success rate
CN113010750A (en) * 2019-12-20 2021-06-22 深圳市帝迈生物技术有限公司 Query method and device for sample analyzer, sample analyzer and medium
CN113010750B (en) * 2019-12-20 2023-04-28 深圳市帝迈生物技术有限公司 Query method and device for sample analyzer, sample analyzer and medium

Also Published As

Publication number Publication date
CN102044912B (en) 2014-03-12

Similar Documents

Publication Publication Date Title
CN103281673B (en) A kind of business information Push Service system and method
CN101127767B (en) A method and system for creating network chat platform
CN102055814B (en) Method for realizing cross-network segment real-time collection
CN109624775A (en) A kind of charging pile system based on NBIoT Internet of Things
CN105989539A (en) Financial trading condition acquisition system and method
CN101345795A (en) Method and system automatic monitoring and real-time blocking false calling of communication network
CN102468986B (en) The method of testing of power information acquisition system and system, main website
CN101335648A (en) Automatic converting method for packets of different interfaces and apparatus thereof
CN109698758A (en) A kind of network resource information check method and system
CN103517164B (en) A kind of optical network unit data configuration control method
CN101895900A (en) Device and method for managing/controlling terminal based on M2M application platform
CN101115222B (en) Mobile added value service data processing method and system
US20190239163A1 (en) Low-power-consumption communication method and device based on micro-energy collection network
CN110474756A (en) A kind of smart grid electricity usage information collecting method
CN102044912B (en) Method for concurrently surveying terminal time in batch
CN101741746A (en) Method for realizing communication between two-way CAS gateway and user terminal based on IOCP
CN111901440A (en) Multi-channel message pushing method and device
CN105959385A (en) Information communication method, device and system
CN101754088B (en) Reserving method and system for handling businesses and business supporting application server
EP2124487A1 (en) Service processing method and processing system and service control point
CN102148848A (en) Data management method and system
CN103812707B (en) A kind of method for processing forwarding of line identification message
EP2810494B1 (en) Gsm signalling for m2m communications
CN109039427B (en) Ship monitoring management device
CN101640866B (en) Method and system for checking initial call right supported by number portability service and relative device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant