CN108303926B - Electric vehicle control method and computing device - Google Patents

Electric vehicle control method and computing device Download PDF

Info

Publication number
CN108303926B
CN108303926B CN201810165610.5A CN201810165610A CN108303926B CN 108303926 B CN108303926 B CN 108303926B CN 201810165610 A CN201810165610 A CN 201810165610A CN 108303926 B CN108303926 B CN 108303926B
Authority
CN
China
Prior art keywords
electric vehicle
message
state
instruction
abnormal
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
CN201810165610.5A
Other languages
Chinese (zh)
Other versions
CN108303926A (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.)
Hangzhou Ride Trace Technology Co Ltd
Original Assignee
Hangzhou Ride Trace 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 Hangzhou Ride Trace Technology Co Ltd filed Critical Hangzhou Ride Trace Technology Co Ltd
Priority to CN201810165610.5A priority Critical patent/CN108303926B/en
Publication of CN108303926A publication Critical patent/CN108303926A/en
Application granted granted Critical
Publication of CN108303926B publication Critical patent/CN108303926B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/25Pc structure of the system
    • G05B2219/25257Microcontroller

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Electric Propulsion And Braking For Vehicles (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses an electric vehicle control method, which is suitable for being executed in a server, wherein the server is respectively connected with an electric vehicle and a mobile terminal, and the method comprises the following steps: analyzing a message from the electric vehicle, wherein the message is generated according to a preset format and comprises a message header part and a content part, and the message header part comprises a message type part and a message state part; executing corresponding operation according to the message type, wherein the message type comprises one or more operation instructions; generating a message with the message type as a control instruction according to a preset format and transmitting the message to the electric vehicle so that the electric vehicle can analyze the message, obtain the message content corresponding to the control instruction and execute corresponding operation; and judging whether the current state of the electric vehicle is abnormal or not according to the message state, and recording the abnormal state of the electric vehicle in the server. The invention also discloses corresponding computing equipment.

Description

Electric vehicle control method and computing device
Technical Field
The invention relates to the technical field of internet, in particular to an electric vehicle control method and computing equipment.
Background
Along with the implementation and execution of the concept of sharing economy and green travel, the sharing electric vehicle is greatly popularized and strongly pursued, and a large number of users are gradually gathered to carry out short-distance travel through the sharing electric vehicle. When the user uses the electric vehicle, the user generally logs in a corresponding client application on the mobile terminal, and unlocks the electric vehicle for use by scanning a two-dimensional code on the electric vehicle or inputting a vehicle number of the electric vehicle.
The sharing travel mode brings convenience to users in travel, and in the implementation process, a background server needs to be deployed to be in communication connection with the electric vehicle and the mobile terminal respectively. On one hand, the information such as the vehicle state of the electric vehicle is recorded and transmitted to the mobile terminal user, and on the other hand, the electric vehicle is instructed to carry out operations such as unlocking, locking, power-on and power-off according to the control command from the mobile terminal user. However, some common instant messaging protocols applied to the internet of things are not necessarily applicable to the application scenario of the shared trip, and therefore, an effective scheme for controlling the electric vehicle is needed.
Disclosure of Invention
To this end, the present invention provides an electric vehicle control method and computing device in an attempt to solve or at least alleviate the above-identified problems.
According to an aspect of the present invention, there is provided an electric vehicle control method adapted to be performed in a server connected to an electric vehicle and a mobile terminal, respectively, comprising the steps of: analyzing a message from the electric vehicle, wherein the message is generated according to a preset format and comprises a message header part and a content part, and the message header part comprises a message type part and a message state part; executing corresponding operation according to the message type, wherein the message type comprises one or more operation instructions; generating a message with the message type as a control instruction according to a preset format and transmitting the message to the electric vehicle so that the electric vehicle can analyze the message, obtain the message content corresponding to the control instruction and execute corresponding operation; and judging whether the current state of the electric vehicle is abnormal or not according to the message state, and recording the abnormal state of the electric vehicle in the server.
Alternatively, in the electric vehicle control method according to the present invention, the message state includes an electric vehicle state, a power-on state, a riding mode state, and a lock state.
Alternatively, in the electric vehicle control method according to the present invention, the step of determining whether the current state of the electric vehicle is abnormal according to the message state includes: and if the state of the electric vehicle is acquired from the message state and is toppled, judging that the current state is abnormal.
Optionally, in the electric vehicle control method according to the present invention, the step of determining whether the current state of the electric vehicle is abnormal according to the message state further includes: and under the non-riding state, if the lock state is obtained from the message state as the unlocking state, judging that the current state is abnormal.
Alternatively, in the electric vehicle control method according to the present invention, the step of determining whether the current state of the electric vehicle is abnormal according to the message state includes: and judging whether the electric vehicle is in an abnormal state or not based on the electric vehicle state indicated by the message state and the operation instruction indicated by the message type.
Optionally, in the electric vehicle control method according to the present invention, the message header further includes an identification bit indicating a location of the content part of the message.
Alternatively, in the electric vehicle control method according to the present invention, the step of performing the corresponding operation according to the message type includes: when the message type is a first operation instruction, acquiring a content part of the message according to the position indicated by the identification bit, wherein the content part of the message comprises basic information of the electric vehicle; and performing signature verification on the acquired basic information of the electric vehicle, and if the verification is passed, maintaining long-connection communication with the electric vehicle.
Alternatively, in the electric vehicle control method according to the present invention, the electric vehicle basic information includes an electric vehicle number, a battery number of the electric vehicle, and signature information.
Optionally, in the electric vehicle control method according to the present invention, the signature verifying step of the acquired electric vehicle basic information includes: and calculating the number of the electric vehicle and the number of the battery of the electric vehicle by adopting an MD5 algorithm to obtain a signature value.
Optionally, in the electric vehicle control method according to the present invention, the step of performing the corresponding operation according to the message type further includes: when the message type is a second operation instruction, acquiring a content part of the message according to the position indicated by the identification bit, wherein the content part of the message comprises electric vehicle basic data; and positioning the position of the electric vehicle according to the basic data of the electric vehicle and sending the position information to a mobile terminal corresponding to the electric vehicle so that the mobile terminal can display the running track of the electric vehicle.
Alternatively, in the electric vehicle control method according to the present invention, the electric vehicle basic data includes a mileage, an electric quantity, and a latitude and longitude.
Optionally, in the electric vehicle control method according to the present invention, the step of performing the corresponding operation according to the message type further includes: and if the message with the message type of the second operation instruction is not received from the electric vehicle in the preset period, disconnecting the long-connection communication with the electric vehicle.
Alternatively, in the electric vehicle control method according to the present invention, in the riding mode, the predetermined period is 5 seconds; and in the non-riding mode, the predetermined period is 10 minutes.
According to another aspect of the present invention, there is provided a computing device comprising: one or more processors; a memory; and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs including instructions for performing any of the methods described above.
According to a further aspect of the invention, there is provided a computer readable storage medium storing one or more programs, the one or more programs comprising instructions, which when executed by a computing device, cause the computing device to perform any of the methods described above.
According to the electric vehicle control scheme, the electric vehicle and the server can be ensured to keep stable long-time connection communication through the self-defined message format, the execution efficiency of the electric vehicle on the control instruction is improved, meanwhile, the information such as the position of the electric vehicle, the battery capacity and the like can be remotely positioned, the abnormal state is further judged, the loss rate of the electric vehicle is reduced, and meanwhile, a solid foundation is laid for the subsequent operation and maintenance work of the electric vehicle.
Drawings
To the accomplishment of the foregoing and related ends, certain illustrative aspects are described herein in connection with the following description and the annexed drawings, which are indicative of various ways in which the principles disclosed herein may be practiced, and all aspects and equivalents thereof are intended to be within the scope of the claimed subject matter. The above and other objects, features and advantages of the present disclosure will become more apparent from the following detailed description read in conjunction with the accompanying drawings. Throughout this disclosure, like reference numerals generally refer to like parts or elements.
FIG. 1 illustrates a schematic diagram of an electric vehicle control system 100 according to one embodiment of the present invention;
FIG. 2 illustrates a block diagram of a computing device 200, according to one embodiment of the invention;
FIG. 3 illustrates a flow chart of an electric vehicle control method 300 according to one embodiment of the present invention; and
fig. 4 is a schematic diagram illustrating the composition of a message according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Fig. 1 shows a schematic diagram of an electric vehicle control system 100 according to an embodiment of the present invention.
As shown in fig. 1, the system 100 includes a mobile terminal 110, a server 120 and an electric vehicle 130, and the server 120 is connected to the mobile terminal 110 and the electric vehicle 130, respectively. Optionally, the mobile terminal 110 communicates with the server 120 through an MQTT (Message queue telemetry Transport) protocol, which can greatly improve efficiency compared to a conventional HTTP protocol. According to an embodiment of the present invention, the server 120 binds the mobile terminal 110 and the electric vehicle 130 in response to the vehicle number of the electric vehicle 130 input by the user through the mobile terminal 110, and the user can control the electric vehicle 130 through the mobile terminal 110.
The mobile terminal 110 may include various sensors coupled to the peripheral interface, in addition to the basic configuration of a memory interface, one or more data processors, image processors and/or central processing units, and a peripheral interface. The memory interface is coupled with the memory, the memory can store an operating system (e.g., Android, iOS), and can also store applications, the applications run on the operating system, and various functions desired by a user, such as instant messaging, web browsing, picture management, video playing, and the like, are implemented by using the operating system and interfaces provided by underlying hardware. According to an embodiment of the present invention, a corresponding application is disposed on the mobile terminal 110, and a user can search for one or more nearby electric vehicles 130 through the application, and input a searched electric vehicle number of one electric vehicle 130 through the application (the electric vehicle number is disposed on the electric vehicle in a certain manner), and the server 120 binds the mobile terminal 110 with the electric vehicle 130, so that the user can implement some operations on the electric vehicle 130 through the application on the mobile terminal 110, such as unlocking, checking the state of the electric vehicle, displaying a driving track, and the like. The mobile terminal 110 of the present invention may be a smart phone, a tablet computer, etc. having the above configuration and functions, but is not limited thereto.
It should be noted that the electric vehicle control system 100 in fig. 1 is only exemplary, in a specific practical situation, there may be different numbers of mobile terminals 110 and electric vehicles 130 in the system 100, and even there may be more than one server 120, and the present invention does not limit the number of mobile terminals 110, servers 120 and electric vehicles 130 included in the system 100.
FIG. 2 shows a block diagram of a computing device 200, according to an embodiment of the invention.
In a basic configuration 202, computing device 200 typically includes system memory 206 and one or more processors 204. A memory bus 208 may be used for communication between the processor 204 and the system memory 206.
Depending on the desired configuration, the processor 204 may be any type of processing, including but not limited to: a microprocessor (μ P), a microcontroller (μ C), a Digital Signal Processor (DSP), or any combination thereof. The processor 204 may include one or more levels of cache, such as a level one cache 210 and a level two cache 212, a processor core 214, and registers 216. Example processor cores 214 may include Arithmetic Logic Units (ALUs), Floating Point Units (FPUs), digital signal processing cores (DSP cores), or any combination thereof. The example memory controller 218 may be used with the processor 204, or in some implementations the memory controller 218 may be an internal part of the processor 204.
Depending on the desired configuration, system memory 206 may be any type of memory, including but not limited to: volatile memory (such as RAM), non-volatile memory (such as ROM, flash memory, etc.), or any combination thereof. System memory 206 may include an operating system 220, one or more applications 222, and program data 224. In some implementations, the application 222 can be arranged to execute instructions with the program data 224 by one or more processors 204 on the operating system 220.
Computing device 200 may also include an interface bus 240 that facilitates communication from various interface devices (e.g., output devices 242, peripheral interfaces 244, and communication devices 246) to the basic configuration 202 via the bus/interface controller 230. The example output device 242 includes a graphics processing unit 248 and an audio processing unit 250. They may be configured to facilitate communication with various external devices, such as a display or speakers, via one or more a/V ports 252. Example peripheral interfaces 244 can include a serial interface controller 254 and a parallel interface controller 256, which can be configured to facilitate communications with external devices such as input devices (e.g., keyboard, mouse, pen, voice input device, touch input device) or other peripherals (e.g., printer, scanner, etc.) via one or more I/O ports 258. An example communication device 246 may include a network controller 260, which may be arranged to facilitate communications with one or more other computing devices 262 over a network communication link via one or more communication ports 264.
A network communication link may be one example of a communication medium. Communication media may typically be embodied by computer readable instructions, data structures, program modules, and may include any information delivery media, such as carrier waves or other transport mechanisms, in a modulated data signal. A "modulated data signal" may be a signal that has one or more of its data set or its changes made in such a manner as to encode information in the signal. By way of non-limiting example, communication media may include wired media such as a wired network or private-wired network, and various wireless media such as acoustic, Radio Frequency (RF), microwave, Infrared (IR), or other wireless media. The term computer readable media as used herein may include both storage media and communication media.
Computing device 200 may be implemented as a server, such as a file server, a database server, an application server, a WEB server, etc., or as part of a small-form factor portable (or mobile) electronic device, such as a cellular telephone, a Personal Digital Assistant (PDA), a personal media player device, a wireless WEB-browsing device, a personal headset device, an application-specific device, or a hybrid device that include any of the above functions. Computing device 200 may also be implemented as a personal computer including both desktop and notebook computer configurations.
In an implementation according to the invention, the computing device 200 is implemented as a server 120 configured to execute an electric vehicle control method according to the invention. Among other things, instructions for performing the electric vehicle control method according to the present invention are included in one or more applications 222 of the computing device 200.
Fig. 3 shows a flow chart of an electric vehicle control method 300 according to one embodiment of the invention.
As shown in fig. 3, the method 300 starts at step S310, where the server 120 receives a message from the electric vehicle 130, and parses the message, where the message is an information unit transmitted between the client (i.e., the electric vehicle 130 and the mobile terminal 110) and the server 120, and is generated according to a predetermined format, and includes a message header part and a content part, where the message header part includes a message type part and a message status part.
Fig. 4 is a schematic diagram illustrating a composition of a message according to an embodiment of the present invention. According to one embodiment of the present invention, the header portion contains 4 fields, which are: 1-byte version information (i.e., version), 1-byte message status (i.e., status), 2-byte message type (i.e., type), and 4-byte identification bit (i.e., contentLength).
Wherein, the identification bit indicates the position (such as the start position and the end position) or the size of the content part in the message.
The message type comprises one or more operation instructions, such as an unlocking instruction, a power-on instruction, a mileage cleaning instruction, an identity verification instruction, a base station positioning information acquisition instruction, a data timing reporting instruction and a receipt of each instruction. Each operation instruction is assigned with a corresponding type value, for example, when the type is 1, the corresponding identity check instruction corresponds to, so that one or more operation instructions contained in the operation instruction can be judged according to the value of the operation type.
The message state comprises an electric vehicle state, a power-on state, a riding mode state and a lock state. In the message state of 1 byte, the first 3 bits are 0, the 4 th bit indicates the electric vehicle state (0 indicates normal, 1 indicates toppling), the 5 th and 6 th bits indicate the riding mode state (00 indicates power assistance, 01 indicates electric power, 10 indicates human power), the 7 th bit indicates the power-on state (0 indicates non-power-on, 1 indicates power-on), and the 8 th bit indicates the lock state (0 indicates locking, 1 indicates unlocking).
Message status data representation shown below: the electric vehicle is normal in state, assisted in riding, electrified and unlocked:
0 0 0 0 0 0 1 1
after the server 120 parses the message according to the predetermined format, in step S320, corresponding operations are executed according to one or more operation instructions included in the message type.
According to an embodiment of the present invention, when the operation instruction included in the analyzed message type is the first operation instruction, the content part of the message is obtained according to the position indicated by the identification bit, wherein the content part of the message includes the basic information of the electric vehicle, then, the signature verification is performed on the obtained basic information of the electric vehicle, and if the verification is passed, the long connection communication with the electric vehicle 130 is maintained.
Optionally, the electric vehicle basic information includes an electric vehicle number, a battery number of the electric vehicle, and signature information.
Each time the electric vehicle 130 attempts to reestablish the connection with the server 120, a message including the first operation instruction must be first sent, so that the server 120 establishes the connection with the battery (and the slot corresponding to the battery) of the electric vehicle 130. After obtaining the basic information of the electric vehicle through the message, the server 120 calculates an electric vehicle number (slotNo) and a battery number (batteryNo) of the electric vehicle by using an MD5 algorithm to obtain a signature value. For example, the signature algorithm is represented as:
sign=md5(type+slotNo+batteryNo+key)
when the signature passes, the server 120 stores the basic information of the electric vehicle 130 in a cache, persists part of important information in a database, and establishes a long connection with the electric vehicle 130. If the signature does not pass, then the connection to the electric vehicle 130 is not maintained.
According to another embodiment of the present invention, when the operation instruction included in the analyzed message type is the second operation instruction, the content part of the message is obtained according to the position indicated by the identification bit, where the content part of the message includes the electric vehicle basic data, and then the position of the electric vehicle 130 is located according to the electric vehicle basic data and the position information is sent to the mobile terminal 110 corresponding to the electric vehicle 130, so that the mobile terminal 110 displays the driving track of the electric vehicle.
Optionally, the basic data of the electric vehicle includes driving mileage, electric quantity, longitude and latitude.
After the electric vehicle 130 is connected to the server 120, the electric vehicle 130 may send a message containing a second operation command to the server 120 at a fixed frequency. After the electric vehicle 130 is bound with one mobile terminal 110 (for example, during riding), the server 120 locates the position of the electric vehicle 130 according to the obtained electric vehicle basic data, and transmits the position to the mobile terminal 110 in real time, and the mobile terminal 110 displays a driving track of the electric vehicle 130 to a user and performs path planning and the like.
According to another embodiment of the present invention, the server 120 may further determine whether the electric vehicle is disconnected according to the received message. If the message with the message type of the second operation instruction is not received from the electric vehicle 130 within the predetermined period, it is determined that the electric vehicle 130 has dropped, and the long connection communication with the electric vehicle 130 is disconnected. For example, after the electric vehicle 130 is disconnected from the server 120 due to an external factor such as a network, the electric vehicle 130 sends a message with a message type including the first operation instruction to the server 120, and the reconnection is automatically performed.
Alternatively, in the riding mode, the predetermined period is set to 5 seconds, and in the non-riding mode, the predetermined period is set to 10 minutes.
Then, in step S330, a message with the message type as the control instruction is generated according to a predetermined format and transmitted to the electric vehicle 130, so that the electric vehicle 130 can analyze the message, obtain the message content corresponding to the control instruction, and perform corresponding operations.
The predetermined format of the message can be referred to the description of fig. 4, and will not be described herein again.
According to an embodiment of the present invention, the server 120 may return a corresponding response piece according to the message from the electric vehicle 130. For example, after the server 120 verifies the signature of the basic information of the electric vehicle included in the message from the electric vehicle 130, the server 120 generates a message with a message type of a corresponding control instruction (identity verification is successful, long connection is established) according to a predetermined format, and returns the message to the electric vehicle 130, and the electric vehicle 130 analyzes the message, acquires the message content corresponding to the control instruction, and executes a corresponding operation.
According to another embodiment of the present invention, the server 120 may actively send a message containing the control command to the electric vehicle 130. For example, in response to an unlocking input of the user on the mobile terminal 110, the server 120 generates a message with a message type of a corresponding control instruction (unlocking) according to a predetermined format, and transmits the message to the electric vehicle 130, and the electric vehicle 130 parses the message to perform an unlocking operation.
Similar control commands include power-on, power-off, mileage clearing, low-power prompt and the like. The execution flow is similar to unlocking, and detailed description is omitted here.
Subsequently, in step S340, according to the message status, it is determined whether the current status of the electric vehicle 130 is abnormal, and the abnormal status of the electric vehicle 130 is recorded in the server 120, so that on one hand, the abnormal message can be timely fed back to the mobile terminal currently bound with the electric vehicle, and on the other hand, the abnormal status can be handed to the operation and maintenance staff for processing.
According to an embodiment of the present invention, if it is obtained from the message status that the electric vehicle status is toppling, it is determined that the current status is abnormal, that is, as shown below, the 4 th bit in the message status is 1, which represents that the electric vehicle 130 topples.
0 0 0 1 0 1 1 1
If the lock state is obtained from the message state as the unlocking state under the non-riding state, judging that the current state is abnormal.
According to still another embodiment of the present invention, it is determined whether the electric vehicle is in an abnormal state based on the electric vehicle state indicated by the message state and the operation instruction indicated by the message type. Optionally, when the operation instruction indicated by the message type is inconsistent or contradictory with the electric vehicle state indicated by the message state, the electric vehicle is judged to be in an abnormal state. If the operation instruction indicated by the message type is an unlocking receipt (i.e., a response result is returned to the server 120 after the unlocking operation is performed), and the current locking state of the electric vehicle 130 is displayed in the message state as being locked, it is determined that the electric vehicle 130 is in an abnormal state. For another example, if the operation instruction indicated by the message type is to report the basic data in the non-riding mode, and the lock state of the electric vehicle 130 is unlocked in the message state, it is determined that the electric vehicle 130 is in an abnormal state.
According to the electric vehicle control scheme, the electric vehicle 130 and the server 120 can keep stable long-time connection communication through the self-defined message format, the execution efficiency of the electric vehicle on the control instruction is improved, meanwhile, information such as the position of the electric vehicle 130 and the battery capacity can be remotely located, the abnormal state is further judged, the loss rate of the electric vehicle is reduced, and meanwhile, a solid foundation is laid for the subsequent operation and maintenance work of the electric vehicle.
Meanwhile, the mobile terminal keeps communication with the server through the MQTT protocol, compared with the traditional HTTP protocol, the efficiency is greatly improved, the pressure of the server is reduced, information of the electric vehicle, such as the running track and abnormal state of the electric vehicle, can be displayed in real time, and the user experience is improved.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules or units or groups of devices in the examples disclosed herein may be arranged in a device as described in this embodiment, or alternatively may be located in one or more devices different from the devices in this example. The modules in the foregoing examples may be combined into one module or may be further divided into multiple sub-modules.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. Modules or units or groups in embodiments may be combined into one module or unit or group and may furthermore be divided into sub-modules or sub-units or sub-groups. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
Furthermore, some of the described embodiments are described herein as a method or combination of method elements that can be performed by a processor of a computer system or by other means of performing the described functions. A processor having the necessary instructions for carrying out the method or method elements thus forms a means for carrying out the method or method elements. Further, the elements of the apparatus embodiments described herein are examples of the following apparatus: the apparatus is used to implement the functions performed by the elements for the purpose of carrying out the invention.
The invention also discloses:
a9, the method as recited in A8, wherein the step of signature verifying the acquired electric vehicle basic information includes: and calculating the number of the electric vehicle and the number of the battery of the electric vehicle by adopting an MD5 algorithm to obtain a signature value. A10, the method as in a6, wherein the step of performing corresponding operations according to message type further comprises: when the message type is a second operation instruction, acquiring a content part of the message according to the position indicated by the identification bit, wherein the content part of the message comprises electric vehicle basic data; and positioning the position of the electric vehicle according to the electric vehicle basic data and sending the position information to a mobile terminal corresponding to the electric vehicle so that the mobile terminal can display the running track of the electric vehicle. A11, the method of a10, wherein the electric vehicle basic data includes mileage, electric quantity, latitude and longitude. A12, the method according to any A1-11, wherein the step of performing the corresponding operation according to the message type further comprises: and if the message with the message type of the second operation instruction is not received from the electric vehicle in the preset period, disconnecting the long-connection communication with the electric vehicle. A13, the method of a12, wherein, in the riding mode, the predetermined period is 5 seconds; and in the non-riding mode, the predetermined period is 10 minutes.
The various techniques described herein may be implemented in connection with hardware or software or, alternatively, with a combination of both. Thus, the methods and apparatus of the present invention, or certain aspects or portions thereof, may take the form of program code (i.e., instructions) embodied in tangible media, such as floppy diskettes, CD-ROMs, hard drives, or any other machine-readable storage medium, wherein, when the program is loaded into and executed by a machine, such as a computer, the machine becomes an apparatus for practicing the invention.
In the case of program code execution on programmable computers, the computing device will generally include a processor, a storage medium readable by the processor (including volatile and non-volatile memory and/or storage elements), at least one input device, and at least one output device. Wherein the memory is configured to store program code; the processor is configured to perform the method of the invention according to instructions in said program code stored in the memory.
By way of example, and not limitation, computer readable media may comprise computer storage media and communication media. Computer-readable media includes both computer storage media and communication media. Computer storage media store information such as computer readable instructions, data structures, program modules or other data. Communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media. Combinations of any of the above are also included within the scope of computer readable media.
As used herein, unless otherwise specified the use of the ordinal adjectives "first", "second", "third", etc., to describe a common object, merely indicate that different instances of like objects are being referred to, and are not intended to imply that the objects so described must be in a given sequence, either temporally, spatially, in ranking, or in any other manner.
While the invention has been described with respect to a limited number of embodiments, those skilled in the art, having benefit of this description, will appreciate that other embodiments can be devised which do not depart from the scope of the invention as described herein. Furthermore, it should be noted that the language used in the specification has been principally selected for readability and instructional purposes, and may not have been selected to delineate or circumscribe the inventive subject matter. Accordingly, many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the appended claims. The present invention has been disclosed in an illustrative rather than a restrictive sense, and the scope of the present invention is defined by the appended claims.

Claims (13)

1. An electric vehicle control method adapted to be executed in a server connected to an electric vehicle and a mobile terminal, respectively, the method comprising the steps of:
analyzing a message from an electric vehicle, wherein the message is generated according to a preset format and comprises a message header part and a content part, the message header part comprises a message type part and a message state part, the message type comprises an unlocking instruction, a power-on instruction, a mileage cleaning instruction, an identity verification instruction, a base station positioning information acquisition instruction, a data timing reporting instruction and one or more operation instructions in the returning of each instruction, and the message state comprises an electric vehicle state, a power-on state, a riding mode state and a locking state;
executing corresponding operation according to the message type, wherein the message type comprises one or more operation instructions, when the message type is a first operation instruction, acquiring a content part of a message according to a position indicated by an identification bit, wherein the content part of the message comprises basic information of the electric vehicle, performing signature verification on the acquired basic information of the electric vehicle, if the verification is passed, maintaining long-connection communication with the electric vehicle, and sending the message comprising a second operation instruction to a server by the electric vehicle at a fixed frequency;
generating a message with the message type as a control instruction according to a preset format and transmitting the message to the electric vehicle so that the electric vehicle can analyze the message, obtain the message content corresponding to the control instruction and execute corresponding operation; and
and judging whether the current state of the electric vehicle is abnormal or not according to the message state, and recording the abnormal state of the electric vehicle in the server.
2. The method of claim 1, wherein the step of determining whether the current state of the electric vehicle is abnormal according to the message state comprises:
and if the state of the electric vehicle is acquired from the message state and is toppled, judging that the current state is abnormal.
3. The method of claim 1, wherein the step of determining whether the current state of the electric vehicle is abnormal according to the message state further comprises:
and under the non-riding state, if the lock state is obtained from the message state as the unlocking state, judging that the current state is abnormal.
4. The method of claim 1, wherein the step of determining whether the current state of the electric vehicle is abnormal according to the message state comprises:
and judging whether the electric vehicle is in an abnormal state or not based on the electric vehicle state indicated by the message state and the operation instruction indicated by the message type.
5. The method of claim 1, wherein the header further comprises an identification bit indicating a location of a content portion of the message.
6. The method of claim 1, wherein the electric vehicle basic information includes an electric vehicle number, a battery number of the electric vehicle, and signature information.
7. The method of claim 6, wherein the signature verifying the acquired electric vehicle basic information comprises:
and calculating the number of the electric vehicle and the number of the battery of the electric vehicle by adopting an MD5 algorithm to obtain a signature value.
8. The method of claim 1, wherein the step of performing the corresponding operation according to the message type further comprises:
when the message type is a second operation instruction, acquiring a content part of the message according to the position indicated by the identification bit, wherein the content part of the message comprises electric vehicle basic data; and
and positioning the position of the electric vehicle according to the electric vehicle basic data and sending the position information to a mobile terminal corresponding to the electric vehicle so that the mobile terminal can display the running track of the electric vehicle.
9. The method of claim 8, wherein the electric vehicle-based data includes mileage, electric quantity, latitude and longitude.
10. The method of any one of claims 1-9, wherein performing the respective operation according to the message type further comprises:
and if the message with the message type of the second operation instruction is not received from the electric vehicle in the preset period, disconnecting the long-connection communication with the electric vehicle.
11. The method of claim 10, wherein,
in the riding mode, the preset period is 5 seconds; and
in the non-riding mode, the predetermined period is 10 minutes.
12. A computing device, comprising:
one or more processors;
a memory; and
one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising instructions for performing any of the methods of claims 1-11.
13. A computer readable storage medium storing one or more programs, the one or more programs comprising instructions, which when executed by a computing device, cause the computing device to perform any of the methods of claims 1-11.
CN201810165610.5A 2018-02-28 2018-02-28 Electric vehicle control method and computing device Active CN108303926B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810165610.5A CN108303926B (en) 2018-02-28 2018-02-28 Electric vehicle control method and computing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810165610.5A CN108303926B (en) 2018-02-28 2018-02-28 Electric vehicle control method and computing device

Publications (2)

Publication Number Publication Date
CN108303926A CN108303926A (en) 2018-07-20
CN108303926B true CN108303926B (en) 2020-02-11

Family

ID=62848662

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810165610.5A Active CN108303926B (en) 2018-02-28 2018-02-28 Electric vehicle control method and computing device

Country Status (1)

Country Link
CN (1) CN108303926B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111181948B (en) * 2019-12-25 2023-04-07 潍柴动力股份有限公司 Method and device for driving existing functions by non-standard message
CN114070876B (en) * 2021-11-16 2024-05-07 广东小狼星物联有限公司 Vehicle positioning management method
CN115871691B (en) * 2023-01-19 2023-05-26 禾多科技(北京)有限公司 Vehicle travel control method, apparatus, electronic device, and computer-readable medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104853050A (en) * 2015-06-01 2015-08-19 北京润东方科技有限公司 System and method for bicycle management
CN105809833A (en) * 2016-02-24 2016-07-27 北京易代步科技有限公司 Bicycle management method and system
CN206258946U (en) * 2016-12-22 2017-06-16 河南亚视软件技术有限公司 New type electric bicycle information acquisition device
CN107077133A (en) * 2014-09-29 2017-08-18 安飞士巴吉租车公司 Teleprocessing system, method and apparatus for the bidirectional data communication between the vehicle and fleet management system in fleet
CN107128206A (en) * 2017-06-07 2017-09-05 缪媛 The charging application method of charging pile for electric vehicle based on recharged card
CN107492169A (en) * 2017-07-27 2017-12-19 中兴通讯股份有限公司 Trigger the method, apparatus and system of smart lock work
CN107609664A (en) * 2017-09-13 2018-01-19 杭州骑迹科技有限公司 A kind of bicycle reserving method, computing device and mobile terminal
CN107633041A (en) * 2017-09-13 2018-01-26 杭州骑迹科技有限公司 A kind of information processing method, mobile terminal and information processing system

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004054554A (en) * 2002-07-19 2004-02-19 Kyousetsu:Kk Illegal bicycle parking management system
KR100763976B1 (en) * 2007-03-26 2007-10-10 서지영 Public traffic system by using communication network for bicycle activating
CN101789154A (en) * 2009-01-23 2010-07-28 上海永久自行车有限公司 Returning location searching method for leased bicycle
KR20120041705A (en) * 2012-01-27 2012-05-02 김정호 Management system of public bike using location based service
CN105306693B (en) * 2015-09-29 2018-05-18 深圳市爱培科技术股份有限公司 A kind of mobile terminal and the method and system of train movement recording equipment information exchange
CN107450087B (en) * 2017-08-03 2019-07-23 千寻位置网络有限公司 It is a kind of for sharing the quality of data server-side analysis method of bicycle high accuracy positioning

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107077133A (en) * 2014-09-29 2017-08-18 安飞士巴吉租车公司 Teleprocessing system, method and apparatus for the bidirectional data communication between the vehicle and fleet management system in fleet
CN104853050A (en) * 2015-06-01 2015-08-19 北京润东方科技有限公司 System and method for bicycle management
CN105809833A (en) * 2016-02-24 2016-07-27 北京易代步科技有限公司 Bicycle management method and system
CN206258946U (en) * 2016-12-22 2017-06-16 河南亚视软件技术有限公司 New type electric bicycle information acquisition device
CN107128206A (en) * 2017-06-07 2017-09-05 缪媛 The charging application method of charging pile for electric vehicle based on recharged card
CN107492169A (en) * 2017-07-27 2017-12-19 中兴通讯股份有限公司 Trigger the method, apparatus and system of smart lock work
CN107609664A (en) * 2017-09-13 2018-01-19 杭州骑迹科技有限公司 A kind of bicycle reserving method, computing device and mobile terminal
CN107633041A (en) * 2017-09-13 2018-01-26 杭州骑迹科技有限公司 A kind of information processing method, mobile terminal and information processing system

Also Published As

Publication number Publication date
CN108303926A (en) 2018-07-20

Similar Documents

Publication Publication Date Title
CN110365491B (en) Service processing method, device, equipment, storage medium and data sharing system
EP3654618B1 (en) Audio broadcasting method, device, and system, and smart broadcasting apparatus
CN108900471B (en) Server, client, network system and method for transmitting data
CN109830017B (en) Data management method, device, equipment, system and storage medium of intelligent lock
CN103155513B (en) Accelerate the method and apparatus of certification
JP6787932B2 (en) Information interaction methods, devices and systems
CN108303926B (en) Electric vehicle control method and computing device
CN103577202B (en) Method for upgrading software and system
CN110826043B (en) Digital identity application system and method, identity authentication system and method
CN110764807B (en) Upgrading method, system, server and terminal equipment
CN107665233A (en) Database data processing method, device, computer equipment and storage medium
CN103107974A (en) Method for registration and login of users and mobile terminal
EP2237184A2 (en) Automatic license key injection
CN101316120A (en) Radio frequency user recognition module, member card information processing method and processing system
CN1996836B (en) There is provided and obtain the method and apparatus of the session key for WUSB safety
CN107016074A (en) A kind of webpage loading method and device
CN104052757B (en) Identification system and method based on the client application in mobile phone
CN103733591A (en) Binding a removable module to an access terminal
CN104751323B (en) Electronic account data transfer method and related equipment and system
US20150235228A1 (en) Method, device and system for on-line payment information transmission
JP2017538223A (en) Authentication method
CN106056014A (en) Identity card reading method, identity card reading system and card reader
CN104079527A (en) Information processing method and electronic equipment
CN103609193B (en) The method and wireless access network equipment of identification terminal type
WO2019153975A1 (en) Resource transfer method based on near field communication

Legal Events

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