The content of the invention
Method and vehicle-mounted main system of the main object of the present invention for a kind of communication matching with coprocessor of offer, it is intended to
Reduce the workload of vehicle-mounted main system provider.
In order to realize foregoing invention purpose, the present invention proposes a kind of method of the communication matching with coprocessor, including:
Read the first client properties in system property;
Corresponding with first client properties the is searched in map listing of the default client properties with communication protocol
One communication protocol;
First communication protocol is called to be communicated with the coprocessor.
Further, before in the system property for reading vehicle-mounted main system the step of the first client properties, including:
The first client properties are received, and first client properties are added in the system property.
Further, after described the step of calling first communication protocol to be communicated with the coprocessor, bag
Include:
Judge whether the vehicle-mounted main system and coprocessor communicate success;
If communication failure, default action is performed.
Further, the step of execution default action, including:
Generation reminds text importing on the display screen of the vehicle-mounted main system;Or
Generation reminds voice to be played for loudspeaker.
Further, the step of execution default action, including:
It fails to match information, and corresponding the reason for it fails to match information are sent to terminal.
Further, the step of execution default action, including:
Default multiple second communication protocols are called to be communicated to be established with the coprocessor one by one;
Monitor whether second communication protocol currently called realizes that the communication with coprocessor is successful;
If communicating successfully, current second communication protocol is selected as the primary processor and the coprocessor
Communication protocol.
Further, the client properties are the unique number ID for representing client.
The present invention also provides a kind of vehicle-mounted main system of the communication matching with coprocessor, including:
Reading unit, for reading the first client properties in system property;
Searching unit, for being searched and first client in the map listing of default client properties and communication protocol
First communication protocol corresponding to attribute;
Call unit, for calling first communication protocol to be communicated with the coprocessor.
Further, the vehicle-mounted main system of the communication matching with coprocessor also includes:
Adding device is received, is added to the system for receiving the first client properties, and by first client properties
In attribute.
Further, the vehicle-mounted main system of the communication matching with coprocessor also includes:
Judging unit, for judging whether the vehicle-mounted main system and coprocessor communicate success;
Execution unit, for if it is determined that vehicle-mounted main system and coprocessor communication failure, then perform default action.
Further, the execution unit, including:
First execution module, for generating the display screen for reminding text importing in the vehicle-mounted main system;Or it is used for
Generation reminds voice to be played for loudspeaker.
Further, the execution unit, including:
Second execution unit, for sending it fails to match information to terminal, and corresponding described the reason for it fails to match, believes
Breath.
Further, the execution unit, including:
Module is tried out one by one, for calling default multiple second communication protocols logical to be established with the coprocessor one by one
Letter;
Module is monitored, for monitoring whether second communication protocol currently called realizes communication with coprocessor
Success;
Determining module, if for being communicated successfully with the coprocessor, select current the second communication protocol conduct
With the communication protocol of the coprocessor.
Further, the client properties are the unique number ID for representing client.
The method and vehicle-mounted main system of the matching of the communication with coprocessor of the present invention, obtain the first client properties, then
The first communication protocol corresponding with first client properties is searched in map listing of the client properties with communication protocol, it is above-mentioned
In map listing with client properties corresponding to communication protocol be the coprocessor that uses of corresponding client, when searching the first communication protocols
View can call the first communication protocol to be communicated with coprocessor.Compared to technology, vehicle-mounted main system provider can unite
One makes vehicle-mounted main system, then adds various communications protocols in advance in vehicle-mounted main system, adds the compatibility of vehicle-mounted main system
Property, client properties and the map listing of communication protocol are then established, because client is vehicle-mounted main system provider and confirmed,
The coprocessor type that client uses is known, only it is to be understood which client, which is, can call corresponding communication protocol, institute
When being supplied to the vehicle-mounted main system of client, as long as adding the attribute of client in its system property, to greatly reduce car
Carry the workload of main system provider.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Reference picture 1, the embodiment of the present invention provide a kind of method of the communication matching with coprocessor, including step:
S1, read the first client properties in system property.
In step sl, said system attribute is the attribute of vehicle-mounted main system, and it can include the version of vehicle-mounted main system
The information such as this number.Above-mentioned first client properties are the attribute for representing current onboard system user, and current onboard system uses
Side is by generation business of the vehicle-mounted main system with coprocessor combination together with.
S2, lookup is corresponding with first client properties in map listing of the default client properties with communication protocol
First communication protocol.
In step s 2, above-mentioned client properties and the map listing of communication protocol are that vehicle-mounted main system provider installs in advance
List into vehicle-mounted main system, vehicle-mounted main system provider knew the coprocessor that different clients uses, institute before this in advance
So that the making of the map listing of client properties and communication protocol can be completed, meanwhile, vehicle-mounted main system provider can be in vehicle-mounted master
The communication protocol of the coprocessor of corresponding each client is added in system, i.e., is provided with what is listed in map listing in vehicle-mounted main system
Whole communication protocols.Above-mentioned map listing can be multiple client properties correspond to same communication protocol or it is multiple lead to
Letter agreement corresponds to same client properties.In the present embodiment, above-mentioned client properties are the unique number ID for representing client, i.e., each
The corresponding unique ID number of individual client, only it is to be understood that unique number ID, you can to determine client, and then determine vehicle-mounted main system
It will be communicated to connect with any coprocessor.
S3, first communication protocol is called to be communicated with the coprocessor.
In step s3, vehicle-mounted main system calls the first communication protocol matched above by the first client properties, you can
Complete the communication with coprocessor.
Reference picture 2, in the present embodiment, the step S1 of the first client properties in the system property of the above-mentioned vehicle-mounted main system of reading
Before, including:
S101, the first client properties are received, and first client properties are added in the system property.
In step S101, after vehicle-mounted main system provider knows that vehicle-mounted main system will be supplied to the first client, nothing
Communication protocol need to be inputted or updated in vehicle-mounted main system for the first client, to ensure the association of vehicle-mounted main system and the first client
Processor can communicate to connect, it is only necessary to which user inputs the first client properties by display screen, so as to realize in vehicle-mounted main system
System property in add corresponding the first client properties for representing the first client, it is simple, conveniently, reduce vehicle-mounted main system and carry
The workload of supplier.
In the present embodiment, step S3 that above-mentioned calling first communication protocol is communicated with the coprocessor it
Afterwards, including:
S40, judge whether the vehicle-mounted main system and coprocessor communicate success.
In step s 40, judge that vehicle-mounted main system and the coprocessor successful method that whether communicates are a lot, such as, it is vehicle-mounted
Main system sends to coprocessor and seeks signal, then waits the feedback signal of coprocessor, if feedback time-out can be sentenced
Fixed vehicle-mounted main system and coprocessor communication failure, if within a specified time waiting until normal feedback signal, judge vehicle-mounted
Main system communicates successfully with coprocessor.Understand vehicle-mounted main system and coprocessor whether to communicate successful situation, in order to root
Corresponding operation is carried out according to signal intelligence, such as, signal intelligence can then be completed corresponding to communicate successfully by coprocessor
Association's processing task dispatching.
If S50, communication failure, perform default action.
In step s 50, communication failure performs default action, and default action can be prompting message, in order to make
User knows the problem of onboard system in time, facilitates timely processing or other matchings action etc..
In the present embodiment, the step S50 of the above-mentioned default action of execution, including:
S51, generation remind text importing on the display screen of the vehicle-mounted main system;Or
S52, generation remind voice to be played for loudspeaker.
In above-mentioned steps S51, prompting message is word, is shown in the display screen of vehicle-mounted main system, is user-friendly
Vision is checked;In above-mentioned steps S52, generation reminds voice to be played by the loudspeaker of the vehicle-mounted main system, facilitates user to listen
Communication failure is known by the sense of hearing, improves the probability that user has found communication failure in time.
In the present embodiment, above-mentioned steps S51 and S52 can also be carried out simultaneously, are improved user and are found communication failure in time
Probability.
In another embodiment, the step S50 of the default action of above-mentioned execution, including:
S53, it fails to match information, and corresponding the reason for it fails to match information are sent to terminal.
In step S53, above-mentioned the reason for it fails to match information includes communication protocol matching error, vehicle-mounted main system and association
Connection serial ports error of processor etc..Above-mentioned terminal can be the terminal of onboard system provider, and vehicle-mounted main system provider connects
After the information that receives that it fails to match and its cause information, it can be handled and be fed back to corresponding to the first client properties with the very first time
The terminal of client, is reported without client, and response speed faster, and then improves the completion speed of solution, improves operating efficiency,
Improve the experience of user.
In another embodiment, the step S50 of the default action of above-mentioned execution, including:
S54, default multiple second communication protocols are called to be communicated respectively with the coprocessor one by one;
Whether second communication protocol that S55, monitoring are currently called realizes the communication success with coprocessor;
If S56, communicating successfully, current second communication protocol is selected to be handled as the primary processor and the association
The communication protocol of device.
In above-mentioned steps S54, S55 and S56, above-mentioned multiple second communication protocols, generally above-mentioned client properties are with leading to
Believe other communication protocols in addition to the first communication protocol described in the map listing of agreement.It is as vehicle-mounted in the present embodiment
Main system is communicatively coupled using a communication protocol of multiple second communication protocols with coprocessor one by one, when vehicle-mounted principal series
System listens to communicate successfully with coprocessor, it is determined that the second currently used communication protocol is vehicle-mounted main system and coprocessor
The communication protocol matched, that is, communication protocol of the second current communication protocol as primary processor and coprocessor is determined,
In communication process from now on, directly invoke the second current communication protocol and use., can also be by others in afterwards the step of
Second communication protocol and the first communication protocol are deleted.
The method of the matching of the communication with coprocessor of the embodiment of the present invention, obtains the first client properties, then in client
Attribute is with searching the first communication protocol corresponding with first client properties, above-mentioned mapping row in the map listing of communication protocol
In table with client properties corresponding to communication protocol be the coprocessor that uses of corresponding client, when the first communication protocol of lookup
To call the first communication protocol to be communicated with coprocessor.Compared to technology, vehicle-mounted main system provider can unify to make
Vehicle-mounted main system, then add various communications protocols in advance in vehicle-mounted main system, add the compatibility of vehicle-mounted main system, then
Client properties and the map listing of communication protocol are established, confirms because client is vehicle-mounted main system provider, knows visitor
The coprocessor type that family uses, only it is to be understood which client, which is, can call corresponding communication protocol, so carrying
When supplying the vehicle-mounted main system of client, as long as adding the attribute of client in its system property, vehicle-mounted principal series is greatly reduced
The workload of system provider.
Reference picture 3, the embodiment of the present invention also provide a kind of vehicle-mounted main system of the communication matching with coprocessor, including:
Reading unit 10, for reading the first client properties in system property
In above-mentioned reading unit 10, said system attribute is the attribute of vehicle-mounted main system, and it can include vehicle-mounted master
The information such as the version number of system.Above-mentioned first client properties are the attribute for representing current onboard system user, current vehicle-mounted
System user is by generation business of the vehicle-mounted main system with coprocessor combination together with.
Searching unit 20, for being searched in the map listing of default client properties and communication protocol and the described first visitor
First communication protocol corresponding to the attribute of family.
In above-mentioned searching unit 20, the map listing of above-mentioned client properties and communication protocol is vehicle-mounted main system provider
The list being attached in advance in vehicle-mounted main system, vehicle-mounted main system provider knew association's processing that different clients uses before this in advance
Device, it is possible to the making of client properties and the map listing of communication protocol is completed, meanwhile, vehicle-mounted main system provider can be
The communication protocol of the coprocessor of corresponding each client is added in vehicle-mounted main system, i.e., is provided with vehicle-mounted main system in map listing
The whole communication protocols listed.Above-mentioned map listing can be multiple client properties correspond to same communication protocol or
Multiple communication protocols correspond to same client properties.In the present embodiment, above-mentioned client properties are the unique number ID for representing client,
That is the corresponding unique ID number of each client, only it is to be understood that unique number ID, you can to determine client, and then determine vehicle-mounted
Main system will communicate to connect with any coprocessor.
Call unit 30, for calling first communication protocol to be communicated with the coprocessor.
In above-mentioned call unit 30, vehicle-mounted main system calls the first communication protocols matched above by the first client properties
View, you can complete the communication with coprocessor.
Reference picture 4, in the present embodiment, the vehicle-mounted main system of the above-mentioned communication matching with coprocessor also includes:
Adding device 101 is received, is added to the system for receiving the first client properties, and by first client properties
In subordination.
In above-mentioned reception adding device 101, when vehicle-mounted main system provider knows that vehicle-mounted main system will be supplied to first
After client, without being inputted for the first client in vehicle-mounted main system or updating communication protocol, with ensure vehicle-mounted main system with
The coprocessor of first client can communicate to connect, it is only necessary to which user inputs the first client properties by display screen, and receives and add
Unit 101 is added to add corresponding the first client properties for representing the first client in the system property of vehicle-mounted main system, simply,
It is convenient, reduce the workload of vehicle-mounted main system provider.
In the present embodiment, the vehicle-mounted main system of the above-mentioned communication matching with coprocessor also includes:
Judging unit 40, for judging whether the vehicle-mounted main system and coprocessor communicate success;
Execution unit 50, for if it is determined that vehicle-mounted main system and coprocessor communication failure, then perform default action.
In above-mentioned judging unit 40 and execution unit 50, judge whether vehicle-mounted main system communicates successfully with coprocessor
Method is a lot, such as, vehicle-mounted main system sends to coprocessor and seeks signal, then waits the feedback signal of coprocessor, such as
Fruit feedback time-out can judge vehicle-mounted main system and coprocessor communication failure, if within a specified time waited until normal anti-
Feedback signal, then judge that vehicle-mounted main system communicates successfully with coprocessor.Understand whether vehicle-mounted main system communicates into coprocessor
The situation of work(, in order to the operation according to corresponding to signal intelligence progress, such as, signal intelligence can then pass through to communicate successfully
Coprocessor completes corresponding association's processing task dispatching.Communication failure performs default action, and default action can remind letter
Breath, the problem of knowing onboard system in time in order to user, facilitate timely processing or other matchings act etc..
Reference picture 5, in the present embodiment, the execution unit 50, including:
First execution module 51, for generating the display screen for reminding text importing in the vehicle-mounted main system;Or use
Voice is reminded to be played by the loudspeaker of the vehicle-mounted main system in generation.
Prompting message is word, is shown in the display screen of vehicle-mounted main system, is user-friendly vision and checks;Generation is reminded
Voice is played by the loudspeaker of the vehicle-mounted main system, is facilitated user to listen and is known communication failure by the sense of hearing, it is timely to improve user
It was found that the probability of communication failure.
Reference picture 6, in another embodiment, above-mentioned execution unit 50, including:
Second execution unit 52, for sending it fails to match information, and corresponding described the reason for it fails to match to terminal
Information.
In above-mentioned second execution unit 52, above-mentioned the reason for it fails to match information includes communication protocol matching error, car
Carry connection serial ports error of main system and coprocessor etc..Vehicle-mounted main system provider receives that it fails to match information and its reason
After information, it can be handled with the very first time and feed back to the terminal of client corresponding to the first client properties, be reported without client,
Response speed faster, and then improves the completion speed of solution, improves operating efficiency, improves the experience of user.
Reference picture 7, in another embodiment, above-mentioned execution unit 50, including:
One by one try out module 53, for call one by one default multiple second communication protocols with the coprocessor establish
Communication;
Monitor module 54, for monitor second communication protocol currently called whether realize it is logical with coprocessor
Believe successfully
Determining module 55, if for being communicated successfully with the coprocessor, current second communication protocol is selected to make
For the communication protocol with the coprocessor.
Above-mentioned module 53 is tried out one by one, monitor module 54 and determining module 55, above-mentioned multiple second communication protocols, one
As be above-mentioned client properties and other communication protocols in addition to the first communication protocol described in the map listing of communication protocol.
In the present embodiment, it is to be used for vehicle-mounted main system one by one using a communication of multiple second communication protocols to try out module 53 one by one
Agreement is communicatively coupled with coprocessor, is communicated successfully with coprocessor when monitoring module 54 listens to vehicle-mounted main system, really
Order member 55 then determines that the second currently used communication protocol is the communication protocol that vehicle-mounted main system is matched with coprocessor, i.e.,
It is determined that communication protocol of the second current communication protocol as primary processor and coprocessor, in communication process from now on, directly
Connect and call the second current communication protocol to use., can also be by other second communication protocols and the during afterwards
One communication protocol is deleted.
The vehicle-mounted main system of the matching of the communication with coprocessor of the embodiment of the present invention, reading unit 10 obtain the first client
Attribute, then searching unit 20 searched in map listing of the client properties with communication protocol corresponding with first client properties
The first communication protocol, in above-mentioned map listing with client properties corresponding to communication protocol be association's processing that corresponding client uses
Device, by call unit 30 the first communication protocol can be called to be communicated with coprocessor when searching the first communication protocol.
Compared to technology, vehicle-mounted main system provider can uniformly make vehicle-mounted main system, and then pre- addition is more in vehicle-mounted main system
Kind communication protocol, adds the compatibility of vehicle-mounted main system, then establishes client properties and the map listing of communication protocol, because
Client is that vehicle-mounted main system provider confirms, so the coprocessor type that client uses is known, only it is to be understood which client is
One can call corresponding communication protocol, so when being supplied to the vehicle-mounted main system of client, as long as in its system property
The attribute of middle addition client, greatly reduce the workload of vehicle-mounted main system provider.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the scope of the invention, every utilization
The equivalent structure or equivalent flow conversion that description of the invention and accompanying drawing content are made, or directly or indirectly it is used in other correlations
Technical field, be included within the scope of the present invention.