CN104244320A - Log uploading method and device in automatic road testing system - Google Patents

Log uploading method and device in automatic road testing system Download PDF

Info

Publication number
CN104244320A
CN104244320A CN201410440202.8A CN201410440202A CN104244320A CN 104244320 A CN104244320 A CN 104244320A CN 201410440202 A CN201410440202 A CN 201410440202A CN 104244320 A CN104244320 A CN 104244320A
Authority
CN
China
Prior art keywords
lte module
state
configuration testing
background server
module
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
CN201410440202.8A
Other languages
Chinese (zh)
Other versions
CN104244320B (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.)
Datang Mobile Communications Equipment Co Ltd
Original Assignee
Datang Mobile Communications Equipment 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 Datang Mobile Communications Equipment Co Ltd filed Critical Datang Mobile Communications Equipment Co Ltd
Priority to CN201410440202.8A priority Critical patent/CN104244320B/en
Publication of CN104244320A publication Critical patent/CN104244320A/en
Application granted granted Critical
Publication of CN104244320B publication Critical patent/CN104244320B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Maintenance And Management Of Digital Transmission (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a log uploading method and device in an automatic road testing system to improve the uploading efficiency of measurement logs. The log uploading method in the automatic road testing system comprises the steps that whether an LTE module not configured with a test service is in a serviceable state or not is judged, and if yes, the LTE module is used for being connected with a background server, and a communication link is established between the LTE module and the background server; if not, a back-loading module is used for being connected with the background server, and a communication link between the back-passing module and the background server is established; the logs are uploaded to the background server through the communication link.

Description

Daily record method for uploading in a kind of automatic drive test system and device
Technical field
The present invention relates to the communication technology, particularly relate to the daily record method for uploading in a kind of automatic drive test system and device.
Background technology
At present, the ADT daily record produced in Long Term Evolution (Long-Term Evolution, LTE) automatic drive test system (Auto Driver Test, ADT) test process is comparatively large, and the size ginseng of some journal files is shown in Table 1.
Table 1ADT daily record size
Network formats TD(2) HSPA+(1) EVDO(1) LTE(2)
1 hour daily record size 50MB×2 200MB 100MB 500MB×2
In original automatic drive test system, in order to realize managerial simplicity, the module that the general mode all taking user to specify in test plan uses to set return data, detailed process as shown in Figure 1, in business procedure, 2 kinds of data back modes can be used: wireless backhaul and local area network (LAN) (Local Area Network, LAN) passback.In drive test process, the main wireless network that uses carries out return data, current wireless backhaul supports global system for mobile communications (Global System for Mobile communication, enhanced data rates (the Enhanced Data rates for GSM Evolution of GSM)/GSM, EDGE), code division multiple access access (Code Division Multiple Access, CDMA)/evolution-only data (Evolution-Data Only, EV-DO), Wideband Code Division Multiple Access (WCDMA) (Wideband Code Division Multiple Access, WCDMA)), TD SDMA (Time-Division-Synchronous Code-Division Multiple Access, TD-SCDMA) these 5 kinds of network formats, the mode of LAN passback, because accessing public network by netting twine, still have certain limitation, and upstream rate is not very high, therefore applies less in test process.
Table 2 list wireless backhaul, LAN passback and LTE passback upstream rate comparative information and 6 moulds, 1 hour test log uplink time, as can be seen from Table 2, existing wireless backhaul and LAN passback can not meet the primary demand that large log is uploaded well in LTE automatic drive test system, in view of this, the problem solving data back efficiency just seems particularly important.
Table 2 daily record uploading rate and time
Network formats The highest upstream rate 6 moulds test 1 hour daily record uplink time (Min)
GSM/EDGE 59.2kbps 1614
WCDMA 384Kbps 249
CDMA2000 1.8Mbps 53
TD-SCDMA 384Kbps 249
LAN 128--352Kbps 272
LTE 20--50Mbps 5
Visible, current LTE automatic drive test system is uploaded slower because of daily record, cause daily record to be overstock in a large number, equipment side software processing pressure is excessive, impacts the stability of whole system and sustainability, also extend the time of whole test simultaneously, synchronous accuracy is uncontrollable, can not feed back the state information of automatic road measuring device equipment in the test process of outfield in time, also reduce the availability of whole system, testing efficiency is impacted, certain waste is all caused to manpower, material resources and financial resources.
Summary of the invention
The embodiment of the present invention provides daily record method for uploading in a kind of automatic drive test system and device, in order to realize improving the upper transfer efficiency measuring daily record.
Daily record method for uploading in a kind of automatic drive test system that the embodiment of the present invention provides, comprising:
Judge whether the LTE module of non-configuration testing business is in up state, if so, then use LTE module connect background server and set up communication link; Otherwise, use passback model calling background server and set up communication link;
Daily record is uploaded to described background server by described communication link.
The daily record method for uploading that the embodiment of the present invention provides, for the problem only using traditional passback module to carry out the poor efficiency that daily record is uploaded in prior art, after the state of the LTE module to non-configuration testing business judges, when determining that LTE module is in up state, LTE module is used to upload daily record by described communication link to described background server, take full advantage of the Internet resources of LTE module, effectively raise the efficiency that daily record is uploaded; Meanwhile, if determine, LTE module is in not up state, then use passback module to carry out daily record by described communication link to described background server and upload, and ensure that ADT system and the mutual accuracy of background server and reliability.
Preferably, whether described judgement is in up state for the LTE module realizing test service, specifically comprises:
Judge whether the LTE module quantity of non-configuration testing business reaches preset value;
If, described in then judging, whether the state of the LTE module of non-configuration testing business is normal, and if so, then described in determining, the LTE module of non-configuration testing business is in up state, otherwise the LTE module of non-configuration testing business is in not up state described in determining;
Otherwise the LTE module of non-configuration testing business is in not up state described in determining.
Preferably, described preset value is 2.2 LTE module are generally only included in current ADT system, during all non-configuration testing business of 2 LTE module that therefore and if only if, use LTE module to upload daily record by described communication link to described background server, can effectively avoid the business uploading daily record on the impact of LTE module test service.
Preferably, the LTE module of described non-configuration testing business comprises client identification module SIM card;
Described in judgement, whether the state of the LTE module of non-configuration testing business normally comprises:
Judge that whether the state of this SIM card is normal, if so, then the LTE module state of non-configuration testing business described in determining is normal, otherwise described in determining, the state of the LTE module of non-configuration testing business is abnormal.
In ADT system, module is generally all mounted on general slot, powers on, lower electricity and reboot operation by the power-on and power-off interface calling single-chip microcomputer to the module of specifying; Further, in ADT operating system, there is also mounted all drivers of the module of the type that it is supported.
Preferably, judge that whether the state of this SIM card is normal, specifically comprise:
By power-on and power-off interface, the LTE module of described non-configuration testing business is switched to power-up state by power-down state;
The LTE module being switched to non-configuration testing business described in power-up state is carried out to the coupling of driver, and physical serial interface is mapped as virtual serial port;
The type information of the LTE module of non-configuration testing business described in being determined by described driver and virtual serial port;
After normally being communicated with the LTE module of described non-configuration testing business by virtual serial port, the command information for inquiring about this SIM card state corresponding to described type information is received according to the type information of the LTE module of described non-configuration testing business, if described command information indicates this SIM card state normal, then determine that the state of this SIM card is normal, otherwise, determine that the state of this SIM card is abnormal.
Preferably, daily record is uploaded to described background server by described communication link, comprise: use LTE module to upload daily record by described communication link to described background server, or use passback module to upload daily record by described communication link to described background server;
When system uses LTE module to upload daily record by described communication link to described background server, if this LTE module is configured with new test service, what receive the transmission of this LTE module restarts system message.
If this LTE module is configured with new test service, then can carries out daily record by restarting systematic evaluation upload to passback module after receive new test service, ensure that LTE test service is unaffected.
Preferably, the described LTE module determining to realize test service is in not up state, comprising:
If determine at least one LTE module configuration testing business, then determine that the LTE module realizing test service is in not up state.
Preferably, be in not after up state in the LTE module determining to realize LTE test service, the method also comprises:
Setting is opening timing device also;
When receive that described timer sends reach the message of timing length time, interrupt the connection of passback module and background server, use LTE module connection background server also to re-establish communication link.
Preferably, the timing length of described timer is that the time point of the service ending of the LTE module according to configuration testing business sets.
Device is uploaded in daily record in a kind of automatic drive test system that the embodiment of the present invention provides, comprising:
Judging unit, for: judge whether the LTE module of non-configuration testing business is in up state, if so, then use LTE module connect background server and set up communication link; Otherwise, use passback model calling background server and set up communication link;
LTE linkage unit, for: use LTE module connect background server and set up communication link;
Passback model calling unit, for: use passback model calling background server and set up communication link;
Uploading unit, for uploading daily record by described communication link to described background server.
Device is uploaded in the daily record that the embodiment of the present invention provides, for the problem only using traditional passback module to carry out the poor efficiency that daily record is uploaded in prior art, after the state of LTE module is judged, when determining that LTE module is in up state, LTE module is used to upload daily record by described communication link to described background server, take full advantage of the Internet resources of LTE module, effectively raise the efficiency that daily record is uploaded; Meanwhile, if determine, LTE module is in not up state, then use passback module to upload daily record by described communication link to described background server, ensure that ADT system and the mutual accuracy of background server and reliability.
Preferably, described judging unit, specifically for:
Judge whether the LTE module quantity of non-configuration testing business reaches preset value;
If, described in then judging, whether the state of the LTE module of non-configuration testing business is normal, and if so, then described in determining, the LTE module of non-configuration testing business is in up state, otherwise the LTE module of non-configuration testing business is in not up state described in determining;
Otherwise the LTE module of non-configuration testing business is in not up state described in determining.
Preferably, described preset value is 2.
Preferably, the LTE module of described non-configuration testing business comprises client identification module SIM card;
Described judging unit also for:
Judge that whether the state of this SIM card is normal, if so, then the LTE module state of non-configuration testing business described in determining is normal, otherwise described in determining, the state of the LTE module of non-configuration testing business is abnormal.
Preferably, described judging unit, also for:
By power-on and power-off interface, the LTE module of described non-configuration testing business is switched to power-up state by power-down state;
The LTE module being switched to non-configuration testing business described in power-up state is carried out to the coupling of driver, and physical serial interface is mapped as virtual serial port;
The type information of the LTE module of non-configuration testing business described in being determined by described driver and virtual serial port;
After normally being communicated with the LTE module of described non-configuration testing business by virtual serial port, the command information for inquiring about this SIM card state corresponding to described type information is received according to the type information of the LTE module of described non-configuration testing business, if described command information indicates this SIM card state normal, then determine that the state of this SIM card is normal, otherwise, determine that the state of this SIM card is abnormal.
Preferably, described uploading unit specifically for: use LTE module upload daily record by described communication link to described background server, or use passback module upload daily record by described communication link to described background server;
When system uses LTE module to upload daily record by described communication link to described background server, if this LTE module is configured with new test service, what receive the transmission of this LTE module restarts system message.
Preferably, described judging unit the LTE module determining to realize test service be in not up state time, specifically for:
If determine at least one LTE module configuration testing business, then determine that the LTE module realizing test service is in not up state.
Preferably, be in not after up state in the LTE module determining to realize LTE test service, this device also comprises switch unit, and described switch unit is used for:
Setting is opening timing device also;
When receive that described timer sends reach the message of timing length time, interrupt the connection of passback module and background server, use LTE module connection background server also to re-establish communication link.
Preferably, the timing length of described timer is that the time point of the service ending of the LTE module according to configuration testing business sets.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of daily record method for uploading in prior art;
The schematic flow sheet of the daily record method for uploading in a kind of automatic drive test system that Fig. 2 provides for the embodiment of the present invention;
The schematic flow sheet of the daily record method for uploading in the another kind of automatic drive test system that Fig. 3 provides for the embodiment of the present invention;
Fig. 4 realizes step S306 uploads the method for daily record to background server schematic flow sheet by communication link in Fig. 3;
The structural representation of device is uploaded in daily record in a kind of automatic drive test system that Fig. 5 provides for the embodiment of the present invention.
Embodiment
The embodiment of the present invention provides daily record method for uploading in a kind of automatic drive test system and device, in order to realize improving the upper transfer efficiency measuring daily record.
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
See Fig. 2, the daily record method for uploading in a kind of automatic drive test system that the embodiment of the present invention provides, comprising:
Step S201: judge whether the LTE module of non-configuration testing business is in up state; If so, then step S202 is continued; If not, then step S203 is continued;
Step S202: use LTE module connect background server and set up communication link;
Step S203: use passback model calling background server and set up communication link;
Step S204: upload daily record to described background server by described communication link.
The daily record method for uploading that the embodiment of the present invention provides, for the problem only using traditional passback module to carry out the poor efficiency that daily record is uploaded in prior art, after the state of LTE module is judged, when determining that LTE module is in up state, LTE module is used to upload daily record by described communication link to described background server, take full advantage of the Internet resources of LTE module, effectively raise the efficiency that daily record is uploaded; Meanwhile, if determine, LTE module is in not up state, then use passback module to carry out daily record by described communication link to described background server and upload, and ensure that ADT system and the mutual accuracy of background server and reliability.
It should be noted that, the LTE module described in the present invention, all referring to the LTE module for realizing test service.
Preferably, in step s 201, whether described judgement is in up state for the LTE module realizing test service, specifically comprises:
Judge whether the LTE module quantity of non-configuration testing business reaches preset value;
If, described in then judging, whether the state of the LTE module of non-configuration testing business is normal, and if so, then described in determining, the LTE module of non-configuration testing business is in up state, otherwise the LTE module of non-configuration testing business is in not up state described in determining;
Otherwise the LTE module of non-configuration testing business is in not up state described in determining.
Preferably, described preset value is 2.2 LTE module are generally only included in current ADT system, during all non-configuration testing business of 2 LTE module that therefore and if only if, use LTE module to upload daily record by described communication link to described background server, can effectively avoid the business uploading daily record on the impact of LTE module test service.
Preferably, the LTE module of described non-configuration testing business comprises client identification module SIM card, and described in judgement, whether the state of the LTE module of non-configuration testing business normally comprises:
Judge that whether the state of this SIM card is normal, if so, then the LTE module state of non-configuration testing business described in determining is normal, otherwise described in determining, the state of the LTE module of non-configuration testing business is abnormal.
In ADT system, module is generally all mounted on general slot, powers on, lower electricity and reboot operation by the power-on and power-off interface calling single-chip microcomputer to the module of specifying; Further, in ADT operating system, there is also mounted all drivers of the module of the type that it is supported.Therefore, in specific implementation process, judge that whether the state of this SIM card is normal, specifically comprise:
By power-on and power-off interface, the LTE module of described non-configuration testing business is switched to power-up state by power-down state;
The LTE module being switched to non-configuration testing business described in power-up state is carried out to the coupling of driver, and physical serial interface is mapped as virtual serial port;
The type information of the LTE module of non-configuration testing business described in being determined by described driver and virtual serial port;
After normally being communicated with the LTE module of described non-configuration testing business by virtual serial port, the command information for inquiring about this SIM card state corresponding to described type information is received according to the type information of the LTE module of described non-configuration testing business, if described command information indicates this SIM card state normal, then determine that the state of this SIM card is normal, otherwise, determine that the state of this SIM card is abnormal.
Preferably, daily record is uploaded to described background server by described communication link, comprise: use LTE module to upload daily record by described communication link to described background server, or use passback module to upload daily record by described communication link to described background server;
Concrete, in step S204, uploaded the process of daily record to background server by communication link, as follows:
System sends daily record upload request message to background server, system accept backstage response log upload request message and to system send daily record key after, system read test daily record data in units of 200KB also uses the secret key encryption packing compression daily record data that get, wherein, the size of each compressed data packets is 20KB; After setting up TCP/IP transmission channel, system sends the compressed data packets of 20KB at every turn to background server; Until Packet Generation terminates, system sends to background server and is transmitted message, and receives the response message being transmitted message of background server transmission, and so far daily record is uploaded successfully.
Wherein, when system uses LTE module to upload daily record by described communication link to described background server, if this LTE module is configured with new test service, then what receive the transmission of this LTE module restarts system message.
When this LTE module is configured with new test service, carries out daily record by restarting systematic evaluation upload to passback module after receiving new test service, ensure that LTE test service is unaffected.
Preferably, the described LTE module determining to realize test service is in not up state, comprising:
If determine at least one LTE module configuration testing business, then determine that the LTE module realizing test service is in not up state.
Preferably, be in not after up state in the LTE module determining to realize LTE test service, the method also comprises:
Setting is opening timing device also;
When receive that described timer sends reach the message of timing length time, interrupt the connection of passback module and background server, use LTE module connection background server also to re-establish communication link.
Connect background server when passback module being switched to LTE module and after re-establishing communication link, utilizing the daily record breakpoint transmission function of ADT system here.The breakpoint transmission function of daily record is applied widely in large log upload procedure, system connects background server after re-establishing communication link passback module being switched to LTE module, transmission control protocol (Transmission Control Protocol before, TCP)/Internet Protocol (Internet Protocol, IP) transmission channel is closed, after re-establishing communication link, the function of daily record breakpoint transmission will be utilized.System sends daily record upload request, background server response request message the paid-in byte number of this daily record of apprizing system, what system sent according to background server receives byte number, calculates the byte number do not uploaded and reopen the non-upload unit of daily record to divide and start to pack and resume.
Preferably, the timing length of described timer is that the time point of the service ending of the LTE module according to configuration testing business sets.
Provide specific embodiment to be below described the technical scheme that the embodiment of the present invention provides.
In current ADT system, adopt the mode of operation of 2 LTE module, LTE module is when performing test service, and a LTE module is used for uploading data, and another LTE module is used for downloading data.Specific works pattern comprises: A, LTE module are in testing time section, and 2 LTE module perform test service simultaneously, and a LTE module is used for uploading data, and another LTE module is used for downloading data, and the operating time section of two LTE module is identical; Or B, LTE module, in testing time section, only have a LTE module to perform test service, carry out uploading data or downloading data; Or C, LTE module are in testing time section, and two LTE module do not perform test service, this situation to be generally more common in after testing time section terminates again by device power-up thus system situation about starting.For Mode A or B, after device power-up, system all can judge LTE module configuration testing business, and then the LTE module determining to realize test service is in not up state; For pattern C, after device power-up, system can judge two all non-configuration testing business of LTE module, and then continues to judge that whether LTE module state is normal, and then determines whether LTE module is in up state.
Detailed description is provided below in conjunction with accompanying drawing.
Composition graphs 3, the daily record method for uploading in the another kind of automatic drive test system that the embodiment of the present invention provides, comprising:
Step S301: judge the whether non-configuration testing business of LTE module for realizing test service; If so, then step S302 is continued; If not, then step S304 is continued;
Step S302: judge that whether the LTE module state of non-configuration testing business is normal; If so, then step S303 is continued; If not, then step S305 is continued;
Step S303: use LTE module carry out QMI dial-up connection background server and set up communication link; And continue step S306;
Step S304: set and start timer; Continue step S305;
Step S305: use passback model calling background server and set up communication link; And continue step S306;
Step S306: upload daily record to described background server by described communication link.
In step S301, judging the whether non-configuration testing business of LTE module for realizing test service, comprising: judge the whether all non-configuration testing business of two LTE module.If have at least a LTE module to there is configuration service, then determine that LTE module is in not up state, two all non-configuration testing business of LTE module that and if only if, just continue step S302.Concrete determination methods, such as, detects that the Enable field of LTE module is 1, this LTE module configuration testing business is described, then judged result is this LTE module configuration testing business; If Enable field is 0, the non-configuration testing business of this LTE module is described, then judged result is the non-configuration testing business of this LTE module.
In step s 302, judge that whether the LTE module state of non-configuration testing business is normal, specifically comprise:
In ADT system, module is generally all mounted on general slot, powers on, lower electricity and reboot operation by the power-on and power-off interface calling single-chip microcomputer to the module of specifying; Further, in ADT operating system, there is also mounted all drivers of the module of the type that it is supported.Concrete, in the present invention, the power-on and power-off interface by single-chip microcomputer powers on to LTE module, lower electricity and reboot operation, and in ADT system, has installed all drivers of LTE module.
Meanwhile, the LTE module of non-configuration testing business comprises client identification module SIM card, and therefore, described in judgement, whether the state of the LTE module of non-configuration testing business normally comprises:
Judge that whether the state of this SIM card is normal, if so, then the LTE module state of non-configuration testing business described in determining is normal, otherwise described in determining, the state of the LTE module of non-configuration testing business is abnormal.In specific implementation process, judge that whether the state of this SIM card is normal, comprising:
By power-on and power-off interface, the LTE module of described non-configuration testing business is switched to power-up state by power-down state;
The LTE module being switched to non-configuration testing business described in power-up state is carried out to the coupling of driver, and physical serial interface is mapped as virtual serial port;
The type information of the LTE module of non-configuration testing business described in being determined by described driver and virtual serial port;
After normally being communicated with the LTE module of described non-configuration testing business by virtual serial port, the command information for inquiring about this SIM card state corresponding to described type information is received according to the type information of the LTE module of described non-configuration testing business, if described command information indicates this SIM card state normal, such as return " ready " information, then determine that the state of this SIM card is normal, and then determine that the LTE module state of this non-configuration testing business is normal; If described command information indicates this SIM card state abnormal, such as, return " NO SIM Card " message, then determine that this SIM card state is abnormal, and then determine that the LTE module state of this non-configuration testing business is abnormal.
In step S303, use LTE module carry out QMI dial-up connection background server and set up communication link, specifically comprise:
After QMI dial-up success, system obtains IP address and the port information of the background server of specifying in the IP address information Portal IP mutual with background server and backstage port information Portal Port, and use automatic road measuring box to identify BOX ID as user name, the radix-minus-one complement of BOX ID is used to send logging request as password to background server, when determining to login successfully after the response message " AC " that system acceptance sends to background server, also i.e. QMI dial-up connection background server success, and communication link is successfully established.
In step s 304, set and start timer, specifically comprise: when LTE module configuration testing business, according to the time point setting timer of the service ending of the LTE module of configuration testing business, in specific implementation process, obtain the Endtime field value of the LTE module of configuration testing business, start timer according to this Endtime field value timer.
In step S305, use passback model calling background server also to set up communication link, in this step, employing be prior art.As shown in Figure 1,2 kinds of data back modes can be used: wireless backhaul and LAN passback.In drive test process, the main wireless network that uses carries out return data, and current wireless backhaul supports these 5 kinds of network formats of GSM/EDGE, WCDMA, CDMA/EVDO, TDSCDMA.
In step S306, no matter the communication link adopting LTE module or adopt passback module to set up, after communication link is set up, upload daily record by the communication link established to background server.See Fig. 4, system uploads the detailed process of daily record to background server, as follows:
Step S401: system sends daily record upload request message to background server;
Step S402: system accepts response message and the daily record key of the daily record upload request message that background server sends;
Step S403: system read test daily record data in units of 200KB also uses the secret key encryption compression verification daily record data of packing that get, and wherein, the size of each compressed data packets is 20KB;
Step S404: set up TCP/IP transmission channel, sends the compressed data packets of 20KB at every turn to background server;
Step S405: Packet Generation terminates, system sends to background server and is transmitted message, and receives the response message being transmitted message of background server transmission.
So far daily record is uploaded successfully.
Further, in the process that above-mentioned daily record is uploaded, likely there is the following two kinds situation:
(1) current employing is that LTE module uploads daily record by communication link to background server, but in the process that daily record is uploaded, LTE module have received new test service configuration, now, need the daily record interrupting LTE module to upload, configuration LTE module performs test service;
Or,
(2) current employing is that passback module uploads daily record by communication link to background server, in the process of log transmission, when receive described timer send reach the message of timing length time, need the connection interrupting passback module and background server, and use LTE module connect background server and re-establish communication link, to improve upper transfer efficiency.
Plant situation for (one), the LTE module being configured with new test service restarts system message to what send, and system acceptance restarts system restart the message of system to this after, and restarts to perform step S301.Certainly, in this case, when step S301 judges LTE module for realizing test service whether non-configuration testing business, the result judged must be that LTE module is configured with test service, therefore by continue step S304 setting and start timer, and adopt passback model calling background server further and re-establish communication link, and upload daily record further by the communication link re-established to background server, and LTE module will start the test service performing new configuration.
Situation is planted for (two), when receive described timer send reach the message of timing length time, timer is destroyed by the message of system responses timer, and close current TCP/IP transmission channel, and directly enter step S303, namely be switched to LTE module carry out QMI dial-up connection background server and re-establish communication link, and upload daily record further by the communication link re-established to background server.
Certainly, situation is planted for (one), set up communication link when have switched passback model calling background server and carry out in the process that daily record uploads, also likely occur (two) again and plant situation, this time will once switch again, to the disconnecting of module and background server be returned, and use LTE module connection background server again to set up the communication links daily record of communication link also by again setting up.
In a word, when LTE module is in up state, LTE module is all used to connect background server and set up communication link, and further by communication links daily record.Connect background server in use LTE module and set up communication link, and when uploading daily record by communication link to background server, uplink time is shorter, for the drive test data 1.4G of 1 hour, approximately needs a few minutes just can complete daily record and uploads.So, system does not need long-time maintenance log uploading process, is easy to control upload procedure, ensure that headend equipment is connected mutual reliability with background server, facilitates backstage personnel control and exports the statistics of test log.
Preferably, when receiving the message reaching timing length of described timer transmission, timer is destroyed by the message of system responses timer, and when closing current TCP/IP transmission channel, system is by the current session identification mutual with background server of preservation, use when LTE module starts to carry out QMI dial-up connection the session identification preserved to connect background server and also re-establish communication link, so just can proceed information interaction and daily record is uploaded.
In specific implementation process, interrupt current communication link when there occurs, re-establish communication link, and upload the situation of daily record to background server by the communication link that re-establishes, ADT system provides the function of breakpoint transmission, and the step of specific implementation breakpoint transmission function comprises:
System sends daily record upload request message to background server;
Background server response log upload request message, and the byte number received is sent to system;
The byte number received that system sends according to background server, calculates and does not upload byte number;
System according to not uploading byte number, reopen do not upload part daily record start compression pack and resume.
The process that concrete daily record resumes step as shown in Figure 4, does not repeat them here.
Certainly, be no matter establish communication link under what circumstances after, system can also perform event alarm by this communication link and report and state information report.This process is prior art, does not repeat them here.
Daily record method for uploading in the automatic drive test system provided for the embodiment of the present invention is above illustrated, and the daily record tackled mutually below in the automatic drive test system that the embodiment of the present invention provides is uploaded device and is described.
See Fig. 5, device is uploaded in the daily record in a kind of automatic drive test system that the embodiment of the present invention provides, and comprising:
Judging unit Z501, for: judge whether the LTE module of non-configuration testing business is in up state;
If so, then LTE module is used to connect background server and set up communication link; Otherwise, use passback model calling background server and set up communication link;
LTE linkage unit Z502, for: use LTE module connect background server and set up communication link;
Passback model calling unit Z503, for: use passback model calling background server and set up communication link;
Uploading unit Z504, for: upload daily record by described communication link to described background server.
Device is uploaded in the daily record that the embodiment of the present invention provides, for the problem only using traditional passback module to carry out the poor efficiency that daily record is uploaded in prior art, after the state of LTE module is judged, when determining that LTE module is in up state, LTE module is used to upload daily record by described communication link to described background server, take full advantage of the Internet resources of LTE module, effectively raise the efficiency that daily record is uploaded; Meanwhile, if determine, LTE module is in not up state, then use passback module to carry out daily record by described communication link to described background server and upload, and ensure that ADT system and the mutual accuracy of background server and reliability.
Preferably, described judging unit Z501, specifically for:
Judge whether the LTE module quantity of non-configuration testing business reaches preset value;
If, described in then judging, whether the state of the LTE module of non-configuration testing business is normal, and if so, then described in determining, the LTE module of non-configuration testing business is in up state, otherwise the LTE module of non-configuration testing business is in not up state described in determining;
Otherwise the LTE module of non-configuration testing business is in not up state described in determining.
Preferably, described preset value is 2.
Preferably, the LTE module of described non-configuration testing business comprises client identification module SIM card;
Described judging unit Z501 also for:
Judge that whether the state of this SIM card is normal, if so, then the LTE module state of non-configuration testing business described in determining is normal, otherwise described in determining, the state of the LTE module of non-configuration testing business is abnormal.
Preferably, described judging unit Z501, also for:
By power-on and power-off interface, the LTE module of described non-configuration testing business is switched to power-up state by power-down state;
The LTE module being switched to non-configuration testing business described in power-up state is carried out to the coupling of driver, and physical serial interface is mapped as virtual serial port;
The type information of the LTE module of non-configuration testing business described in being determined by described driver and virtual serial port;
After normally being communicated with the LTE module of described non-configuration testing business by virtual serial port, the command information for inquiring about this SIM card state corresponding to described type information is received according to the type information of the LTE module of described non-configuration testing business, if described command information indicates this SIM card state normal, then determine that the state of this SIM card is normal, otherwise, determine that the state of this SIM card is abnormal.
Preferably, described uploading unit Z504 specifically for: use LTE module upload daily record by described communication link to described background server, or use passback module upload daily record by described communication link to described background server;
When system uses LTE module to upload daily record by described communication link to described background server, if this LTE module is configured with new test service, what receive the transmission of this LTE module restarts system message.
Preferably, described judging unit the LTE module determining to realize test service be in not up state time, specifically for:
If determine at least one LTE module configuration testing business, then determine that the LTE module realizing test service is in not up state.
Preferably, be in not after up state in the LTE module determining to realize LTE test service, this device also comprises switch unit, and described switch unit is used for:
Setting is opening timing device also;
When receive that described timer sends reach the message of timing length time, interrupt the connection of passback module and background server, use LTE module connection background server also to re-establish communication link.
Preferably, the timing length of described timer is that the time point of the service ending of the LTE module according to configuration testing business sets.
In sum, daily record method for uploading in a kind of automatic drive test system that the embodiment of the present invention provides and device, for the problem only using traditional passback module to carry out the poor efficiency that daily record is uploaded in prior art, after the state of the LTE module to non-configuration testing business judges, when determining that LTE module is in up state, LTE module is used to upload daily record by described communication link to described background server, take full advantage of the Internet resources of LTE module, effectively raise the efficiency that daily record is uploaded, and event alarm reports the efficiency with state information report, monitoring work for background server provides in real time data message accurately, greatly reduce daily record uplink time, meanwhile, if determine, LTE module is in not up state, then use passback module to carry out daily record by described communication link to described background server and upload, and ensure that ADT system and the mutual accuracy of background server and reliability.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) of computer usable program code.
The present invention describes with reference to according to the flow chart of the method for the embodiment of the present invention, equipment (system) and computer program and/or block diagram.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame.These computer program instructions can being provided to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computer or other programmable data processing device produce device for realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make on computer or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computer or other programmable devices is provided for the step realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
Although describe the preferred embodiments of the present invention, those skilled in the art once obtain the basic creative concept of cicada, then can make other change and amendment to these embodiments.So claims are intended to be interpreted as comprising preferred embodiment and falling into all changes and the amendment of the scope of the invention.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (18)

1. the daily record method for uploading in automatic drive test system, it is characterized in that, the method comprises:
Judge whether the Long Term Evolution LTE module of non-configuration testing business is in up state, if so, then use LTE module connect background server and set up communication link; Otherwise, use passback model calling background server and set up communication link;
Daily record is uploaded to described background server by described communication link.
2. the method for claim 1, is characterized in that, whether the LTE module of the non-configuration testing business of described judgement is in up state, specifically comprises:
Judge whether the LTE module quantity of non-configuration testing business reaches preset value;
If, described in then judging, whether the state of the LTE module of non-configuration testing business is normal, and if so, then described in determining, the LTE module of non-configuration testing business is in up state, otherwise the LTE module of non-configuration testing business is in not up state described in determining;
Otherwise the LTE module of non-configuration testing business is in not up state described in determining.
3. method as claimed in claim 2, it is characterized in that, described preset value is 2.
4. method as claimed in claim 2, it is characterized in that, the LTE module of described non-configuration testing business comprises client identification module SIM card;
Described in judgement, whether the state of the LTE module of non-configuration testing business normally comprises:
Judge that whether the state of this SIM card is normal, if so, then the LTE module state of non-configuration testing business described in determining is normal, otherwise described in determining, the state of the LTE module of non-configuration testing business is abnormal.
5. method according to claim 4, is characterized in that, judges that whether the state of this SIM card is normal, specifically comprises:
By power-on and power-off interface, the LTE module of described non-configuration testing business is switched to power-up state by power-down state;
The LTE module being switched to non-configuration testing business described in power-up state is carried out to the coupling of driver, and physical serial interface is mapped as virtual serial port;
The type information of the LTE module of non-configuration testing business described in being determined by described driver and virtual serial port;
After normally being communicated with the LTE module of described non-configuration testing business by virtual serial port, the command information for inquiring about this SIM card state corresponding to described type information is received according to the type information of the LTE module of described non-configuration testing business, if described command information indicates this SIM card state normal, then determine that the state of this SIM card is normal, otherwise, determine that the state of this SIM card is abnormal.
6. method according to claim 1, it is characterized in that, daily record is uploaded to described background server by described communication link, comprise: use LTE module to upload daily record by described communication link to described background server, or use passback module to upload daily record by described communication link to described background server;
When system uses LTE module to upload daily record by described communication link to described background server, if this LTE module is configured with new test service, what receive the transmission of this LTE module restarts system message.
7. method according to claim 1, is characterized in that, the described LTE module determining to realize test service is in not up state, comprising:
If determine at least one LTE module configuration testing business, then determine that the LTE module realizing test service is in not up state.
8. method according to claim 7, is characterized in that, be in not after up state in the LTE module determining to realize LTE test service, the method also comprises:
Setting is opening timing device also;
When receive that described timer sends reach the message of timing length time, interrupt the connection of passback module and background server, use LTE module connection background server also to re-establish communication link.
9. method according to claim 8, is characterized in that, the timing length of described timer, is that the time point of the service ending of the LTE module according to configuration testing business sets.
10. a device is uploaded in the daily record in automatic drive test system, it is characterized in that, this device comprises:
Judging unit, for: judge whether the LTE module of non-configuration testing business is in up state, if so, then use LTE module connect background server and set up communication link; Otherwise, use passback model calling background server and set up communication link;
LTE linkage unit, for: use LTE module connect background server and set up communication link;
Passback model calling unit, for: use passback model calling background server and set up communication link;
Uploading unit, for uploading daily record by described communication link to described background server.
11. devices according to claim 10, is characterized in that, described judging unit, specifically for:
Judge whether the LTE module quantity of non-configuration testing business reaches preset value;
If, described in then judging, whether the state of the LTE module of non-configuration testing business is normal, and if so, then described in determining, the LTE module of non-configuration testing business is in up state, otherwise the LTE module of non-configuration testing business is in not up state described in determining;
Otherwise the LTE module of non-configuration testing business is in not up state described in determining.
12. devices according to claim 11, is characterized in that, described preset value is 2.
13. devices according to claim 11, is characterized in that, the LTE module of described non-configuration testing business comprises client identification module SIM card;
Described judging unit also for:
Judge that whether the state of this SIM card is normal, if so, then the LTE module state of non-configuration testing business described in determining is normal, otherwise described in determining, the state of the LTE module of non-configuration testing business is abnormal.
14. devices according to claim 13, is characterized in that, described judging unit concrete also for:
By power-on and power-off interface, the LTE module of described non-configuration testing business is switched to power-up state by power-down state;
The LTE module being switched to non-configuration testing business described in power-up state is carried out to the coupling of driver, and physical serial interface is mapped as virtual serial port;
The type information of the LTE module of non-configuration testing business described in being determined by described driver and virtual serial port;
After normally being communicated with the LTE module of described non-configuration testing business by virtual serial port, the command information for inquiring about this SIM card state corresponding to described type information is received according to the type information of the LTE module of described non-configuration testing business, if described command information indicates this SIM card state normal, then determine that the state of this SIM card is normal, otherwise, determine that the state of this SIM card is abnormal.
15. devices according to claim 10, it is characterized in that, described uploading unit specifically for: use LTE module upload daily record by described communication link to described background server, or use passback module upload daily record by described communication link to described background server;
When system uses LTE module to upload daily record by described communication link to described background server, if this LTE module is configured with new test service, what receive the transmission of this LTE module restarts system message.
16. devices according to claim 10, is characterized in that, described judging unit the LTE module determining to realize test service be in not up state time, specifically for:
If determine at least one LTE module configuration testing business, then determine that the LTE module realizing test service is in not up state.
17. devices according to claim 16, is characterized in that, be in not after up state in the LTE module determining to realize LTE test service, this device also comprises switch unit, and described switch unit is used for:
Setting is opening timing device also;
When receive that described timer sends reach the message of timing length time, interrupt the connection of passback module and background server, use LTE module connection background server also to re-establish communication link.
18. devices according to claim 17, is characterized in that, the timing length of described timer, are that the time point of the service ending of the LTE module according to configuration testing business sets.
CN201410440202.8A 2014-09-01 2014-09-01 Daily record method for uploading and device in a kind of automatic drive test system Active CN104244320B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410440202.8A CN104244320B (en) 2014-09-01 2014-09-01 Daily record method for uploading and device in a kind of automatic drive test system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410440202.8A CN104244320B (en) 2014-09-01 2014-09-01 Daily record method for uploading and device in a kind of automatic drive test system

Publications (2)

Publication Number Publication Date
CN104244320A true CN104244320A (en) 2014-12-24
CN104244320B CN104244320B (en) 2018-01-26

Family

ID=52231477

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410440202.8A Active CN104244320B (en) 2014-09-01 2014-09-01 Daily record method for uploading and device in a kind of automatic drive test system

Country Status (1)

Country Link
CN (1) CN104244320B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461953A (en) * 2014-12-31 2015-03-25 厦门雅迅网络股份有限公司 Method and system for carrying out linux log management through virtual serial port
CN108011966A (en) * 2017-12-14 2018-05-08 广东金赋科技股份有限公司 The optimization method that a kind of self-aided terminal log compression uploads
CN108039041A (en) * 2018-01-30 2018-05-15 北京博望华科科技有限公司 A kind of high speed 4G concentrators communication module, power information acquisition system and method
CN108647131A (en) * 2018-04-08 2018-10-12 广州视源电子科技股份有限公司 Output system of running log
CN109033189A (en) * 2018-06-27 2018-12-18 阿里巴巴集团控股有限公司 Compression method, device, server and the readable storage medium storing program for executing of link structure log

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102209345A (en) * 2010-03-29 2011-10-05 中兴通讯股份有限公司 Wireless communication system and method for reporting drive test result thereof
CN102438262A (en) * 2011-12-12 2012-05-02 大唐移动通信设备有限公司 Method for testing data return and apparatus thereof
WO2014044299A1 (en) * 2012-09-19 2014-03-27 Nokia Siemens Networks Oy Suspending minimization of drive tests (mdt) measurements

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102209345A (en) * 2010-03-29 2011-10-05 中兴通讯股份有限公司 Wireless communication system and method for reporting drive test result thereof
CN102438262A (en) * 2011-12-12 2012-05-02 大唐移动通信设备有限公司 Method for testing data return and apparatus thereof
WO2014044299A1 (en) * 2012-09-19 2014-03-27 Nokia Siemens Networks Oy Suspending minimization of drive tests (mdt) measurements

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461953A (en) * 2014-12-31 2015-03-25 厦门雅迅网络股份有限公司 Method and system for carrying out linux log management through virtual serial port
CN108011966A (en) * 2017-12-14 2018-05-08 广东金赋科技股份有限公司 The optimization method that a kind of self-aided terminal log compression uploads
CN108039041A (en) * 2018-01-30 2018-05-15 北京博望华科科技有限公司 A kind of high speed 4G concentrators communication module, power information acquisition system and method
CN108647131A (en) * 2018-04-08 2018-10-12 广州视源电子科技股份有限公司 Output system of running log
CN109033189A (en) * 2018-06-27 2018-12-18 阿里巴巴集团控股有限公司 Compression method, device, server and the readable storage medium storing program for executing of link structure log
CN109033189B (en) * 2018-06-27 2021-08-24 创新先进技术有限公司 Compression method and device of link structure log, server and readable storage medium

Also Published As

Publication number Publication date
CN104244320B (en) 2018-01-26

Similar Documents

Publication Publication Date Title
CN104244320A (en) Log uploading method and device in automatic road testing system
CN111030876B (en) NB-IoT terminal fault positioning method and device based on DPI
CN102333335B (en) Service recovery method, equipment and system for wireless local area network (WLAN)
CN101124841A (en) Active set update (ASU) with high speed downlink shared channel (HS-DSCH) information
EP2966894B1 (en) Computer readable storage medium comprising programs for minimization of drive tests
CN102045875A (en) Radio resource control (RRC) connection establishment method and device
CN104105114A (en) Data transmission method, device and terminal
CN103597798B (en) Strengthen the method for the high availability in secure telecommunications network and comprise the communication network of multiple remote node
CN102404158B (en) Method, device and system for processing network failures
EP2925051A1 (en) Method, device and wireless communication system for dual-network backup
CN103686854A (en) Method and device for controlling AP
CN105120530A (en) Method and device for acquiring data and data acquisition system
WO2017143968A1 (en) Basic service set identifier (bssid) updating
CN101951622A (en) Radio remote unit power-off alarm processing method and system
CN105228207A (en) A kind of method and device of verifying LTE network circuit domain dropping CSFB functional configuration
CN108833149A (en) Method and system for monitoring network availability and self-healing of express delivery cabinet
US20200404487A1 (en) Security auditing system and method
WO2011017981A1 (en) Method, system and client end for collecting network planning and optimizing reference information
EP2584814B1 (en) Method and radio network control for tracking the international mobile station equipment identity of user equipment
CN104168640A (en) Reception end PDCP layer HFN out-off-step recovering method and device
CN111491291B (en) Network connection method, SIM card, system, terminal and medium
WO2021063251A1 (en) Site management method applied to communication system and related device
CN106254346A (en) Security strategy update method and system
CN101959223B (en) Self-healing control method and self-healing control device of flow-control transport protocol link failure
CN107483366B (en) Automatic connection method and device for interface expansion equipment of longitudinal stacking environment

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