Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments may be embodied in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus a repetitive description thereof will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in software or in one or more hardware modules or integrated circuits or in different networks and/or processor devices and/or microcontroller devices.
The embodiment of the disclosure provides a vehicle early warning information processing method. Fig. 1 shows a flowchart of a vehicle warning information processing method in an embodiment of the present disclosure. As shown in fig. 1, the method includes steps S100 to S102.
S100, receiving reported vehicle monitoring data.
S101, generating vehicle alarm information according to vehicle monitoring data.
S102, determining an early warning channel to which the vehicle warning information belongs based on an early warning channel rule.
And S103, the vehicle alarm information and the early warning channel information are sent to the instant messaging service.
S104, the instant messaging service actively pushes the vehicle alarm information to one or more corresponding clients based on the request instruction of the clients.
In the embodiment of the vehicle early warning information processing method, the vehicle warning information is generated according to the vehicle monitoring data, the early warning channel to which the vehicle warning information belongs is determined based on the early warning channel rule, and the vehicle warning information is actively pushed to the corresponding one or more clients through the instant messaging service based on the request instruction of the clients, so that the multi-channel multi-terminal instant messaging is supported, the instantaneity of the vehicle wind control of a merchant is improved, and the development cost of technicians is saved.
The embodiment of the disclosure provides a vehicle early warning information processing method. Fig. 2A shows another flowchart of a vehicle warning information processing method in an embodiment of the present disclosure. Fig. 2B shows another flowchart of a vehicle warning information processing method in an embodiment of the present disclosure. As shown in fig. 2A and 2B, the method includes steps S200 and S208.
S200, receiving reported vehicle monitoring data.
The related hardware monitors the death report of the vehicle monitoring data at the moment, and stores the received vehicle monitoring data.
S201, generating vehicle alarm information according to the vehicle monitoring data.
S202, determining an early warning channel to which the vehicle warning information belongs based on an early warning channel rule.
The terminal device stores pre-warning channel rules, e.g. a rule table is determined according to rule division of service definition, different rules representing different channels. And determining an early warning channel to which the received vehicle warning information belongs based on the stored early warning channel rule. The early warning channels include GPS positioning, vehicle speed limiting, fencing and dangerous area channels. For example, the terminal device compares the received vehicle alarm information with the stored early warning channel rule to determine that the early warning channel is GPS positioning, and determines that the vehicle alarm information corresponds to the GPS positioning channel.
For example, channel rules and names can be customized, and real-time positioning information of the vehicle, heartbeat information of equipment and the like returned by GPS equipment on the vehicle can be received. For example, the polygonal area is divided by the map API, the definition is safe in the area, and early warning is needed beyond the area. And calculating whether the current vehicle is in the fence or not according to the real-time GPS data of the vehicle, reporting the information to the early warning information pushing service if the current vehicle exceeds the fence, and pushing the vehicle warning information to the terminal equipment at the front end if the channel is set to be 'beyond the fence'.
S203, the vehicle alarm information and the early warning channel information are sent to the instant messaging service.
The instant messaging service device of the terminal equipment can be used as independent service to be deployed independently, so that the front end and rear end separation effect is achieved, and the reusability is high.
S204, verifying whether the reported early warning channel is the same as the channel information in the request instruction of the client, and if so, executing step S205.
S205, the vehicle early warning information is assembled and then sent to the client.
The terminal equipment receives the request instructions of other terminal equipment at any time, wherein the request instructions comprise a plurality of parameters such as date, name, number and the like, and the request instructions can be sent through short messages, mails and push. If the reported early warning channel is the same as the channel information in the request instruction of the client, the instant messaging service actively pushes the vehicle warning information to the corresponding one or more clients based on the request instruction of the client.
For example, the instant messaging service actively pushes the service, verifies whether the reported channel early warning information is consistent with the request instruction channel of the client, assembles the vehicle early warning information, responds to the client request, and closes the client request. The client actively transmits a request instruction, wherein the request instruction comprises a plurality of parameters, and then transmits the request instruction to the instant messaging service.
S206, the instant messaging service receives a request instruction from the client, wherein the request instruction comprises channel information;
s207, the instant communication service verifies whether the request instruction has valid information to return. If the early warning information exists, executing step S208; otherwise, step S209 is performed.
S208, the early warning information is returned to the client side of the request instruction in real time according to the channel information in the request instruction.
For example, if the instant messaging service verifies that the effective information of the request instruction is returned, the early warning information is returned to the client of the request instruction in real time according to the channel information in the request instruction, and one or more clients of the request instruction can be provided, so that the instant messaging effect is achieved.
For example, vehicle warning information is encapsulated based on a hypertext transfer protocol and pushed to the WEB, PC, iOS, android terminal. For example, according to the channel information in the request instruction, the vehicle early warning information is packaged based on the hypertext transfer protocol, and the vehicle early warning information is returned to the client side of the request instruction in real time to be presented on the user interface.
S209, waiting for the corresponding request. The request instruction is suspended and a request response is awaited.
It should be noted that, the embodiment of the disclosure is divided into a business service layer, a vehicle early warning information pushing layer and a front end receiving layer, wherein the vehicle early warning information pushing layer is unified, and the implementation language is Java. Corresponding Jar packets (only Java Jar packets at present) are provided at different service layers, and a Jar method is called to push information to an information push layer when vehicle early warning data are generated, so that data frequency division channels are pushed to a front-end receiving layer according to channel types in the vehicle early warning information, and multi-terminal unified language development is realized.
In the embodiment of the vehicle early warning information processing method, vehicle warning information is generated according to vehicle monitoring data, an early warning channel to which the vehicle warning information belongs is determined based on early warning channel rules, and when effective information of an instant communication service verification request instruction is returned, the early warning information is returned to a client of the request instruction in real time according to the channel information in the request instruction, so that multi-channel multi-terminal instant communication with seamless integration of WEB\PC\iOS\android is supported, the instantaneity of vehicle wind control of a merchant is improved, and development cost of technicians is saved.
At least one embodiment of the present disclosure provides a terminal device. Fig. 3 is a schematic structural diagram of a vehicle early warning information processing apparatus according to an embodiment of the present disclosure. As shown in fig. 3, the apparatus includes a receiving unit 301, a generating unit 302, a determining unit 303, a transmitting unit 304, and a pushing unit 305. The receiving unit 301 is configured to receive reported vehicle monitoring data; the generating unit 302 is configured to generate vehicle alarm information according to the vehicle monitoring data; the determining unit 303 is configured to determine an early warning channel to which the vehicle alarm information belongs based on an early warning channel rule; the sending unit 304 is configured to send the vehicle alarm information and the early warning channel information to an instant messaging service; and the pushing unit 305 is configured to actively push the vehicle alarm information to the corresponding one or more clients based on the request instruction of the client by using the instant communication service.
The apparatus 300 may be a vehicle early warning information processing apparatus corresponding to the vehicle early warning information processing method embodiment, and the apparatus 300 may be a terminal device in the method embodiment, or a chip or a functional module inside the terminal device in the method embodiment.
The receiving unit 301, the generating unit 302, the determining unit 303, the sending unit 304, and the pushing unit 305 in the apparatus 300 are configured to perform steps corresponding to the processing related steps in the apparatus embodiment of the method.
The device 300 may further comprise a storage unit for storing data and/or signaling, the receiving unit 301, the generating unit 302, the determining unit 303, the sending unit 304, and the pushing unit 305 being interacted with or coupled, e.g. reading or calling the data and/or signaling in the storage unit, such that the method of the above embodiments is performed.
The above units may exist independently or may be integrated in whole or in part.
Those skilled in the art will appreciate that the various aspects of the invention may be implemented as a system, method, or program product. Accordingly, aspects of the invention may be embodied in the following forms, namely: an entirely hardware embodiment, an entirely software embodiment (including firmware, micro-code, etc.) or an embodiment combining hardware and software aspects may be referred to herein as a "circuit," module "or" system.
Anelectronic device 400 according to such an embodiment of the invention is described below with reference to fig. 4. Theelectronic device 400 shown in fig. 4 is merely an example and should not be construed as limiting the functionality and scope of use of embodiments of the present invention.
As shown in fig. 4, theelectronic device 400 is embodied in the form of a general purpose computing device. The components ofelectronic device 400 may include, but are not limited to: the at least oneprocessing unit 410, the at least onememory unit 420, and abus 430 connecting the various system components, including thememory unit 420 and theprocessing unit 410.
Wherein the storage unit stores program code that is executable by theprocessing unit 410 such that theprocessing unit 410 performs steps according to various exemplary embodiments of the present invention described in the above-described "exemplary methods" section of the present specification.
Thestorage unit 420 may include readable media in the form of volatile storage units, such as Random Access Memory (RAM) 4201 and/orcache memory 4202, and may further include Read Only Memory (ROM) 4203.
Thestorage unit 420 may also include a program/utility 4204 having a set (at least one) ofprogram modules 4205,such program modules 4205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
Bus 430 may be a local bus representing one or more of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or using any of a variety of bus architectures.
Electronic device 400 may also communicate with one or more external devices 400 (e.g., keyboard, pointing device, bluetooth device, etc.), one or more devices that enable a user to interact withelectronic device 500, and/or any device (e.g., router, modem, etc.) that enableselectronic device 400 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O)interface 450. Also,electronic device 400 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet, throughnetwork adapter 460. As shown, thenetwork adapter 460 communicates with other modules of theelectronic device 400 over thebus 430. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection withelectronic device 400, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, including several instructions to cause a computing device (may be a personal computer, a server, a terminal device, or a network device, etc.) to perform the method according to the embodiments of the present disclosure.
In an exemplary embodiment of the present disclosure, a computer-readable storage medium having stored thereon a program product capable of implementing the method described above in the present specification is also provided. In some possible embodiments, the various aspects of the invention may also be implemented in the form of a program product comprising program code for causing a terminal device to carry out the steps according to the various exemplary embodiments of the invention as described in the "exemplary methods" section of this specification, when said program product is run on the terminal device.
The present disclosure provides a computer program product that may employ a portable compact disc read only memory (CD-ROM) and that includes program code and that may be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable signal medium may include a data signal propagated in baseband or as part of a carrier wave with readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
It should be noted that although in the above detailed description several modules or units of a device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit in accordance with embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into a plurality of modules or units to be embodied.
Furthermore, although the steps of the methods in the present disclosure are depicted in a particular order in the drawings, this does not require or imply that the steps must be performed in that particular order or that all illustrated steps be performed in order to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step to perform, and/or one step decomposed into multiple steps to perform, etc.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, including several instructions to cause a computing device (may be a personal computer, a server, a mobile terminal, or a network device, etc.) to perform the method according to the embodiments of the present disclosure.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.