CN104519059A - Vehicular real-time alarm processing system and method - Google Patents

Vehicular real-time alarm processing system and method Download PDF

Info

Publication number
CN104519059A
CN104519059A CN201410779658.7A CN201410779658A CN104519059A CN 104519059 A CN104519059 A CN 104519059A CN 201410779658 A CN201410779658 A CN 201410779658A CN 104519059 A CN104519059 A CN 104519059A
Authority
CN
China
Prior art keywords
module
real
time
communication node
calculation services
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
CN201410779658.7A
Other languages
Chinese (zh)
Other versions
CN104519059B (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.)
BEIJING SINOIOV VEHICLE NETWORK TECHNOLOGY Co Ltd
Original Assignee
BEIJING SINOIOV VEHICLE NETWORK 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 BEIJING SINOIOV VEHICLE NETWORK TECHNOLOGY Co Ltd filed Critical BEIJING SINOIOV VEHICLE NETWORK TECHNOLOGY Co Ltd
Priority to CN201410779658.7A priority Critical patent/CN104519059B/en
Publication of CN104519059A publication Critical patent/CN104519059A/en
Application granted granted Critical
Publication of CN104519059B publication Critical patent/CN104519059B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a vehicular real-time alarm processing system comprising multiple communication node modules, a registration center module, a distributed buffer module, multiple real-time computation service modules and a distributed queue kafka module. The communication node modules are configured to distribute vehicle machine information; the registration center module is configured to control connection between the communication node module and the real-time computation service modules; the distributed buffer module is configured to buffer previous-point alarm information on a vehicle machine; the real-time computation service modules are configured to compute and generate and end alarm; the distributed queue kafka module is configured to store computed alarm information. The invention further provides a vehicular real-time alarm processing method.

Description

A kind of Real-time Alarm treatment system of vehicle and method
Technical field
The present invention relates to the technical field of car alarming, relate to a kind of Real-time Alarm treatment system and method for vehicle particularly, be mainly used in processing car machine in real time and report to the police, calculate in real time and produce warning, terminate to report to the police.
Background technology
Along with the development and progress of human society, people adopt automobile as the vehicles more and more, and the automobile on road increases swift and violent, and traffic accident also increases thereupon fast.In order to the appearance of vehicle dangerous situations such as reducing or avoid traffic accident, with regard to needing, the situation of vehicle being detected, running into the situation exceeding threshold value, produce and report to the police; When vehicle recovers normally, cancel and reporting to the police.
At present, market has occurred some vehicle alarming processing system and methods, but these vehicle alarming processing system and methods there is following shortcoming:
1. prior art uses standalone processes to adopt local cache to improve single node disposal ability, along with access vehicle constantly increases, when standalone processes is limited in one's ability, cannot realize level of linearity expansion increases machine, improve and process alert capability in real time, thus cause whole platform access amount to decline.
2. prior art adopts standalone processes, only can two-node cluster hot backup mode, when a mechanical disorder, is switched in the middle of another machine or service upgrade process, causes car machine warning mistake in computation.
3. adopt common socket to send data between communication node and real time service, need between communication to define specific data protocol form, need, to the Data Analysis of transmission, to be converted into into the data of application layer, require high to the development level of developer.
4. warning result of calculation batch submits database to, because database itself exists IO performance bottleneck, thus causes real-time calculation services disposal ability to decline.
Summary of the invention
Technology of the present invention is dealt with problems and is: overcome the deficiencies in the prior art, a kind of Real-time Alarm treatment system of vehicle is provided, it can solve the problem that multimachine device calculates warning, Single Point of Faliure, horizontal extension increase machine, lifting platform process alert capability, different language code can be generated, for developer brings convenient, can carry out calculating in real time and produce warnings, terminate warning, the problem of database purchase IO performance can be solved.
Technical solution of the present invention is: the Real-time Alarm treatment system of this vehicle, and it comprises communication node module, registration center's module, distributed caching module, in real time calculation services module, distributed queue kafka module; Communication node block configuration carrys out distributing vehicle machine information; Registration center's block configuration is carried out communication control node module and is connected between calculation services module in real time; Distributed caching block configuration carrys out some warning messages on slow parking machine; Real-time calculation services block configuration calculates and produces warning, terminates to report to the police; Distributed queue's kafka block configuration stores the warning message after calculating; Communication node module and real-time calculation services module are multiple.
Additionally provide a kind of Real-time Alarm processing method of vehicle, the method comprises the following steps:
(1) registration center's module is started;
(2) calculation services module, by specified format configuration registry center IP and port numbers, starts real-time calculation services model calling registration center module in real time;
(3) communication node module is by specified format configuration registry center IP and port numbers, starts communication node model calling registration center module;
(4) communication node module gets IP and the port numbers of real-time calculation services module, connects real-time calculation services module;
(5), after communication node module starts, have new real-time calculation services model calling registration center module again if follow-up, registration center's module notifies this communication node module, the real-time calculation services module that this communication node model calling is new;
(6) communication node module reports cell-phone number to carry out hash algorithm with the nodes being connected real-time calculation services module by car machine, same cell-phone number car machine information is sent to the real-time computing node of same real-time calculation services module;
(7) the real-time computing node of calculation services module receives data in real time, carries out hash algorithm, same cell-phone number car machine information is distributed to same thread process by cell-phone number to processing threads number;
(8) put warning message last time by cell-phone number from the acquisition of distributed caching module, and this reported warning decimal system information stored in distributed caching module, wait lower train machine to report use;
(9) will produce and terminate warning relevant information, asynchronous distribution is in storage multithreading;
(10) warning message writes distributed queue kafka in real time.
Beneficial effect of the present invention is:
1. adopt some warning messages on distributed caching car machine, solve multimachine device and calculate warning, Single Point of Faliure, high-performance, horizontal extension, lifting platform process alert capability, ensures single machine process per second 8,000 same alarms of car machine, increases gallery process alert capability and increases by 80%.
2. communication node and in real time adopt across Language Communication framework thrift rpc technology between calculation services, by code generator, according to the data structure of definition, generates different language code, for developer bring convenient.
3. manage real-time calculation services and communication node by registration center, communication node connects registration center, and obtain real-time calculation services IP and port numbers, be dynamically connected real-time calculation services certainly; Real-time calculation services connects registration center, and the registered real-time calculation services IP of registration center's notification communication node and port numbers, be dynamically connected real-time calculation services certainly.Communication node finds real-time calculation services automatically, without the need to configuring real-time calculation services IP and port numbers by configuration file, real-time calculation services increases machine, communication node is without the need to amendment configuration, when real-time computing node rolls off the production line, the timely notification communication node of registration center, communication node disconnects the node that rolls off the production line automatically.
4. warning result of calculation directly stored in high-performance distributed queue kafka, solves database purchase IO performance issue by asynchronous system.
Accompanying drawing explanation
Fig. 1 is the structural representation of the Real-time Alarm treatment system of vehicle according to the invention.
Fig. 2 is the flow chart of the Real-time Alarm processing method of vehicle according to the invention.
Fig. 3 is the flow chart of process in accordance with the present invention (8).
Embodiment
As shown in Figure 1, the Real-time Alarm treatment system of this vehicle, it comprises communication node module (communication node in Fig. 1), registration center's module (registration center in Fig. 1), distributed caching module (distributed caching in Fig. 1), in real time calculation services module (the real-time calculation services in Fig. 1), distributed queue kafka module (the distributed queue kafka in Fig. 1); Communication node block configuration carrys out distributing vehicle machine information; Registration center's block configuration is carried out communication control node module and is connected between calculation services module in real time; Distributed caching block configuration carrys out some warning messages on slow parking machine; Real-time calculation services block configuration calculates and produces warning, terminates to report to the police; Distributed queue's kafka block configuration stores the warning message after calculating; Communication node module and real-time calculation services module are multiple.
As shown in Figure 2, additionally provide a kind of Real-time Alarm processing method of vehicle, the method comprises the following steps:
(1) registration center's module is started;
(2) calculation services module, by specified format configuration registry center IP and port numbers, starts real-time calculation services model calling registration center module in real time;
(3) communication node module is by specified format configuration registry center IP and port numbers, starts communication node model calling registration center module;
(4) communication node module gets IP and the port numbers of real-time calculation services module, connects real-time calculation services module;
(5), after communication node module starts, have new real-time calculation services model calling registration center module again if follow-up, registration center's module notifies this communication node module, the real-time calculation services module that this communication node model calling is new;
(6) communication node module reports cell-phone number to carry out hash algorithm with the nodes being connected real-time calculation services module by car machine, same cell-phone number car machine information is sent to the real-time computing node of same real-time calculation services module;
(7) the real-time computing node of calculation services module receives data in real time, carries out hash algorithm, same cell-phone number car machine information is distributed to same thread process by cell-phone number to processing threads number;
(8) put warning message last time by cell-phone number from the acquisition of distributed caching module, and this reported warning decimal system information stored in distributed caching module, wait lower train machine to report use;
(9) will produce and terminate warning relevant information, asynchronous distribution is in storage multithreading;
(10) warning message writes distributed queue kafka module in real time.
In addition, multiple real-time calculation services module is started in described step (2).
In addition, multiple communication node module is started in described step (3).
In addition, described specified format is xxxx.properties.Xxxx.properties configuration format is as follows:
# configuration connects all zookeeper:ip:port of registration center
zookeeper_ip_port=192.168.100.0:2181,192.168.100.1:2181,192.168.100.2:2181
In addition, as shown in Figure 3, in described step (8): if put warning message last time for empty, then represent that this car machine first time reports warning message to platform, then directly calculate warning starting point; If be not empty, warning decimal number and the warning decimal number reported are carried out xor operation, result be 0 report a little do not have produce report to the police, terminate report to the police, be not 0, then transfer the result decimal system to binary system, binary data is reversed, binary data is resolved in circulation, and flag bit is 0, represents that this reports a little this flag bit upper to report to the police and terminates, flag bit 1, represents that this reports a little this flag bit upper to produce this warning.
Beneficial effect of the present invention is:
1. adopt some warning messages on distributed caching car machine, solve multimachine device and calculate warning, Single Point of Faliure, high-performance, horizontal extension, lifting platform process alert capability, ensures single machine process per second 8,000 same alarms of car machine, increases gallery process alert capability and increases by 80%.
2. communication node and in real time adopt across Language Communication framework thrift rpc technology between calculation services, by code generator, according to the data structure of definition, generates different language code, for developer bring convenient.
3. manage real-time calculation services and communication node by registration center, communication node connects registration center, and obtain real-time calculation services IP and port numbers, be dynamically connected real-time calculation services certainly; Real-time calculation services connects registration center, and the registered real-time calculation services IP of registration center's notification communication node and port numbers, be dynamically connected real-time calculation services certainly.Communication node finds real-time calculation services automatically, without the need to configuring real-time calculation services IP and port numbers by configuration file, real-time calculation services increases machine, communication node is without the need to amendment configuration, when real-time computing node rolls off the production line, the timely notification communication node of registration center, communication node disconnects the node that rolls off the production line automatically.
4. warning result of calculation directly stored in high-performance distributed queue kafka, solves database purchase IO performance issue by asynchronous system.
Below provide application scenarios of the present invention:
The processing procedure of process cell-phone number 19199999910 (only with for example) car machine reporting information is as follows:
1. start 192.168.100.1 and 192.168.100.2 machine real-time calculation services model calling registration center module.
2. start 192.168.100.3 machine communication node module and connect registration center's module.
3. communication node module receives real-time calculation services module 192.168.100.1 IP and port numbers 6665,192.168.100.2 IP and port numbers 6665.
4. communication node model calling IP 192.168.100.1 port numbers 6665 and IP192.168.100.2 port numbers 6665 calculation services module in real time.
5. communication node module is by cell-phone number 19199999910 and 2 Hash, data is sent to the real-time calculation services module of 192.168.100.2.
6. calculation services module receives Data dissemination to processing threads in real time, last warning message is obtained from distributed caching module according to cell-phone number 19199999910, inquire as sky, the current decimal system warning message that reports is 3, is that key is stored in distributed caching module by decimal number 3 with cell-phone number.Transfer binary one 1 to by 3, the 0th is 1, and present bit represents emergency alarm, then produce emergency alarm, and the 1st is 1, and present bit represents hypervelocity, then produce overspeed alarming.By data stored in distributed queue kafka module.
7. when cell-phone number 19199999910 information is re-send to the real-time calculation services module of 192.168.100.2 by communication node module, last warning message is obtained from distributed caching module according to cell-phone number 19199999910, xor operation is carried out with the current warning message 1 that reports, draw 2, binary one 0 will be transferred to, reversion rear 01, to 01 from right to left, the 0th starts to judge.0th is 1, and representing reports to the police does not terminate, and the 1st is 0, and representing reports to the police terminates, and present bit represents hypervelocity, so overspeed alarming terminates.Be that key is stored in distributed caching module with cell-phone number by decimal number 1; By data stored in distributed queue kafka module.
8. repeat the 7th step and process cell-phone number 19199999910 warning message always.
The above; it is only preferred embodiment of the present invention; not any pro forma restriction is done to the present invention, every above embodiment is done according to technical spirit of the present invention any simple modification, equivalent variations and modification, all still belong to the protection range of technical solution of the present invention.

Claims (6)

1. a Real-time Alarm treatment system for vehicle, is characterized in that: it comprises communication node module, registration center's module, distributed caching module, in real time calculation services module, distributed queue kafka module; Communication node block configuration carrys out distributing vehicle machine information; Registration center's block configuration is carried out communication control node module and is connected between calculation services module in real time; Distributed caching block configuration carrys out some warning messages on slow parking machine; Real-time calculation services block configuration calculates and produces warning, terminates to report to the police; Distributed queue's kafka block configuration stores the warning message after calculating; Communication node module and real-time calculation services module are multiple.
2. a Real-time Alarm processing method for vehicle, is characterized in that: the method comprises the following steps:
(1) registration center's module is started;
(2) calculation services module, by specified format configuration registry center IP and port numbers, starts real-time calculation services model calling registration center module in real time;
(3) communication node module is by specified format configuration registry center IP and port numbers, starts communication node model calling registration center module;
(4) communication node module gets IP and the port numbers of real-time calculation services module, connects real-time calculation services module;
(5), after communication node module starts, have new real-time calculation services model calling registration center module again if follow-up, registration center's module notifies this communication node module, the real-time calculation services module that this communication node model calling is new;
(6) communication node module reports cell-phone number to carry out hash algorithm with the nodes being connected real-time calculation services module by car machine, same cell-phone number car machine information is sent to the real-time computing node of same real-time calculation services module;
(7) the real-time computing node of calculation services module receives data in real time, carries out hash algorithm, same cell-phone number car machine information is distributed to same thread process by cell-phone number to processing threads number;
(8) put warning message last time by cell-phone number from the acquisition of distributed caching module, and this reported warning decimal system information stored in distributed caching module, wait lower train machine to report use;
(9) will produce and terminate warning relevant information, asynchronous distribution is in storage multithreading;
(10) warning message writes distributed queue kafka module in real time.
3. the Real-time Alarm processing method of vehicle according to claim 2, is characterized in that: start multiple real-time calculation services module in described step (2).
4. the Real-time Alarm processing method of vehicle according to claim 3, is characterized in that: start multiple communication node module in described step (3).
5. the Real-time Alarm processing method of vehicle according to claim 4, is characterized in that: described specified format is xxxx.properties.
6. the Real-time Alarm processing method of vehicle according to claim 5, it is characterized in that: in described step (8): if put warning message last time for empty, then represent that this car machine first time reports warning message to platform, then directly calculate warning starting point; If be not empty, warning decimal number and the warning decimal number reported are carried out xor operation, result be 0 report a little do not have produce report to the police, terminate report to the police, be not 0, then transfer the result decimal system to binary system, binary data is reversed, binary data is resolved in circulation, and flag bit is 0, represents that this reports a little this flag bit upper to report to the police and terminates, flag bit 1, represents that this reports a little this flag bit upper to produce this warning.
CN201410779658.7A 2014-12-16 2014-12-16 The Real-time Alarm processing system and method for a kind of vehicle Active CN104519059B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410779658.7A CN104519059B (en) 2014-12-16 2014-12-16 The Real-time Alarm processing system and method for a kind of vehicle

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410779658.7A CN104519059B (en) 2014-12-16 2014-12-16 The Real-time Alarm processing system and method for a kind of vehicle

Publications (2)

Publication Number Publication Date
CN104519059A true CN104519059A (en) 2015-04-15
CN104519059B CN104519059B (en) 2018-02-27

Family

ID=52793781

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410779658.7A Active CN104519059B (en) 2014-12-16 2014-12-16 The Real-time Alarm processing system and method for a kind of vehicle

Country Status (1)

Country Link
CN (1) CN104519059B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106549823A (en) * 2016-09-21 2017-03-29 南京途牛科技有限公司 A kind of distributed real-time streams computing system
CN109801399A (en) * 2018-12-29 2019-05-24 北京理工新源信息科技有限公司 New energy vehicle failure Realtime Alerts method and system
CN110555042A (en) * 2018-03-30 2019-12-10 车伯乐(北京)信息科技有限公司 Real-time data retrieval method, device and system
CN111740953A (en) * 2020-05-13 2020-10-02 南斗六星系统集成有限公司 Data access forwarding method and system for vehicle supervision platform
CN114553944A (en) * 2021-12-30 2022-05-27 以萨技术股份有限公司 Early warning message pushing method and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6970935B1 (en) * 2000-11-01 2005-11-29 International Business Machines Corporation Conversational networking via transport, coding and control conversational protocols
CN103247186A (en) * 2013-04-26 2013-08-14 广州通易科技有限公司 Scene-based driver assistant system realizing method
US8639214B1 (en) * 2007-10-26 2014-01-28 Iwao Fujisaki Communication device
CN103678493A (en) * 2013-11-13 2014-03-26 许继集团有限公司 Data storage system and method for monitoring operation of electric automobiles
CN104008176A (en) * 2014-06-09 2014-08-27 济南观澜数据技术有限公司 Distributed processing and message driven mode based service processing method
CN104181839A (en) * 2014-08-07 2014-12-03 深圳市元征科技股份有限公司 Method and device for processing real-time traveling data of vehicles

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6970935B1 (en) * 2000-11-01 2005-11-29 International Business Machines Corporation Conversational networking via transport, coding and control conversational protocols
US8639214B1 (en) * 2007-10-26 2014-01-28 Iwao Fujisaki Communication device
CN103247186A (en) * 2013-04-26 2013-08-14 广州通易科技有限公司 Scene-based driver assistant system realizing method
CN103678493A (en) * 2013-11-13 2014-03-26 许继集团有限公司 Data storage system and method for monitoring operation of electric automobiles
CN104008176A (en) * 2014-06-09 2014-08-27 济南观澜数据技术有限公司 Distributed processing and message driven mode based service processing method
CN104181839A (en) * 2014-08-07 2014-12-03 深圳市元征科技股份有限公司 Method and device for processing real-time traveling data of vehicles

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106549823A (en) * 2016-09-21 2017-03-29 南京途牛科技有限公司 A kind of distributed real-time streams computing system
CN110555042A (en) * 2018-03-30 2019-12-10 车伯乐(北京)信息科技有限公司 Real-time data retrieval method, device and system
CN110555042B (en) * 2018-03-30 2023-06-20 车伯乐(北京)信息科技有限公司 Method, device and system for retrieving data in real time
CN109801399A (en) * 2018-12-29 2019-05-24 北京理工新源信息科技有限公司 New energy vehicle failure Realtime Alerts method and system
CN111740953A (en) * 2020-05-13 2020-10-02 南斗六星系统集成有限公司 Data access forwarding method and system for vehicle supervision platform
CN114553944A (en) * 2021-12-30 2022-05-27 以萨技术股份有限公司 Early warning message pushing method and system

Also Published As

Publication number Publication date
CN104519059B (en) 2018-02-27

Similar Documents

Publication Publication Date Title
CN104519059A (en) Vehicular real-time alarm processing system and method
CN109102427A (en) A kind of wisdom water affairs management system and its workflow based on cloud computing
CN105512297A (en) Distributed stream-oriented computation based spatial data processing method and system
CN110636281A (en) Real-time monitoring camera shielding detection method based on background model
Benadda et al. Improving road safety for driver malaise and sleepiness behind the wheel using vehicular cloud computing and body area networks
CN204241933U (en) A kind of harmful influence monitoring in transit and accident emergency rescue system
CN105225507A (en) A kind of vehicle monitoring method and device
CN114401207B (en) Communication abnormal terminal equipment positioning method and device and electronic equipment
CN103179051B (en) A kind of retransmission method of Streaming Media and system
CN109697848A (en) A kind of method and device obtaining vehicle various dimensions information
CN103325244A (en) Traffic violation management system based on 3D PGIS and WSN
CN206147945U (en) Vehicle operation information monitoring management platform based on cloud calculates
CN104570964A (en) Vehicle-mounted system based on Internet of Things
CN110867072A (en) Vehicle tracking and dispatching system based on Beidou navigation and Hadoop technology
CN104700636A (en) Route selecting factor based deployment dispatching method of police car cyber-physical system
CN205541446U (en) Intelligence commander's management and control system
CN204332032U (en) A kind of road information acquisition system based on mobile terminal
CN204633815U (en) A kind of middleware system of vehicle-mounted Internet of Things operation platform
CN105446291B (en) Realize controller, the active station, device and method of peer-to-peer communications in DCS system
Wang et al. A novel real-time service architecture based on driver state detecting for improving road safety
CN203351031U (en) Traffic violation management system based on 3D PGIS and WSN
CN204332095U (en) There is the electronic stop plate of supervisory system
Sun et al. Intelligent collaborative urban traffic management system based on SOA and cloud computing
CN117208043B (en) Railway anti-slip early warning method and device, electronic equipment and storage medium
CN107895467A (en) A kind of emergency rescuing system

Legal Events

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