Embodiment
For making object, technical scheme and the advantage of the embodiment of the present invention clearer, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiment.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain under the prerequisite of not making creative work, belongs to the scope of protection of the invention.
Fig. 1 is the process flow diagram of an embodiment of vehicle arrangement emulation mode of the present invention, and as shown in Figure 1, this vehicle arrangement emulation mode can comprise:
Step 101, when the artificial debugging software moving on the host computer of artificial debugging equipment connection is during in simulation model, this artificial debugging equipment receives the network port information for the treatment of emulator that host computer sends.
Particularly, the network port information for the treatment of emulator that artificial debugging equipment reception host computer sends can be: artificial debugging equipment receives host computer by USB (universal serial bus) (Universal Serial Bus; Hereinafter to be referred as: the network port information for the treatment of emulator USB) sending.
Network port information in the present embodiment can comprise port type, port address, port refresh cycle and/or port size etc.
Further, after this artificial debugging equipment receives the network port information for the treatment of emulator of host computer transmission, this artificial debugging equipment can be preserved the above-mentioned network port information for the treatment of emulator.
Step 102, the network port information that artificial debugging equipment basis is treated emulator is to the above-mentioned operating instruction information for the treatment of emulator of MVB network request.
Particularly, artificial debugging equipment can be crossed MVB protocol controller to the above-mentioned operating instruction information for the treatment of emulator of above-mentioned MVB network request according to the above-mentioned network port information exchange for the treatment of emulator.
Step 103, the above-mentioned operating instruction information for the treatment of emulator obtaining from MVB network is sent to host computer by artificial debugging equipment, so that host computer, according to the above-mentioned operating instruction information configuration and the above-mentioned software emulation module for the treatment of that emulator is corresponding for the treatment of emulator, carries out emulation to the above-mentioned running status for the treatment of emulator.
Particularly, artificial debugging equipment can send to host computer by the above-mentioned operating instruction information for the treatment of emulator obtaining from MVB network by USB, and the above-mentioned operating instruction information for the treatment of emulator is that artificial debugging equipment receives from MVB network by MVB protocol controller.
Further, at host computer according to the above-mentioned operating instruction information configuration and the above-mentioned software emulation module for the treatment of that emulator is corresponding for the treatment of emulator, after the above-mentioned running status for the treatment of emulator is carried out to emulation, artificial debugging equipment can also receive the simulation result of above-mentioned host computer to the above-mentioned running status for the treatment of emulator, and above-mentioned simulation result is sent to MVB network, for the vehicle Master Control Unit on MVB network according to above-mentioned simulation result, adjust the operating instruction information of the said equipment, particularly, after simulation result is sent to MVB network by artificial debugging equipment, vehicle Master Control Unit on MVB network just can obtain above-mentioned simulation result from MVB network, and then above-mentioned vehicle Master Control Unit can be adjusted according to above-mentioned simulation result the operating instruction information of the said equipment.
In the present embodiment, when the artificial debugging software moving on host computer is during in monitoring mode, artificial debugging equipment can receive the network port information for the treatment of surveillance equipment that above-mentioned host computer sends, then artificial debugging equipment according to above-mentioned network port information to the above-mentioned service data for the treatment of surveillance equipment of MVB network request, and the service data for the treatment of surveillance equipment obtaining from above-mentioned MVB network is sent to host computer, to monitor the above-mentioned running status for the treatment of surveillance equipment, particularly, host computer can utilize curve to show in real time the above-mentioned running status for the treatment of surveillance equipment according to the service data for the treatment of surveillance equipment.Equally, artificial debugging equipment can receive the network port information for the treatment of surveillance equipment that host computer sends by USB, then artificial debugging equipment can be crossed MVB protocol controller and treat to above-mentioned MVB network request according to the above-mentioned network port information exchange service data of surveillance equipment, the above-mentioned service data for the treatment of surveillance equipment obtaining from MVB network is sent to above-mentioned host computer by USB, and the above-mentioned service data for the treatment of surveillance equipment is that artificial debugging equipment receives from MVB network by MVB protocol controller.
In sum, in the present embodiment, artificial debugging equipment is connected with MVB network by MVB protocol controller, at artificial debugging equipment during to MVB network request service data, artificial debugging equipment need to utilize MVB agreement to encapsulate to sent request message, and then the request message after encapsulation is sent to MVB network.
Host computer in the present embodiment can be PC (Personal Computer; Hereinafter to be referred as: PC), notebook computer or palm PC etc., the present embodiment is not construed as limiting this.
In above-described embodiment, when the artificial debugging software moving on the host computer of artificial debugging equipment connection is during in simulation model, the network port information for the treatment of emulator that this artificial debugging equipment can send according to host computer is treated the operating instruction information of emulator to MVB network request, then the above-mentioned operating instruction information for the treatment of emulator obtaining from MVB network is sent to host computer, host computer just can be according to the operating instruction information configuration and the above-mentioned software emulation module for the treatment of that emulator is corresponding for the treatment of emulator like this, the described running status for the treatment of emulator is carried out to emulation, thereby can realize, the equipment on vehicle network is carried out to artificial debugging, and simple to operate, practical.
Fig. 2 is the process flow diagram of another embodiment of vehicle arrangement emulation mode of the present invention, and as shown in Figure 2, this vehicle arrangement emulation mode can comprise:
Step 201, artificial debugging equipment judges that whether MVB network communication is normal; If so, and the artificial debugging software moving on the host computer of this artificial debugging equipment connection is in simulation model, performs step 202; If MVB network communication is normal, and the artificial debugging software moving on the host computer of this artificial debugging equipment connection is in monitoring mode, performs step 208; If MVB network communication is broken down, return to execution step 201.
Step 202, artificial debugging equipment receives the network port information for the treatment of emulator that host computer sends.
Particularly, the network port information for the treatment of emulator that artificial debugging equipment reception host computer sends can be: artificial debugging equipment receives the network port information for the treatment of emulator that host computer sends by USB.
Network port information in the present embodiment can comprise port type, port address, port refresh cycle and/or port size etc.
Further, after this artificial debugging equipment receives the network port information for the treatment of emulator of host computer transmission, this artificial debugging equipment can be preserved the above-mentioned network port information for the treatment of emulator.
Step 203, artificial debugging equipment according to the above-mentioned network port information for the treatment of emulator to the above-mentioned operating instruction information for the treatment of emulator of MVB network request.
Particularly, artificial debugging equipment can be crossed MVB protocol controller to the above-mentioned operating instruction information for the treatment of emulator of above-mentioned MVB network request according to the above-mentioned network port information exchange for the treatment of emulator.
Step 204, the above-mentioned operating instruction information for the treatment of emulator obtaining from MVB network is sent to host computer by artificial debugging equipment.
Step 205, host computer, according to the above-mentioned operating instruction information configuration and the above-mentioned software emulation module for the treatment of that emulator is corresponding for the treatment of emulator, carries out emulation to the above-mentioned running status for the treatment of emulator.
Particularly, host computer can be according to the above-mentioned above-mentioned characterisitic parameter for the treatment of emulator of operating instruction information acquisition for the treatment of emulator, load and the above-mentioned software emulation module for the treatment of that emulator is corresponding, and configure above-mentioned software emulation module according to the above-mentioned characterisitic parameter for the treatment of emulator, then move above-mentioned software emulation module and can realize the above-mentioned simulation run of emulator on MVB network for the treatment of.For instance, suppose to treat that emulator is motor, host computer can obtain the characterisitic parameter of motor according to the operating instruction information of motor, for example: rotating speed, voltage, electric current and/or the power etc. of motor, according to software emulation module corresponding to these characterisitic parameter configuration motors, and move the software emulation module that this motor is corresponding and can realize the simulation run of above-mentioned motor on MVB network.
Step 206, artificial debugging equipment receives the simulation result of above-mentioned host computer to the above-mentioned running status for the treatment of emulator, and above-mentioned simulation result is sent to MVB network.
In the present embodiment, after above-mentioned simulation result is sent to MVB network by artificial debugging equipment, MVB network can be according to above-mentioned simulation result, adjust the operating instruction information of the said equipment, particularly, after simulation result is sent to MVB network by artificial debugging equipment, the Master Control Unit on vehicle just can obtain above-mentioned simulation result from MVB network, and then Master Control Unit on vehicle can be adjusted according to above-mentioned simulation result the operating instruction information of the said equipment.
Step 207, judges whether to continue the equipment on vehicle to carry out emulation.If so, return to execution step 202; If determine and no longer the equipment on vehicle carried out to emulation, finish this flow process.
Step 208, artificial debugging equipment receives the network port information for the treatment of surveillance equipment that above-mentioned host computer sends.
Particularly, artificial debugging equipment can receive the network port information for the treatment of surveillance equipment that host computer sends by USB.
Step 209, artificial debugging equipment according to above-mentioned network port information to the above-mentioned service data for the treatment of surveillance equipment of MVB network request.
Particularly, artificial debugging equipment can be crossed MVB protocol controller and treat to above-mentioned MVB network request according to the above-mentioned network port information exchange service data of surveillance equipment.
Step 210, the service data for the treatment of surveillance equipment obtaining from above-mentioned MVB network is sent to host computer by artificial debugging equipment, to monitor the above-mentioned running status for the treatment of surveillance equipment.
Particularly, artificial debugging equipment can send to above-mentioned host computer by USB by the above-mentioned service data for the treatment of surveillance equipment obtaining from MVB network, and the above-mentioned service data for the treatment of surveillance equipment is that artificial debugging equipment receives from MVB network by MVB protocol controller.
Step 211, after receiving the above-mentioned service data for the treatment of surveillance equipment, host computer can utilize curve to show in real time the above-mentioned running status for the treatment of surveillance equipment according to the service data for the treatment of surveillance equipment.
Step 212, artificial debugging equipment judges whether to continue to monitor the equipment on vehicle.If so, return to execution step 208; If do not need to continue to monitor the equipment on vehicle, finish this flow process.
Host computer in the present embodiment can be PC, notebook computer or palm PC etc., and the present embodiment is not construed as limiting this.
Above-described embodiment can be realized the equipment on vehicle network is carried out to artificial debugging, and simple to operate, practical.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can complete by the relevant hardware of programmed instruction, aforesaid program can be stored in a computer read/write memory medium, this program, in the time carrying out, is carried out the step that comprises said method embodiment; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CDs.
Fig. 3 is the structural representation of an embodiment of artificial debugging equipment of the present invention, artificial debugging equipment in the present embodiment can be realized the present invention's flow process embodiment illustrated in fig. 1, as shown in Figure 3, this artificial debugging equipment can comprise: network interface unit 31, control module 32 and host computer interface unit 33;
Wherein, host computer interface unit 33, be connected with host computer, for when the artificial debugging software moving on host computer is during in simulation model, receive the network port information for the treatment of emulator that host computer sends, and the above-mentioned network port information for the treatment of emulator is sent to control module 32, and the above-mentioned operating instruction information for the treatment of emulator that control module 32 is sent sends to host computer, so that host computer is according to the above-mentioned operating instruction information configuration and the above-mentioned software emulation module for the treatment of that emulator is corresponding for the treatment of emulator, the above-mentioned running status for the treatment of emulator is carried out to emulation, particularly, host computer interface unit 33 can receive the network port information for the treatment of emulator that host computer sends by USB, and the above-mentioned operating instruction information for the treatment of emulator control module 32 being sent by above-mentioned USB sends to host computer, that is to say, in the present embodiment, host computer interface unit 33 is connected with the USB interface of host computer by usb bus.
Control module 32, be connected with host computer interface unit 33, for sending the first request message to network interface unit 31 according to the above-mentioned network port information for the treatment of emulator, above-mentioned the first request message is used for to the above-mentioned operating instruction information for the treatment of emulator of MVB network request, and the above-mentioned operating instruction information for the treatment of emulator that network interface unit 31 is sent sends to host computer interface unit 33; Particularly, control module 32 can be realized by AT91SAM7A3, and AT91SAM7A3 is 32 advanced RISC machines 7 (Advanced Reduced Instruction Set Computer Machines 7; Hereinafter to be referred as: ARM7) a member in Series of MCU.On AT91SAM7A3, there is 256K byte high speed flash memory (Flash) and 32K byte static RAM (Static Random Access Memory; Hereinafter to be referred as: SRAM) and a complete set of peripherals.Firmware can be protected in this AT91SAM7A3 built-in lock location, prevents that it from being covered by mistake.Totally 1024 pages of Flash in the sheet of AT91SAM7A3, every page of 256 bytes, altogether 65536 32 words.In sheet, Flash comprises the buffer memory of writing of 256 bytes, can pass through the interface accessing of 32.In the time that Flash in sheet can not read and write or access, it will enter standby automatically.
Network interface unit 31, is connected with control module 32, for above-mentioned the first request message is sent to MVB network, and the above-mentioned operating instruction information for the treatment of emulator obtaining from MVB network is sent to control module 32; Particularly, network interface unit 31 can send to MVB network by the first request message by MVB protocol controller, and receives the above-mentioned operating instruction information for the treatment of emulator by MVB protocol controller from MVB network; That is to say, in the present embodiment, network interface unit 31 can, by MVB protocol controller access MVB network, realize being connected between control module 32 and MVB network.
Further, host computer interface unit 33, can also receive the simulation result of host computer to the above-mentioned running status for the treatment of emulator, and above-mentioned simulation result is sent to control module 32;
Control module 32, the simulation result that host computer interface unit 33 can also be sent sends to network interface unit 31;
Network interface unit 31, the simulation result that control module 32 can also be sent sends to MVB network.
In addition, in the present embodiment, host computer interface unit 33, can also work as the artificial debugging software moving on host computer in the time of monitoring mode, receive the network port information for the treatment of surveillance equipment that host computer sends, and the above-mentioned network port information for the treatment of surveillance equipment is sent to control module 32, and the above-mentioned service data for the treatment of surveillance equipment that control module 32 is sent sends to host computer, to monitor the above-mentioned running status for the treatment of surveillance equipment;
Control module 32, also for sending the second request message to network interface unit 31 according to above-mentioned network port information, above-mentioned the second request message is used for to the above-mentioned service data for the treatment of surveillance equipment of MVB network request, and the above-mentioned service data for the treatment of surveillance equipment that network interface unit 31 is sent sends to host computer interface unit 33;
Network interface unit 31, also for above-mentioned the second request message is sent to MVB network, and sends to control module 32 by the service data for the treatment of surveillance equipment obtaining from MVB network.
Host computer in the present embodiment can be PC, notebook computer or palm PC etc., and the present embodiment is not construed as limiting this.
Above-mentioned artificial debugging equipment can be realized the equipment on vehicle network is carried out to artificial debugging, and simple to operate, practical.
Fig. 4 is the structural representation of an embodiment of vehicle arrangement analogue system of the present invention, and as shown in Figure 4, this vehicle arrangement analogue system can comprise: host computer 41 and artificial debugging equipment 42.
Wherein, host computer 41 can be PC, notebook computer or palm PC etc., and the present embodiment is not construed as limiting this; Artificial debugging equipment 42 can be realized by the present invention's artificial debugging equipment embodiment illustrated in fig. 3.
Reciprocal process between host computer 41 and artificial debugging equipment 42 refer to Fig. 1 of the present invention or embodiment illustrated in fig. 2 in description, do not repeat them here.
Above-mentioned vehicle arrangement analogue system can realize carries out artificial debugging to the equipment on vehicle network, and simple to operate, practical.
It will be appreciated by those skilled in the art that accompanying drawing is the schematic diagram of a preferred embodiment, the module in accompanying drawing or flow process might not be that enforcement the present invention is necessary.
It will be appreciated by those skilled in the art that the module in the device in embodiment can be distributed in the device of embodiment according to embodiment description, also can carry out respective change and be arranged in the one or more devices that are different from the present embodiment.The module of above-described embodiment can be merged into a module, also can further split into multiple submodules.
Finally it should be noted that: above embodiment only, in order to technical scheme of the present invention to be described, is not intended to limit; Although the present invention is had been described in detail with reference to previous embodiment, those of ordinary skill in the art is to be understood that: its technical scheme that still can record aforementioned each embodiment is modified, or part technical characterictic is wherein equal to replacement; And these amendments or replacement do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.