Invention content
In view of this, an embodiment of the present invention provides a kind of Vehicular diagnostic method, device, terminal and computer-readable storagesMedium, the vehicle of multiple types can be diagnosed by realizing an onboard diagnostic system, improve onboard diagnostic systemUtilization rate.
For this purpose, an embodiment of the present invention provides following technical solutions:
First aspect present invention provides a kind of Vehicular diagnostic method, including:It is used to ask to the first vehicle when receivingDuring the diagnosis solicited message diagnosed, the relevant information of onboard diagnostic system is obtained;According to the phase of the onboard diagnostic systemInformation is closed, judges whether the onboard diagnostic system has the first vehicle diagnostics permission, obtains judging result;Judge knot describedIn the case that fruit is no, the first prompt message is exported;Wherein, first prompt message is described vehicle-mounted for user to be prompted to openFirst vehicle diagnostics permission of diagnostic system.
Optionally, the relevant information for obtaining onboard diagnostic system, including:Obtain user account information;Acquisition and instituteThe relevant information of at least two onboard diagnostic system of user account information binding is stated, wherein, the correlation of each onboard diagnostic systemInformation includes the vehicle diagnostics permission that the onboard diagnostic system has.
Optionally, it is described to judge whether the onboard diagnostic system has the first vehicle diagnostics permission, including:According to describedThe relevant information of each onboard diagnostic system, judges whether each onboard diagnostic system has the first vehicle diagnostics permission successively;If each onboard diagnostic system does not have the first vehicle diagnostics permission, it is no to obtain the judging result.
Optionally, the method further includes:If the specified onboard diagnostic system tool at least two onboard diagnostic systemThe standby first vehicle diagnostics permission judges whether the onboard diagnostic system currently being connect with the terminal is described specified vehicle-mountedDiagnostic system;If it has not, the second prompt message of output, second prompt message is used to that user to be prompted to specify vehicle-mounted examine by describedDisconnected system is connect with the terminal.
Optionally, the method further includes:The first vehicle diagnostics permission is opened according to user's operation;By described firstVehicle diagnostics permission is bound with the user account information.
Optionally, it is described to bind the first vehicle diagnostics permission and the user account information, including:By describedOne vehicle diagnostics permission is added in the relevant information of an onboard diagnostic system at least two onboard diagnostic system.
Optionally, the relevant information for obtaining onboard diagnostic system includes:Obtain vehicle-mounted examining of currently being connect with terminalThe version number of disconnected system;The relevant information is obtained according to the version number of the onboard diagnostic system;Wherein, the relevant informationThe vehicle diagnostics permission having including the onboard diagnostic system.
Optionally, the version number for obtaining the onboard diagnostic system includes:Obtain the sequence of the onboard diagnostic systemRow number;The version number of the onboard diagnostic system is obtained according to the sequence number of the onboard diagnostic system.
Optionally, it after the first prompt message of the output, further includes:User is received to the first vehicle diagnostics permissionUnlatching solicited message;The unlatching solicited message is sent to server, so that the server please according to the unlatchingInformation is asked to open the first vehicle diagnostics permission;Receive the unlatching for the unlatching solicited message that the server is sentResponse message, the unlatching response message, which is used to indicate, opens the first vehicle diagnostics permission successfully or opens failure.
Optionally, the method further includes:If the unlatching response message received is used to indicate to first vehicleDiagnosis permission opens successfully, by the first vehicle diagnostics permission added to the onboard diagnostic system relevant information in.
Second aspect of the present invention provides a kind of vehicle diagnosing apparatus, including:Acquisition module is used for for working as to receiveDuring the diagnosis solicited message that request diagnoses the first vehicle, the relevant information of onboard diagnostic system is obtained;First judges mouldBlock for the relevant information according to the onboard diagnostic system, judges whether the onboard diagnostic system has the first vehicle and examineDisconnected permission, obtains judging result;Output module in the case of being no in the judging result, exports the first prompt message;Wherein, first prompt message is used for the first vehicle diagnostics permission that user is prompted to open the onboard diagnostic system.
Optionally, the acquisition module includes:First acquisition unit, for obtaining user account information;Second obtains listMember, for obtaining the relevant information at least two onboard diagnostic system of user account information binding, wherein, Mei GecheThe relevant information for carrying diagnostic system includes the vehicle diagnostics permission that the onboard diagnostic system has.
Optionally, first judgment module includes:First judging unit, for according to each onboard diagnostic systemRelevant information, judge whether each onboard diagnostic system has the first vehicle diagnostics permission successively;Second judgment unit is used forIf each onboard diagnostic system does not have the first vehicle diagnostics permission, it is no to obtain the judging result.
Optionally, described device further includes:Second judgment module, if at least two onboard diagnostic systemSpecified onboard diagnostic system has the first vehicle diagnostics permission, judges the onboard diagnostic system currently being connect with the terminalWhether it is the specified onboard diagnostic system;Reminding module, for if it has not, the second prompt message of output, second promptingInformation is used to that user to be prompted to connect the specified onboard diagnostic system with the terminal.
Optionally, described device further includes:Opening module is weighed for opening first vehicle diagnostics according to user's operationLimit;Binding module, for the first vehicle diagnostics permission and the user account information to be bound.
Optionally, the binding module is additionally operable to the first vehicle diagnostics permission is vehicle-mounted added to described at least twoIn the relevant information of an onboard diagnostic system in diagnostic system.
Optionally, the acquisition module includes:First acquisition unit, for obtaining the onboard diagnostics currently being connect with terminalThe version number of system;Second acquisition unit, for obtaining the relevant information according to the version number of the onboard diagnostic system;ItsIn, the relevant information includes the vehicle diagnostics permission that the onboard diagnostic system has.
Optionally, the first acquisition unit includes:First obtains subelement, for obtaining the onboard diagnostic systemSequence number;Second obtains subelement, for obtaining the onboard diagnostic system according to the sequence number of the onboard diagnostic systemVersion number.
Optionally, described device further includes:First receiving module, for exporting the first prompt message in the output moduleLater, unlatching solicited message of the user to the first vehicle diagnostics permission is received;Sending module, for described open to be askedInformation is sent to server, is weighed so that the server opens first vehicle diagnostics according to the unlatching solicited messageLimit;Second receiving module, for receiving the unlatching response message for the unlatching solicited message that the server is sent, instituteIt states to open response message and be used to indicate to open the first vehicle diagnostics permission successfully or open and fail.
Optionally, described device further includes:Add module, if the unlatching response message for receiving is used to indicateThe first vehicle diagnostics permission is opened successfully, the first vehicle diagnostics permission is added to the onboard diagnostic systemIn relevant information.
Third aspect present invention provides a kind of terminal, including:At least one processor;And with it is described at least oneThe memory of processor communication connection;Wherein, the memory is stored with the calculating that can be performed by least one processorMachine program, at least one processor are performed any described in above-mentioned first aspect by calling the computer programVehicular diagnostic method.
Fourth aspect present invention provides a kind of computer readable storage medium, is stored thereon with computer program, describedAny Vehicular diagnostic method in above-mentioned first aspect is realized when computer program is executed by processor.
Technical solution of the embodiment of the present invention, has the following advantages that:
An embodiment of the present invention provides a kind of Vehicular diagnostic method, device, terminal and computer readable storage medium,In, this method includes:When receiving for asking the diagnosis solicited message diagnosed to the first vehicle, onboard diagnostics is obtainedThe relevant information of system, the relevant information of the onboard diagnostic system for example can be that the diagnosis to some vehicles having been provided with is weighedLimit;According to the relevant information of the onboard diagnostic system, judge whether the onboard diagnostic system has the first vehicle diagnostics permission, obtainTo judging result;In the case where the judging result is no, the first prompt message is exported;Wherein, which is used forPrompting user opens the first vehicle diagnostics permission of the onboard diagnostic system, such as user can be prompted to be purchased for onboard diagnostic systemBuy the permission diagnosed to the vehicle.It is achieved thereby that an onboard diagnostic system can examine the vehicle of multiple typesIt is disconnected, improve the utilization rate of onboard diagnostic system.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is described, is shownSo, described embodiment is part of the embodiment of the present invention, instead of all the embodiments.Based on the implementation in the present inventionExample, those skilled in the art's all other embodiments obtained without creative efforts, belongs to this hairThe range of bright protection.
A kind of Vehicular diagnostic method is provided in the present embodiment, can be applied to terminal, and it is whole which can include userEnd, such as mobile phone, tablet computer;Alternatively, can include automotive diagnostic installation or other can perform the terminal of this method,It not limits herein.Fig. 1 is the flow chart of Vehicular diagnostic method according to embodiments of the present invention, as shown in Figure 1, the flow includesFollowing steps:
Step S101 when receiving for asking the diagnosis solicited message diagnosed to the first vehicle, is obtained vehicle-mountedThe relevant information of diagnostic system.
Illustratively, OBD relevant application programs can be installed in terminal, by the application program, can realize withOBD communicates, and can receive and handle the data of OBD transmissions.It can be shown on the interface of the application program multipleVehicle system icon, after selection operation of the user to some vehicle system icon is received, you can asked with being interpreted as receivingThe diagnosis solicited message diagnosed to the first vehicle.
Optionally, the above-mentioned relevant information of onboard diagnostic system for example can be the vehicle that the onboard diagnostic system has been provided withDiagnosis permission.The above-mentioned relevant information of onboard diagnostic system can be got in several ways, such as in an optional realityIt applies in example, obtains the version number for the onboard diagnostic system currently being connect with terminal first, according to the version number of onboard diagnostic systemThe relevant information is obtained, such as the relevant information can include the vehicle diagnostics permission that the onboard diagnostic system has been provided with.
Optionally, the acquisition modes about the version number of the onboard diagnostic system in one alternate embodiment, first obtainThe sequence number of the onboard diagnostic system, since an onboard diagnostic system is distinguished usually using unique sequence number,The version number of the onboard diagnostic system is obtained according to the sequence number of the onboard diagnostic system.
Step S102 according to the relevant information of onboard diagnostic system, judges whether the onboard diagnostic system has the first vehicleDiagnosis permission, obtain judging result.
For example, the onboard diagnostic system has been provided with the diagnosis permission to popular car system, Toyota sedan system, but it does not haveThere is the diagnosis permission to ford system.If the first vehicle belongs to public or Toyota sedan system, judge that the onboard diagnostic system hasFirst vehicle diagnostics permission;If first vehicle belongs to ford system, judge that the onboard diagnostic system does not have the first vehicleDiagnose permission.
Specifically, when the vehicle is not belonging to the vehicle of diagnosis permission that the onboard diagnostic system has been provided with, the judgementAs a result the permission that instruction onboard diagnostic system does not diagnose the vehicle.The onboard diagnostic system is belonged in the vehicleDuring the vehicle of diagnosis permission having, at this moment terminal calls above application program to from the collected vehicle number of onboard diagnostic systemAccording to progress analyzing and diagnosing.
Step S103 in the case where above-mentioned judging result is no, exports the first prompt message;Wherein, the first prompting letterIt ceases that user is prompted to open the first vehicle diagnostics permission of the onboard diagnostic system.
Specifically, which can be that the vehicle is examined for user to be prompted to buy the onboard diagnostic systemDisconnected permission, is bought in order to the diagnosis permission of terminal-pair vehicle, increases the vehicle system diagnosis permission of onboard diagnostic system.
By above-mentioned steps, diagnosed needing vehicle of the onboard diagnostic system to its except existing diagnosis permissionWhen, terminal notifying user opens diagnosis permission of the onboard diagnostic system to the vehicle, so that the onboard diagnostic system increases itThe preceding diagnosis permission to specifying vehicle not having, solving each onboard diagnostic system in the prior art can only be to specifying vehicleOperating status be monitored and diagnose, and the operating status of other vehicles cannot be monitored and be diagnosed, lead to vehicle-mounted examineThe problem of system availability of breaking is relatively low a, it is achieved thereby that onboard diagnostic system can examine the vehicle of multiple typesIt is disconnected, improve the utilization rate of onboard diagnostic system.
Fig. 2 is another flow chart of Vehicular diagnostic method according to embodiments of the present invention, as shown in Fig. 2, including as followsStep:
Step S201 obtains user account information;Obtain at least two onboard diagnostics system with user account information bindingThe relevant information of system.
Wherein, the relevant information of each onboard diagnostic system includes the vehicle diagnostics permission that the onboard diagnostic system has.For example, user account information is bundled with onboard diagnostic system A and onboard diagnostic system B, onboard diagnostic system A is had been provided with to bigMany vehicle systems, Toyota sedan system, ford system diagnosis permission, and onboard diagnostic system B has popular car system, Toyota sedan system is examinedDisconnected permission, but itself and without the diagnosis permission to ford system.
Step S202, in the case where a user account information is bundled at least two onboard diagnostic system simultaneously, according toThe relevant information of each onboard diagnostic system, judges whether each onboard diagnostic system has the first vehicle diagnostics permission successively.If at least two onboard diagnostic system that the user account is bound simultaneously does not have the first vehicle diagnostics permission, step is performedRapid S206 if wherein any one onboard diagnostic system is had to the first vehicle diagnostics permission, performs step S203.
Step S203, if the specified onboard diagnostics at least two onboard diagnostic system bound simultaneously with user accountSystem has the first vehicle diagnostics permission, judges whether the onboard diagnostic system currently being connect with terminal is the specified onboard diagnosticsSystem in the case where judging result is no, performs step S204, in the case where the judgment result is yes, performs step S205.
Step S204, exports the second prompt message, which is used to prompt user that this is specified onboard diagnosticsSystem is connect with the terminal, thereby may be ensured that through the onboard diagnostic system being connect with terminal to collected vehicle dataCarry out analyzing and diagnosing.
Step S205 specifies onboard diagnostic system to diagnose the first vehicle using this.
Step S206, terminal export to prompt diagnosis permission of user's unlatching onboard diagnostic system to first vehiclePrompt message.Terminal is allowd to carry out analyzing and diagnosing to collected vehicle data using the onboard diagnostic system.
Step S207 opens the first vehicle diagnostics permission according to user's operation.
Step S208 binds the first vehicle diagnostics permission and the user account information.Specifically, by first vehiclePermission is diagnosed to be added in the relevant information of an onboard diagnostic system at least two onboard diagnostic system.It can at oneIt selects in embodiment, which is added to the onboard diagnostic system that is currently connect with terminal, in order to can be withThe onboard diagnostic system currently being connect with terminal is opened immediately, analyzing and diagnosing is carried out to collected vehicle data, without endThe onboard diagnostic system of end switching connection.
Optionally, after above-mentioned steps S103, unlatching solicited message of the user to the first vehicle diagnostics permission is received,The unlatching solicited message is sent to server, so that server opens first vehicle diagnostics according to the unlatching solicited messagePermission, such as the unlatching solicited message can buy the Payment Amount of the first vehicle diagnostics permission, naturally it is also possible to be itHis verification information.Receive the unlatching response message for the unlatching solicited message of server transmission, unlatching response letterBreath, which is used to indicate, opens the first vehicle diagnostics permission successfully or opens failure, such as be more than or equal in advance in Payment AmountWhen determining threshold value, open response message instruction and the first vehicle diagnostics permission is opened successfully, be less than predetermined threshold in Payment AmountWhen, it opens response message instruction and failure is opened to the first vehicle diagnostics permission, at this moment terminal can continue to remind user againSolicited message is opened in input, to ensure so that onboard diagnostic system has the first vehicle diagnostics permission.What if terminal receivedThe unlatching response message, which is used to indicate, opens the first vehicle diagnostics permission successfully, which is added toIn the relevant information of the onboard diagnostic system, specifically, the sequence number of the onboard diagnostic system is obtained first, it should for the terminal-pairUser account and the onboard diagnostic system the permission that is diagnosed to the first vehicle of sequence number addition.At this moment the onboard diagnosticsThe access right of system is just equal to its intrinsic vehicle diagnostics permission and the first vehicle diagnostics permission.
Optionally, each account can download all onboard diagnostic systems under update current account automatically when logging inVehicle diagnosis permission, user click corresponding vehicle system icon when can according to vehicle diagnose permission judge whether user has this vehiclePermission, if user being prompted to buy without if, diagnosed if jumping to corresponding diagnostic program into every trade.Due to this schemeThe access right of vehicle system is bound with onboard diagnostic system sequence number, and each onboard diagnostic system during purchase in addition to fixingAccess right outside, can also be the vehicle system access right outside certain onboard diagnostic system purchase volume in APP.When user-pay intoThe vehicle that terminal or server-side can be by corresponding accounts with just having been bought in the permission addition of onboard diagnostic system box sequence number after work(System's diagnosis permission, while user downloads newest vehicle system diagnosis permission client is refreshable, user then can be with after the completion of updateUse corresponding vehicle system.Such as:The user Jack jack xxx.com bindings that access to your account are known clearly 2 onboard diagnostic systems, vehicle-mounted1 Serial No. AP100-0001 of diagnostic system box has the right to use of tri- sections of vehicles of vehicle1, vehicle2, vehicle3Limit;2 sequence number AP200-0001 of onboard diagnostic system box, have vehicle1, vehicle2, vehicle3, vehicle4,The access right of 5 sections of vehicles such as vehicle5;User wants that the permission onboard diagnostic system 1 upgrades to and onboard diagnostics system at this timeAs system 2, then need to pay off the expense that AP200 is upgraded to from AP100, later the access right of onboard diagnostic system 1 and vehicle-mountedDiagnostic system 2 is just the same.
A kind of vehicle diagnosing apparatus is additionally provided in the present embodiment, which is applied to terminal, the deviceAbove-described embodiment and preferred embodiment are used to implement, had carried out repeating no more for explanation.As used below, term" module " can realize the combination of the software and/or hardware of predetermined function.
Fig. 3 is the structure diagram of vehicle diagnosing apparatus according to embodiments of the present invention, as shown in figure 3, the vehicle diagnostics fillPut including:Acquisition module 31, for when receiving for asking the diagnosis solicited message diagnosed to the first vehicle, obtainingThe relevant information of onboard diagnostic system;First judgment module 32, for the relevant information according to the onboard diagnostic system, judging shouldWhether onboard diagnostic system has the first vehicle diagnostics permission, obtains judging result;Output module 33, in the judging resultIn the case of no, the first prompt message is exported;Wherein, which is used to that user to be prompted to open the onboard diagnostics systemFirst vehicle diagnostics permission of system.
Optionally, which includes:First acquisition unit, for obtaining user account information;Second acquisition unit,For obtaining the relevant information at least two onboard diagnostic system of user account information binding, wherein, each onboard diagnosticsThe relevant information of system includes the vehicle diagnostics permission that the onboard diagnostic system has.
Optionally, which includes:First judging unit, for the phase according to each onboard diagnostic systemInformation is closed, judges whether each onboard diagnostic system has the first vehicle diagnostics permission successively;Second judgment unit, if for shouldEach onboard diagnostic system does not have the first vehicle diagnostics permission, and it is no to obtain the judging result.
Optionally, which further includes:Second judgment module, if for specified at least two onboard diagnostic systemOnboard diagnostic system has the first vehicle diagnostics permission, and whether the onboard diagnostic system for judging currently to connect with the terminal is thisSpecified onboard diagnostic system;Reminding module, for if it has not, the second prompt message of output, second prompt message are used to promptThis is specified onboard diagnostic system to be connect with the terminal by user.
Optionally, which further includes:Opening module, for opening the first vehicle diagnostics permission according to user's operation;Binding module, for the first vehicle diagnostics permission and the user account information to be bound.
Optionally, which is additionally operable to the first vehicle diagnostics permission being added at least two onboard diagnostics systemIn the relevant information of an onboard diagnostic system in system.
Optionally, which includes:First acquisition unit, for obtaining the onboard diagnostics system currently being connect with terminalThe version number of system;Second acquisition unit, for obtaining the relevant information according to the version number of the onboard diagnostic system;Wherein, shouldRelevant information includes the vehicle diagnostics permission that the onboard diagnostic system has.
Optionally, which includes:First obtains subelement, for obtaining the sequence of the onboard diagnostic systemNumber;Second obtains subelement, for obtaining the version number of the onboard diagnostic system according to the sequence number of the onboard diagnostic system.
Optionally, which further includes:First receiving module, for the output module export the first prompt message itAfterwards, unlatching solicited message of the user to the first vehicle diagnostics permission is received;Sending module, for the unlatching solicited message to be sent outIt send to server, so that the server opens the first vehicle diagnostics permission according to the unlatching solicited message;Second receives mouldBlock, for receiving the unlatching response message for the unlatching solicited message of server transmission, which is used forFailure is opened the first vehicle diagnostics permission successfully or is opened in instruction.
Optionally, which further includes:Add module, if the unlatching response message for receiving is used to indicate to thisFirst vehicle diagnostics permission opens the relevant information that the first vehicle diagnostics permission is successfully added to the onboard diagnostic systemIn.
Vehicle diagnosing apparatus in the present embodiment is presented in the form of functional unit, and unit here refers to ASIC electricityRoad, perform one or more softwares or fixed routine processor and memory and/or other the device of above-mentioned function can be providedPart.
The further function description of above-mentioned modules is identical with above-mentioned corresponding embodiment, and details are not described herein.
Referring to Fig. 4, as shown in figure 4, the terminal can include:At least one processor 401, such as CPU (CentralProcessing Unit, central processing unit), at least one communication interface 403, memory 404, at least one communication bus402.Wherein, communication bus 402 is used to implement the connection communication between these components.Wherein, communication interface 403 can include aobviousDisplay screen (Display), keyboard (Keyboard), optional communication interface 403 can also include the wireline interface of standard, wirelessly connectMouthful.Memory 404 can be high-speed RAM memory (Random Access Memory, effumability random access memory),Can also be non-labile memory (non-volatile memory), for example, at least a magnetic disk storage.Memory404 optionally can also be at least one storage device for being located remotely from aforementioned processor 401.Wherein processor 401 can be tiedThe described devices of Fig. 3 are closed, application program are stored in memory 404, and processor 401 calls what is stored in memory 404Application program, for performing a kind of Vehicular diagnostic method, i.e., for the step of performing any of the above-described method.
Wherein, communication bus 402 can be Peripheral Component Interconnect standard (peripheral componentInterconnect, abbreviation PCI) bus or expanding the industrial standard structure (extended industry standardArchitecture, abbreviation EISA) bus etc..Communication bus 402 can be divided into address bus, data/address bus, controlling bus etc..For ease of representing, only represented in Fig. 4 with a thick line, it is not intended that an only bus or a type of bus.
Wherein, memory 404 can include volatile memory (English:Volatile memory), such as arbitrary accessMemory (English:Random-access memory, abbreviation:RAM);Memory can also include nonvolatile memory (EnglishText:Non-volatile memory), such as flash memory (English:Flash memory), hard disk (English:hard diskDrive, abbreviation:HDD) or solid state disk is (English:Solid-state drive, abbreviation:SSD);Memory 404 can also wrapInclude the combination of the memory of mentioned kind.
Wherein, processor 401 can be central processing unit (English:Central processing unit, abbreviation:CPU), network processing unit (English:Network processor, abbreviation:NP) etc..
Wherein, processor 401 can further include hardware chip.Above-mentioned hardware chip can be application-specific integrated circuit(English:Application-specific integrated circuit, abbreviation:ASIC), programmable logic device (English:Programmable logic device, abbreviation:PLD) or combination.Above-mentioned PLD can be Complex Programmable Logic Devices(English:Complex programmable logic device, abbreviation:CPLD), field programmable gate array (English:Field-programmable gate array, abbreviation:FPGA), Universal Array Logic (English:generic arrayLogic, abbreviation:GAL) or it is arbitrarily combined.
The embodiment of the present invention additionally provides a kind of non-transient computer storage medium, and the computer storage media is stored withComputer executable instructions, the computer executable instructions can perform the Vehicular diagnostic method in above-mentioned any means embodiment.Wherein, the storage medium can be magnetic disc, CD, read-only memory (Read-Only Memory, ROM), random storageMemory body (Random Access Memory, RAM), flash memory (Flash Memory), hard disk (Hard DiskDrive, abbreviation:) or solid state disk (Solid-State Drive, SSD) etc. HDD;The storage medium can also include above-mentionedThe combination of the memory of type.
Although being described in conjunction with the accompanying the embodiment of the present invention, those skilled in the art can not depart from the present inventionSpirit and scope in the case of various modifications and variations can be made, such modifications and variations are each fallen within by appended claims instituteWithin the scope of restriction.