CN106209993B - Mobile unit data complexity difference uploading system and method are realized based on QP quantum state machine - Google Patents

Mobile unit data complexity difference uploading system and method are realized based on QP quantum state machine Download PDF

Info

Publication number
CN106209993B
CN106209993B CN201610498602.3A CN201610498602A CN106209993B CN 106209993 B CN106209993 B CN 106209993B CN 201610498602 A CN201610498602 A CN 201610498602A CN 106209993 B CN106209993 B CN 106209993B
Authority
CN
China
Prior art keywords
state machine
data
quantum state
function
message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610498602.3A
Other languages
Chinese (zh)
Other versions
CN106209993A (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.)
Dalian Roiland Technology Co Ltd
Original Assignee
Dalian Roiland Technology 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 Dalian Roiland Technology Co Ltd filed Critical Dalian Roiland Technology Co Ltd
Priority to CN201610498602.3A priority Critical patent/CN106209993B/en
Publication of CN106209993A publication Critical patent/CN106209993A/en
Application granted granted Critical
Publication of CN106209993B publication Critical patent/CN106209993B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The present invention relates to data uploading methods, and in particular to one kind realizes mobile unit data complexity difference uploading system and method based on QP quantum state machine.Method includes the following steps: S1 creates QP quantum state machine;S2 difference uploading module receives the message acquired from OBD bus or Intranet, and message event triggers QP quantum state machine and handles function;S3 QP quantum state machine judges data validity according to rules Acquires data is uploaded, and data are packaged and are uploaded to client by network.The present invention utilizes QP quantum state machine, the embedded system developed based on C language, vehicle data upload demand complicated and changeable can flexibly be coped with, the complicated upload rule that reply is formulated according to different business demands, ensure that the particular value being closely related with business demand uploads, the redundancy of vehicle data is reduced, broadband resource is not only reduced but also reduces storage pressure;Its availability is improved, the maintenance and expansion for business of being more convenient for.

Description

Based on QP quantum state machine realize mobile unit data complexity difference uploading system and Method
Technical field
The present invention relates to data uploading methods, and in particular to one kind realizes that mobile unit data are multiple based on QP quantum state machine Miscellaneous difference uploading system and method.
Background technique
Car networking product by OBD bus, Intranet (CAN line) acquire data (such as speed, engine speed, total kilometrage, This mileage, course continuation mileage, remaining service cycle, time, water temperature, inside and outside temperature, oil level, engine oil level, GPS information, vehicle Body status information, GPS information ...), intuitive vehicle data information can not only be provided for car owner, and pass through data collection To subsequent analysis, data exhibiting, the business such as UBI modeling exert far reaching influence, and (e.g., oil consumption, congestion mileage, regular job are commented Estimate ...), however the extension that mode is not able to satisfy above-mentioned business not only is uploaded in view of simple vehicle data only at present, And for data statistics increase difficulty, it is more inefficient the disadvantages of.
Summary of the invention
The problems such as present invention uploads to solve to can not achieve complex data in the prior art, repeated and redundant, provides one Kind realizes the system and method for uploading that complicated difference uploads using QP quantum state machine, can cope with according to different business demand systems Fixed complicated upload rule.
In order to achieve the above objectives, the present invention adopts the following technical scheme: realizing mobile unit number based on QP quantum state machine According to complicated difference method for uploading, comprising the following steps:
S1 creates QP quantum state machine;
S2 difference uploading module receives the message acquired from OBD bus or Intranet, and message event triggers QP quantum state Machine handles function;
S3QP quantum state machine judges data validity according to rules Acquires data is uploaded, and data packing is passed through network It is uploaded to client.
Preferably, step S1 further include: data are uploaded according to state machine object and message inspection function creation overall situation difference Table successively creates QP quantum state machine according to the content of tables of data.
As a preferred embodiment of the invention, it includes state machine object, message inspection that global difference, which uploads tables of data, Function, QP quantum state machine processing function and business relevant treatment function;
State machine object, including speed, engine speed, total kilometrage, this mileage, course continuation mileage, remaining service cycle, Time, water temperature, inside and outside temperature, oil level, engine oil level, GPS information and vehicle body status information;
Message inspection function, for being the identifiable signal of QP quantum state machine by message transformation;
QP quantum state machine handles function, for calling different upload rules, obtains and uploads data;
Data packing is passed through net for judging that QP quantum state machine obtains data validity by business relevant treatment function Network is uploaded to client.
Preferably, the step S2 are as follows: difference uploading module is by communications reception message between different processes, using message The message transformation is the identifiable signal of QP quantum state machine by inspection function, and triggering QP quantum state machine handles function.
Preferably, the step S3 are as follows: QP quantum state machine processing function calls different respectively according to the signal received Upload rule, obtain data, call business relevant treatment function check data validity data are beaten if data are effective Packet uploads to client by network module again.
Preferably, the complicated difference method for uploading further includes step S4: obtaining current new_ from data center module Data is assigned to old_data, then waits next signal.
Second purpose of the invention is to be claimed to realize in mobile unit data complexity difference based on QP quantum state machine Biography system, the system include QP quantum state machine, difference uploading module and network module.
Preferably, QP quantum state machine includes event handler, event-driven module and task scheduling modules.
Preferably, difference uploading module includes receiving module, message inspection module and function processing module.
In conjunction with mobile unit business demand, inventor find different vehicle datas not only for use object, business Direction is different, and regular be also not of upload of data complexity can summarize realization with one or several simple process, In need to upload particular value, in need complementary (such as: oil level is uploaded when vehicle is struck sparks according to rule, the duration of stopping working Time just uploads once), what variation in need uploaded (changes and just uploads;Variation a certain range just uploads ...), it is with good grounds It defines value and specifies different upload rules, can be considered a complicated small application in view of the upload of each vehicle data.QP (Quantum Programming) quantum state machine is realized based on UML (Unified Modeling Language) state machine New architecture, using QP quantum state machine (event-driven for combining hierarchy type state machine) method on the one hand be not only able to achieve simultaneously Event handling is sent out, on the other hand allows code smaller, more healthy and stronger and more flexible, more efficient, and is easy to maintain and expand and develop.
Compared with prior art, advantage of the invention is as follows: the present invention utilizes QP quantum state machine, is opened based on C language The embedded system of hair can flexibly cope with vehicle data upload demand complicated and changeable, cope with according to different business demand systems Fixed complicated upload rule, ensures that the particular value being closely related with business demand uploads, reduces the redundancy of vehicle data, no It only reduces broadband resource and reduces storage pressure;Its availability is improved, the maintenance and expansion for business of being more convenient for.
Detailed description of the invention
Fig. 1 is that global difference uploads schematic diagram data;
Fig. 2 is message inspection function of the present invention;
Fig. 3 is that QP quantum state machine of the present invention handles function.
Specific embodiment
To keep the purposes, technical schemes and advantages of the embodiment of the present invention clearer, below with reference to the embodiment of the present invention In attached drawing, technical solution in the embodiment of the present invention carries out clear and complete description:
One, it creates global difference and uploads tables of data, referring to table structure as shown in Figure 1:
State machine object (status_object);
(check_msg_func checks message according to msg_signal_table to message inspection function, and by message transformation For the identifiable signal of QP quantum state machine);
Msg_signal_table structural body member: msg, signal
The non-known interface function of message inspection function, but customized function;It is as shown in Figure 2:
The message inspection function receives msg, and according to msg_signal_table [] array, (msg and signal mono- are a pair of Answer) check in discovery msg_signal_table [0], have msg, msg is corresponded into signal and is spread out of item by item.
(status_constructor_func is called QP quantum state machine processing function respectively according to the signal received Different upload rules, obtains and uploads data);
QP quantum state machine handles function status_constructor_func: encapsulating the constructed fuction of foundation class QHsm_ctor (QHsm structure storage state variable, it is the pointer of a direction state processing function), calls state processing letter Number msg_handle (is usually made of switch sentence, according to unlike signal, calls the processing event of Different Rule respectively, obtain It takes and uploads data)
Assuming that: multimode such as A (current state), B, the state processing function msg_handleA of state A, the state of state B Function msg_handleB is handled, as shown in Figure 3: when receiving signal_A, calling the processing function msg_ of state A HandleA, if desired generating state A transition status B, specifies the sub- state of target using Q_TRAN (), such as 1. handles, otherwise makes With Q_HANDLED (), this event of notification event processor has been processed, and is such as 2. handled.
(send_handle_func judges data validity to business relevant treatment function, and data are packaged by network Pass to client, mobile unit);The function is the function encapsulated according to business demand.
The data that above-mentioned function obtains are passed in send_handle_func function, (such as: interior according to data validity Between outer temperature [- 100,200], speed, revolving speed, remaining service cycle, the time >=0 etc.), if data invalid abandons, abandon It uploads;If data are effective, according to the communication protocol packaged data between platform and equipment, client, mobile unit are uploaded to.
Upload data:
Such as speed, engine speed, total kilometrage, this mileage continues course continuation mileage, remaining service cycle, time, water temperature, Inside and outside temperature, oil level, engine oil level, GPS information, vehicle body status information etc..
Two, QP quantum state machine is interacted with difference uploading module
Complicated difference uploading module, using QP quantum state machine as foundation stone, the vehicle data that will acquire is uploaded by network To mobile unit, detailed process is as follows:
1) system main program passes through global difference upload tables of data, successively creates QP quantum state machine
2) difference uploading module is connected to the message from OBD bus or Intranet acquisition, checks that function will using Messages Message The message transformation is the identifiable signal of QP quantum state machine, and triggering QP quantum state machine handles function;
3) QP quantum state machine processing function calls different upload rules respectively, obtains number according to the signal received According to, call business relevant treatment function judge data validity (such as: mileage, speed etc. >=0;Inside and outside temperature -100 and Between 200), if data are effective, data packing is uploaded into mobile unit by network module again.
Embodiment 1 is by taking the upload of course continuation mileage difference as an example:
Course continuation mileage difference uploading system, including QP quantum state machine, difference uploading module and network module.QP quantum shape State machine includes event handler, event-driven module and task scheduling modules.Difference uploading module includes receiving module, message inspection Look into module and function processing module.
Upload rule:
1.ACC uploads primary when powering on ACC power-off;
It is uploaded 2. course continuation mileage 100Km or more variation 30Km record is primary, 100Km or less changes 10Km and records on primary It passes;
Every 10S uploads primary in 3.ACC power up.
Process is realized:
(1) course continuation mileage QP quantum state machine and ACCON QP quantum state machine are created;
(2) course continuation mileage QP quantum state machine time-out Timer (1s) is created, ACCON QP quantum state machine time-out Timer (10s);
(3) course continuation mileage QP quantum state machine receives ACCON message, calls message inspection function, is by message transformation The identifiable signal of course continuation mileage QP quantum state machine, trigger signal handle event, first check for data validity (being greater than 0), Data are packaged again, upload to client by network;
(4) course continuation mileage QP quantum state machine receives ACCOFF message, message inspection function is called, by message transformation For the identifiable signal of course continuation mileage QP quantum state machine, trigger signal handles event, first checks for data validity and (be greater than 0), then data are packaged, and upload to client by network;
(5) it from data center module (module of storage vehicle data), obtains course continuation mileage and is saved in old_data;
(6) course continuation mileage QP quantum state machine, every 1s receive timeout signal, trigger signal event handling, i.e., to upload Regular traffic judgement first checks that data are packaged again by data validity (being greater than 0) if data are effective if meeting upload rule Client, which is uploaded to, by network module is assigned to old_ from the current course continuation mileage new_data of data center module acquisition simultaneously Data, then wait next timeout signal;
(7) ACCON QP quantum state machine, every 10s receive timeout signal, and trigger signal handles event, check that data are effective Property (be greater than 0), then data are packaged, and upload to client by network.
The foregoing is only a preferred embodiment of the present invention, but scope of protection of the present invention is not limited thereto, Anyone skilled in the art within the technical scope of the present disclosure, according to the technique and scheme of the present invention and its Inventive concept is subject to equivalent substitution or change, should be covered by the protection scope of the present invention.

Claims (1)

1. realizing mobile unit data complexity difference method for uploading based on QP quantum state machine, which is characterized in that including following step It is rapid:
S1 uploads tables of data according to state machine object and message inspection function creation overall situation difference, according to the content of tables of data according to Secondary creation QP quantum state machine;
It includes state machine object, message inspection function, QP quantum state machine processing function and business that global difference, which uploads tables of data, Relevant treatment function;State machine object, including speed, engine speed, total kilometrage, this mileage, course continuation mileage, remaining maintenance Mileage, time, water temperature, inside and outside temperature, oil level, engine oil level, GPS information and vehicle body status information;
Message inspection function, for being the identifiable signal of QP quantum state machine by message transformation;
QP quantum state machine handles function, encapsulates the constructed fuction QHsm_ctor of foundation class, calls state processing function msg_ Handle calls different upload rules respectively, obtains and upload data according to unlike signal;
Data are packaged by network by business relevant treatment function for judging that QP quantum state machine obtains data validity Reach client;
S2 difference uploading module is by communications reception message between different processes, using message inspection function by the message transformation For the identifiable signal of QP quantum state machine, triggers QP quantum state machine and handle function;
S3 QP quantum state machine processing function calls different upload rules respectively, obtains data according to the signal received, Calling business relevant treatment function judges data validity, if data are effective, data is packaged and are uploaded again by network module To client;
S4 obtains current new_data from data center module and is assigned to old_data, then waits next signal.
CN201610498602.3A 2016-06-30 2016-06-30 Mobile unit data complexity difference uploading system and method are realized based on QP quantum state machine Active CN106209993B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610498602.3A CN106209993B (en) 2016-06-30 2016-06-30 Mobile unit data complexity difference uploading system and method are realized based on QP quantum state machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610498602.3A CN106209993B (en) 2016-06-30 2016-06-30 Mobile unit data complexity difference uploading system and method are realized based on QP quantum state machine

Publications (2)

Publication Number Publication Date
CN106209993A CN106209993A (en) 2016-12-07
CN106209993B true CN106209993B (en) 2019-08-27

Family

ID=57463375

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610498602.3A Active CN106209993B (en) 2016-06-30 2016-06-30 Mobile unit data complexity difference uploading system and method are realized based on QP quantum state machine

Country Status (1)

Country Link
CN (1) CN106209993B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101332816A (en) * 2008-06-11 2008-12-31 山东大学 Open vehicle mechanical type automatic speed-variator electric control system
CN102044014A (en) * 2010-09-10 2011-05-04 深圳市航天星网通讯有限公司 Method for providing guarantee delay service for automobile based on OBD (On-Board Diagnostics) technology
CN102331760A (en) * 2011-07-15 2012-01-25 深圳市路畅科技有限公司 Method and system for remotely diagnosing vehicle failure in real time
CN102385380A (en) * 2011-09-23 2012-03-21 广西三原高新科技有限公司 Cluster automobile diagnosis information platform

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101332816A (en) * 2008-06-11 2008-12-31 山东大学 Open vehicle mechanical type automatic speed-variator electric control system
CN102044014A (en) * 2010-09-10 2011-05-04 深圳市航天星网通讯有限公司 Method for providing guarantee delay service for automobile based on OBD (On-Board Diagnostics) technology
CN102331760A (en) * 2011-07-15 2012-01-25 深圳市路畅科技有限公司 Method and system for remotely diagnosing vehicle failure in real time
CN102385380A (en) * 2011-09-23 2012-03-21 广西三原高新科技有限公司 Cluster automobile diagnosis information platform

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于量子框架的汽车电控系统软件总线研究;杨泉;《中国优秀硕士学位论文全文数据库信息科技辑》;20090115(第1期);第8-18页,图2-1 *

Also Published As

Publication number Publication date
CN106209993A (en) 2016-12-07

Similar Documents

Publication Publication Date Title
CN107390650B (en) A kind of data collection system based on Internet of Things and the data compression method based on the system
CN101789171B (en) Method and system for changing data transfer bus
CN104049575A (en) Collecting And Delivering Data To A Big Data Machine In A Process Control System
TWI623881B (en) Event stream processing system, method and machine-readable storage
CN104410512A (en) Resource monitoring alarm framework suitable for cloud computation and method thereof
CN106162528A (en) LoRa signal and Bluetooth signal modular converter, conversion method and sender unit
CN104022895B (en) Internet cascading failure diagnostic analysis system
CN112462724A (en) Data monitoring system based on industrial internet
KR20170105327A (en) Apparatus for collecting and analyzing information from devices over different IoT platforms and method for transferring information
Rath et al. MAQ system development in mobile ad-hoc networks using mobile agents
CN107463476A (en) The acquisition methods and device of information
CN103973489B (en) A kind of heterogeneous device centralized monitoring system
CN114710571A (en) Data packet processing system
CN108337625A (en) A kind of switching method and device of operating mode
CN110113771A (en) Data processing method, device, gateway and storage medium
EP4348961A1 (en) A packet data unit session for machine learning exploration for wireless communication network optimization
CN106209993B (en) Mobile unit data complexity difference uploading system and method are realized based on QP quantum state machine
CN106953809B (en) 485 time-sharing communication-based equipment resource acquisition method
CN106204790B (en) Mobile unit data complexity difference uploads platform
CN102375912A (en) Data integration device and method among different engineering software systems
CN108683565B (en) Data processing system based on narrowband Internet of things
CN106685764A (en) Communication system and communication method based on data acquisition transmission
CN105323234B (en) Service node ability processing method, device, business classifier and service controller
CN102655480B (en) Similar mail treatment system and method
CN211293728U (en) Data interaction system between PLC remote modules

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