Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different 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 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 their repetitive description 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 the form of 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 schematic flow chart of a vehicle warning information processing method in the embodiment of the present disclosure. As shown in fig. 1, the method includes steps S100 to S102.
And S100, receiving the reported vehicle monitoring data.
And S101, generating vehicle alarm information according to the vehicle monitoring data.
S102, determining an early warning channel to which the vehicle warning information belongs based on the early warning channel rule.
S103, sending the vehicle alarm information and the early warning channel information to an instant messaging service.
And S104, the instant messaging service actively pushes the vehicle alarm information to one or more corresponding clients based on the request instruction of the client.
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 client or the corresponding clients based on the request instruction of the client through the instant messaging service, so that multi-channel multi-terminal instant messaging is supported, the instantaneity of the vehicle wind control of the commercial tenant is improved, and the development cost of technical personnel is also saved.
The embodiment of the disclosure provides a vehicle early warning information processing method. Fig. 2A shows another schematic flow chart of a vehicle warning information processing method in the embodiment of the present disclosure. Fig. 2B shows another schematic flow chart of the vehicle warning information processing method in the embodiment of the present disclosure. As shown in fig. 2A and 2B, the method includes steps S200 and S208.
And S200, receiving the reported vehicle monitoring data.
And monitoring the death report of the vehicle monitoring data by related hardware at any moment, and storing the received vehicle monitoring data.
S201, vehicle alarm information is generated according to the vehicle monitoring data.
S202, determining an early warning channel to which the vehicle warning information belongs based on the early warning channel rule.
The terminal device stores the early warning channel rules, for example, a rule table is determined according to the rule division defined by the service, and different rules represent different channels. And determining the early warning channel to which the received vehicle warning information belongs based on the stored early warning channel rule. The early warning channels comprise GPS positioning, vehicle speed limit, fences 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 then determines that the vehicle alarm information corresponds to the GPS positioning channel.
For example, channel rules and names may be customized to synchronize vehicle real-time location information, device heartbeat information, etc. returned by GPS equipment on the vehicle. For example, a polygonal area is divided through a map API, and it is safe to define the area, and a warning is needed beyond the area. And calculating whether the current vehicle is in the fence or not through the real-time GPS data of the vehicle, reporting the information to early warning information pushing service if the current vehicle exceeds the fence, and pushing the vehicle warning information to a front-end terminal device if a channel is set to exceed the fence.
S203, sending the vehicle alarm information and the early warning channel information to an instant messaging service.
The instant communication service device of the terminal equipment can be used as independent service to be independently applied and deployed, so that the effect of separating the front end from the rear end 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 the step S205.
And S205, assembling the vehicle early warning information and then sending the vehicle early warning information to the client.
The terminal device receives a request instruction of other terminal devices at any time, wherein the request instruction comprises a plurality of parameters such as date, name, number and the like, and the request instruction can be sent by pushing a short message, a mail and a push. And 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 alarm information to one or more corresponding clients based on the request instruction of the client.
For example, the instant messaging service actively pushes the service, verifies whether the reported channel warning information is consistent with the request instruction channel of the client, assembles the vehicle warning information and then responds to the client request, and closes the client request if the reported channel warning information is consistent with the request instruction channel of the client. The client actively sends a request instruction, wherein the request instruction comprises a plurality of parameters, and then the request instruction is sent 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 effective information to return. If the early warning information exists, executing step S208; otherwise, step S209 is performed.
And S208, immediately returning the early warning information to the client side of the request instruction according to the channel information in the request instruction.
For example, if the instant messaging service verifies that the request instruction has valid information to return, the early warning information is immediately returned to the client side of the request instruction according to the channel information in the request instruction, and the number of the client sides of the request instruction can be one or more, so that the instant messaging effect is achieved.
For example, vehicle warning information is packaged based on a hypertext transfer protocol and pushed to a WEB, PC, iOS, and 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 immediately returned to the client side of the request instruction to be presented on the user interface.
S209, the waiting request is corresponding. And suspending the request instruction and waiting for a request response.
It should be noted that the embodiment of the present disclosure is divided into a service layer, a vehicle warning information pushing layer, and a front end receiving layer, where the vehicle warning information pushing layer is unified and the implementation language is Java. Corresponding Jar packages (only Java Jar packages are provided at present) are provided at different service layers, a Jar method is called to push information to an information push layer when vehicle early warning data are generated, and data are pushed to a front-end receiving layer in a sub-channel mode according to channel types in the vehicle early warning information, so that multi-end unified language development is achieved.
In the embodiment of the vehicle early warning information processing method, vehicle warning information is generated according to vehicle monitoring data, the early warning channel to which the vehicle warning information belongs is determined based on the early warning channel rule, and when the instant communication service verifies that the request instruction has effective information to return, the early warning information is immediately returned to the client of the request instruction according to the channel information in the request instruction, so that multi-channel multi-terminal instant communication of WEB \ PC \ iOS \ Android seamless fusion is supported, instantaneity of merchant vehicle wind control is improved, and development cost of technical personnel is saved.
At least one embodiment of the present disclosure provides a terminal device. Fig. 3 is a schematic structural diagram of a vehicle 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, based on an early warning channel rule, an early warning channel to which the vehicle warning information belongs; 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 used for the instant messaging service to actively push the vehicle alarm information to one or more corresponding clients based on a request instruction of the client.
The apparatus 300 may be a vehicle warning information processing apparatus corresponding to the vehicle 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 used for executing steps related to processing corresponding to the apparatus in the method embodiment.
The device 300 may further comprise a storage unit for storing data and/or signaling, and the receiving unit 301, the generating unit 302, the determining unit 303, the sending unit 304, and the pushing unit 305 are interactively or coupled, for example, read or call the data and/or signaling in the storage unit, so that the method of the above-mentioned embodiment is performed.
The above units may exist independently, or may be wholly or partially integrated.
As will be appreciated by one skilled in the art, aspects of the present invention may be embodied as a system, method or program product. Thus, various aspects of the invention may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
Anelectronic device 400 according to this embodiment of the invention is described below with reference to fig. 4. Theelectronic device 400 shown in fig. 4 is only an example and should not bring any limitation to the function and the scope of use of the embodiments of the present invention.
As shown in fig. 4,electronic 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 that couples 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 to cause theprocessing unit 410 to perform steps according to various exemplary embodiments of the present invention as described in the above section "exemplary methods" of the present specification.
Thestorage unit 420 may include readable media in the form of volatile storage units, such as a random access memory unit (RAM)4201 and/or acache memory unit 4202, and may further include a read only memory unit (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 of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 430 may be any 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 a local bus using any of a variety of bus architectures.
Theelectronic device 400 may also communicate with one or more external devices 400 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with theelectronic device 500, and/or with any devices (e.g., router, modem, etc.) that enable theelectronic device 400 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interfaces 450. Also, theelectronic device 400 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) via thenetwork adapter 460. As shown, thenetwork adapter 460 communicates with the other modules of theelectronic device 400 over thebus 430. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction withelectronic device 400, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, 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 (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
In an exemplary embodiment of the present disclosure, there is also provided a computer-readable storage medium having stored thereon a program product capable of implementing the above-described method of the present specification. In some possible embodiments, aspects of the invention may also be implemented in the form of a program product comprising program code means for causing a terminal device to carry out the steps according to various exemplary embodiments of the invention described in the above section "exemplary methods" of the present description, when said program product is run on the terminal device.
The present disclosure provides a computer program product that can employ a portable compact disc read only memory (CD-ROM) and include program code, and can be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited in this regard and, in the present 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. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
A computer readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. 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 for aspects 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 and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, 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., through the internet using an internet service provider).
It should be noted that although in the above detailed description several modules or units of the 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, according to embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Moreover, although the steps of the methods of the present disclosure are depicted in the drawings in a particular order, this does not require or imply that the steps must be performed in this particular order, or that all of the depicted steps must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions, etc.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, 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 (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute 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 variations, 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.