CN104461581A - Hardware calling method and system based on virtualized technology and hardware sharing method and system based on virtualized technology - Google Patents

Hardware calling method and system based on virtualized technology and hardware sharing method and system based on virtualized technology Download PDF

Info

Publication number
CN104461581A
CN104461581A CN201410844114.4A CN201410844114A CN104461581A CN 104461581 A CN104461581 A CN 104461581A CN 201410844114 A CN201410844114 A CN 201410844114A CN 104461581 A CN104461581 A CN 104461581A
Authority
CN
China
Prior art keywords
hardware
external unit
electronic equipment
call request
call
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.)
Granted
Application number
CN201410844114.4A
Other languages
Chinese (zh)
Other versions
CN104461581B (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.)
ThunderSoft Co Ltd
Original Assignee
ThunderSoft 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 ThunderSoft Co Ltd filed Critical ThunderSoft Co Ltd
Priority to CN201410844114.4A priority Critical patent/CN104461581B/en
Publication of CN104461581A publication Critical patent/CN104461581A/en
Application granted granted Critical
Publication of CN104461581B publication Critical patent/CN104461581B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a hardware calling method and system based on the virtualized technology and a hardware sharing method and system based on the virtualized technology. The hardware calling method includes the steps of writing a library file containing hardware information of an external device in a hardware adaption layer of an electronic device in advance; connecting the electronic device and the external device; sending a hardware calling request to the external device through the electronic device by means of the connection, wherein the hardware calling request contains the hardware information in the library file; receiving hardware calling response information transmitted back by the external device; judging whether hardware required to be called through the hardware calling request is successfully called or not according to the hardware calling response information, and obtaining a first judgment result; receiving output data, sent by the external device, of the hardware if the first judgment result shows that the hardware is successfully called. By means of the methods or the systems, the utilization rate of hardware on devices such as mobile phones can be increased.

Description

A kind of hardware based on Intel Virtualization Technology calls, share method and system
Technical field
The present invention relates to Control on Communication field, particularly relate to a kind of hardware based on Intel Virtualization Technology and call, share method and system.
Background technology
Along with the development of electronic product, mobile phone has become the electronic product of staff indispensability substantially.The kind of sensor integrated in current phone also increases increasingly.
Such as, mobile phone can be integrated with GPS module, camera, geomagnetic sensor, gyroscope, acceleration sensor, light sensor, low coverage sensor, gravity sensor etc.Some mobile phone also has heartbeat sensor, passometer etc.Can expect, in visible future, have increasing sensor integration on mobile phone.
But, while mobile phone technique fast development, the speed of development that other electronic equipments are but so not fast.Such as, the equipment such as the TV in Smart Home, there be limited evidence currently of is integrated with above-mentioned numerous sensor.And other equipment outside mobile phone, the sensor on mobile phone cannot be used again, even if the sensor on mobile phone is not now used.This is for the sensor on mobile phone, is a kind of waste.
Summary of the invention
The object of this invention is to provide a kind of hardware based on Intel Virtualization Technology to call, share method and system, can sensor hardware on calling mobile phone, make sensor hardware use by the equipment outside mobile phone, thus improve the utilization factor of the hardware on mobile phone.
For achieving the above object, the invention provides following scheme:
Based on a hardware call method for Intel Virtualization Technology, comprising:
The library file of the hardware information of external unit is comprised in advance in the hardware adaptation layer write of electronic equipment;
Described electronic equipment and described external unit connect;
Described electronic equipment sends hardware call request by described connection to described external unit, comprises the described hardware information in described library file in described hardware call request;
The hardware receiving the passback of described external unit calls response message;
Call response message according to described hardware, judge whether the hardware of described hardware call request institute request call calls successfully, obtains the first judged result;
When described first judged result represent call successfully time, receive the output data of described hardware that described external unit sends.
Optionally, described electronic equipment sends hardware call request by described connection to described external unit, specifically comprises:
Call instruction is initiated to described hardware adaptation layer by the ccf layer of described electronic equipment;
Described hardware call request is sent to described external unit by described hardware adaptation layer.
Optionally, before the output data of the described hardware that the described external unit of described reception sends, also comprise:
The steering order for described hardware is sent, so that described external unit adjusts the duty of described hardware based on described steering order to described external unit;
The output data of the described hardware that the described external unit of described reception sends, specifically comprise:
Receive the output data of described hardware controlled when described steering order carries out work.
Optionally, also comprise:
When described first judged result represents malloc failure malloc, stop the application process performing based on described hardware.
A method shared by hardware based on Intel Virtualization Technology, comprising:
External unit obtains the hardware call request that electronic equipment sends; Hardware information is included in described hardware call request; Described hardware information is written in the library file of the hardware adaptation layer of described electronic equipment in advance;
Send hardware to described electronic equipment and call response message;
Start the hardware that described hardware call request is called;
Obtain the output data that described hardware produces in the course of the work;
Described output data are sent to described electronic equipment.
Based on a hardware calling system for Intel Virtualization Technology, comprising:
Library file writing unit, comprises the library file of the hardware information of external unit for the hardware adaptation layer write in advance at electronic equipment;
Connection establishment unit, for connecting with described external unit;
Call request transmitting element, for sending hardware call request by described connection to described external unit, comprises the described hardware information in described library file in described hardware call request;
Response message receiving element, calls response message for the hardware receiving the passback of described external unit;
First judging unit, for calling response message according to described hardware, judges whether the hardware of described hardware call request institute request call calls successfully, obtains the first judged result;
Export data receipt unit, for represent when described first judged result call successfully time, receive the output data of described hardware of described external unit transmission.
Optionally, described call request transmitting element, specifically comprises:
Call instruction sends subelement, sends call instruction for the ccf layer by described electronic equipment to described hardware adaptation layer;
Call request sends subelement, for sending described hardware call request by described hardware adaptation layer to described external unit.
Optionally, also comprise:
Steering order transmitting element, for before the output data receiving the described hardware that described external unit sends, the steering order for described hardware is sent, so that described external unit adjusts the duty of described hardware based on described steering order to described external unit;
Described output data receipt unit, specifically comprises:
Export data receiver subelement, for receiving the output data of described hardware controlled when described steering order carries out work.
Optionally, also comprise:
Application process stop element, for when described first judged result represents malloc failure malloc, stops the application process performing based on described hardware.
Based on a hardware shared system for Intel Virtualization Technology, comprising:
Hardware call request acquiring unit, for obtaining the hardware call request that electronic equipment sends; Hardware information is included in described hardware call request; Described hardware information is written in the library file of the hardware adaptation layer of described electronic equipment in advance;
Response message transmitting element, calls response message for sending hardware to described electronic equipment;
Hardware-initiated unit, for starting the hardware that described hardware call request is called;
Export data capture unit, for obtaining the output data that described hardware produces in the course of the work;
Export data transmission unit, for described output data are sent to described electronic equipment.
According to specific embodiment provided by the invention, the invention discloses following technique effect:
The hardware based on Intel Virtualization Technology in the embodiment of the present invention calls, share method and system, is comprised the library file of the hardware information of external unit by the hardware adaptation layer write in advance at electronic equipment; Connect with described external unit; Send hardware call request by described connection to described external unit, in described hardware call request, comprise the described hardware information in described library file; The hardware receiving the passback of described external unit calls response message; Call response message according to described hardware, judge whether the hardware of described hardware call request institute request call calls successfully; When calling successfully, receive the output data of the described hardware that described external unit sends.On the one hand can sensor hardware on the external unit such as calling mobile phone, make sensor hardware use by other electronic equipment, thus improve the utilization factor of the hardware on the equipment such as mobile phone.On the other hand, comprise the library file of the hardware information of external unit by the hardware adaptation layer write in advance at electronic equipment, can make the upper layer identification code of hardware adaptation layer it goes without doing to change.And for the application program that electronic equipment is installed, amendment that also it goes without doing.Writing of the invoke code of the hardware for external unit can be simplified.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the process flow diagram of the hardware call method embodiment 1 based on Intel Virtualization Technology of the present invention;
Fig. 2 is the process flow diagram of the hardware call method embodiment 2 based on Intel Virtualization Technology of the present invention;
Fig. 3 is the process flow diagram that embodiment of the method shared by the hardware based on Intel Virtualization Technology of the present invention;
Fig. 4 is the structural drawing of the hardware calling system embodiment based on Intel Virtualization Technology of the present invention;
Fig. 5 is the structural drawing of the hardware shared system embodiment based on Intel Virtualization Technology of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
For enabling above-mentioned purpose of the present invention, feature and advantage become apparent more, and below in conjunction with the drawings and specific embodiments, the present invention is further detailed explanation.
Fig. 1 is the process flow diagram of the hardware call method embodiment 1 based on Intel Virtualization Technology of the present invention.As shown in Figure 1, the method can comprise:
Step 101: the library file comprising the hardware information of external unit in advance in the hardware adaptation layer write of electronic equipment;
The intelligent operating system of current main flow, the modern operating system such as such as Android/Window/IOS/Firefox, have hardware adaptation layer (Hardware Adapter Layer, HAL) and ccf layer (FrameworkLayer).HAL can encapsulate the operation for hardware, provides unified application programming interface (Application Programming Interface, API) to Framework Layer.
In the embodiment of the present invention, comprise the library file (lib) of the hardware information of external unit in advance in the hardware adaptation layer write of electronic equipment.This can make the upper layer identification code of hardware adaptation layer it goes without doing to change.And for the application program that electronic equipment is installed, amendment that also it goes without doing.Can make, application program itself thinks that described electronic equipment has the hardware that describes in described library file.
In the embodiment of the present invention, described electronic equipment can be TV.Described external unit can be mobile phone.
Step 102: described electronic equipment and described external unit connect;
Described connection can be wired connection also can be wireless connections.Wired connection can be the connection of USB mode.Wireless connections can be the connections of WIFI mode.
Step 103: described electronic equipment sends hardware call request by described connection to described external unit, comprises the described hardware information in described library file in described hardware call request;
The hardware of described hardware call request institute request call can be various types of hardware.Such as, GPS module, camera, geomagnetic sensor, gyroscope, acceleration sensor, light sensor, low coverage sensor, gravity sensor etc.
Step 104: the hardware receiving the passback of described external unit calls response message;
When described external unit receives described hardware call request, response message can be called to described electronic equipment passback hardware.Described hardware calls response message can represent that described hardware can be used, or, can represent that described hardware is unavailable.
Step 105: call response message according to described hardware, judges whether the hardware of described hardware call request institute request call calls successfully, obtains the first judged result;
When described hardware call response message represent that described hardware is available time, can judge that the hardware of described hardware call request institute request call calls successfully.
Step 106: when described first judged result represent call successfully time, receive the output data of described hardware that described external unit sends.
When described hardware is invoked successfully, described hardware just can be activated.The output data that described hardware produces in the course of the work, just can be sent to described electronic equipment by described external unit.Described electronic equipment receives described output data, can utilize described output data, run the application on described electronic equipment.
In sum, in the present embodiment, comprised the library file of the hardware information of external unit by the hardware adaptation layer write in advance at electronic equipment; Connect with described external unit; Send hardware call request by described connection to described external unit, in described hardware call request, comprise the described hardware information in described library file; The hardware receiving the passback of described external unit calls response message; Call response message according to described hardware, judge whether the hardware of described hardware call request institute request call calls successfully; When calling successfully, receive the output data of the described hardware that described external unit sends.On the one hand can sensor hardware on the external unit such as calling mobile phone, make sensor hardware use by other electronic equipment, thus improve the utilization factor of the hardware on the equipment such as mobile phone.On the other hand, comprise the library file of the hardware information of external unit by the hardware adaptation layer write in advance at electronic equipment, can make the upper layer identification code of hardware adaptation layer it goes without doing to change.And for the application program that electronic equipment is installed, amendment that also it goes without doing.Writing of the invoke code of the hardware for external unit can be simplified.
In practical application, described electronic equipment sends hardware call request by described connection to described external unit, specifically can comprise:
Call instruction is initiated to described hardware adaptation layer by the ccf layer of described electronic equipment;
Described hardware call request is sent to described external unit by described hardware adaptation layer.
In practical application, before the output data of the described hardware that the described external unit of described reception sends, can also comprise the following steps:
The steering order for described hardware is sent, so that described external unit adjusts the duty of described hardware based on described steering order to described external unit;
The output data of the described hardware that the described external unit of described reception sends, specifically comprise:
Receive the output data of described hardware controlled when described steering order carries out work.
Above-mentioned steps can make described electronic equipment in the process calling described hardware, to described hardware sending controling instruction, thus can also control the course of work of described hardware, improve the invoked procedure of hardware further.
Also it should be noted that, in the embodiment of the present invention, when described first judged result represents malloc failure malloc, the application process performed based on described hardware can be stopped.
Concrete, the hardware that described electronic equipment calls, may be used by external electronic device, or breaks down and damaged.Now, described first judged result will represent malloc failure malloc, because described hardware cannot be called, so, now can stop the application process performing based on described hardware.This can be avoided program without response or the deadlock of electronic equipment operating system.
Fig. 2 is the process flow diagram of the hardware call method embodiment 2 based on Intel Virtualization Technology of the present invention.As shown in Figure 2, the method can comprise:
Step 201: the library file comprising the hardware information of smart mobile phone in advance in the hardware adaptation layer write of intelligent television;
Step 202: described intelligent television and described smart mobile phone connect;
Step 203: described intelligent television sends gyroscope call request by described connection to described smart mobile phone, comprises the described gyrostatic hardware information in described library file in described gyroscope call request;
Step 204: the gyroscope receiving the passback of described smart mobile phone calls response message;
Step 205: call response message according to described gyroscope, judges whether described gyroscope calls successfully, obtains the first judged result;
Step 206: when described first judged result represent call successfully time, receive described smart mobile phone send described gyrostatic output data.
In the present embodiment, intelligent television can be made to call gyrostatic output data on smart mobile phone.And then user using the operating equipment of smart mobile phone as somatic sensation television game, intelligent television can play somatic sensation television game.
The invention also discloses a kind of hardware based on Intel Virtualization Technology and share method.Described method is applied to said external equipment.
Fig. 3 is the process flow diagram that embodiment of the method shared by the hardware based on Intel Virtualization Technology of the present invention.As shown in Figure 3, the method can comprise:
Step 301: external unit obtains the hardware call request that electronic equipment sends; Hardware information is included in described hardware call request; Described hardware information is written in the library file of the hardware adaptation layer of described electronic equipment in advance;
Step 302: send hardware to described electronic equipment and call response message;
Step 303: start the hardware that described hardware call request is called;
Step 304: obtain the output data that described hardware produces in the course of the work;
Step 305: described output data are sent to described electronic equipment.
In the present embodiment, by obtaining the hardware call request that electronic equipment sends; Hardware information is included in described hardware call request; Described hardware information is written in the library file of the hardware adaptation layer of described electronic equipment in advance; Send hardware to described electronic equipment and call response message; Start the hardware that described hardware call request is called; Obtain the output data that described hardware produces in the course of the work; Described output data are sent to described electronic equipment.The sensor hardware on the external units such as mobile phone can be shared, make sensor hardware use by other electronic equipment, thus improve the utilization factor of the hardware on the equipment such as mobile phone.
It should be noted that, describedly send before hardware calls response message to described electronic equipment, can also comprise the following steps:
Determine the hardware that described hardware call request is called;
Inquire about the duty of described hardware;
Judge whether described duty represents that described hardware is in idle condition;
If described hardware is in idle condition, then sends the first hardware to described electronic equipment and call response message; Described first hardware calls response message and represents that described hardware can be used;
If described hardware is in busy state, then sends the second hardware to described electronic equipment and call response message; Described second hardware calls response message and represents that described hardware is unavailable.
The duty of the hardware that above-mentioned steps can make described external unit call for described hardware call request is analyzed, and when described hardware is taken by other programs, refuses described call request; When described hardware is in idle condition, just respond described call request.Conflict is produced when this can be avoided multiple program to call described hardware.
In addition, the priority called for described hardware can also be set, the program of the external unit at described hardware place can be set to the first priority for the priority called of described hardware, the program of external unit is set to the second priority for the priority called of described hardware.Described first priority is higher than described second priority.Can ensure that described external unit self enjoys the preferential right for described hardware like this.
The invention also discloses a kind of hardware calling system based on Intel Virtualization Technology.Described system can be applied to the electronic equipments such as above-mentioned intelligent television.
Fig. 4 is the structural drawing of the hardware calling system embodiment based on Intel Virtualization Technology of the present invention.As shown in Figure 4, this system can comprise:
Library file writing unit 401, comprises the library file of the hardware information of external unit for the hardware adaptation layer write in advance at electronic equipment;
Connection establishment unit 402, for connecting with described external unit;
Call request transmitting element 403, for sending hardware call request by described connection to described external unit, comprises the described hardware information in described library file in described hardware call request;
Response message receiving element 404, calls response message for the hardware receiving the passback of described external unit;
First judging unit 405, for calling response message according to described hardware, judges whether the hardware of described hardware call request institute request call calls successfully, obtains the first judged result;
Export data receipt unit 406, for represent when described first judged result call successfully time, receive the output data of described hardware of described external unit transmission.
In the present embodiment, comprised the library file of the hardware information of external unit by the hardware adaptation layer write in advance at electronic equipment; Connect with described external unit; Send hardware call request by described connection to described external unit, in described hardware call request, comprise the described hardware information in described library file; The hardware receiving the passback of described external unit calls response message; Call response message according to described hardware, judge whether the hardware of described hardware call request institute request call calls successfully; When calling successfully, receive the output data of the described hardware that described external unit sends.On the one hand can sensor hardware on the external unit such as calling mobile phone, make sensor hardware use by other electronic equipment, thus improve the utilization factor of the hardware on the equipment such as mobile phone.On the other hand, comprise the library file of the hardware information of external unit by the hardware adaptation layer write in advance at electronic equipment, can make the upper layer identification code of hardware adaptation layer it goes without doing to change.And for the application program that electronic equipment is installed, amendment that also it goes without doing.Writing of the invoke code of the hardware for external unit can be simplified.
In practical application, described call request transmitting element, specifically comprises:
Call instruction sends subelement, sends call instruction for the ccf layer by described electronic equipment to described hardware adaptation layer;
Call request sends subelement, for sending described hardware call request by described hardware adaptation layer to described external unit.
In practical application, also comprise:
Steering order transmitting element, for before the output data receiving the described hardware that described external unit sends, the steering order for described hardware is sent, so that described external unit adjusts the duty of described hardware based on described steering order to described external unit;
Described output data receipt unit, specifically comprises:
Export data receiver subelement, for receiving the output data of described hardware controlled when described steering order carries out work.
In practical application, also comprise:
Application process stop element, for when described first judged result represents malloc failure malloc, stops the application process performing based on described hardware.
The invention also discloses a kind of hardware shared system based on Intel Virtualization Technology.Described shared system can be applied to the external units such as above-mentioned smart mobile phone.
Fig. 5 is the structural drawing of the hardware shared system embodiment based on Intel Virtualization Technology of the present invention.As shown in Figure 5, this system can comprise:
Hardware call request acquiring unit 501, for obtaining the hardware call request that electronic equipment sends; Hardware information is included in described hardware call request; Described hardware information is written in the library file of the hardware adaptation layer of described electronic equipment in advance;
Response message transmitting element 502, calls response message for sending hardware to described electronic equipment;
Hardware-initiated unit 503, for starting the hardware that described hardware call request is called;
Export data capture unit 504, for obtaining the output data that described hardware produces in the course of the work;
Export data transmission unit 505, for described output data are sent to described electronic equipment.
In the present embodiment, by obtaining the hardware call request that electronic equipment sends; Hardware information is included in described hardware call request; Described hardware information is written in the library file of the hardware adaptation layer of described electronic equipment in advance; Send hardware to described electronic equipment and call response message; Start the hardware that described hardware call request is called; Obtain the output data that described hardware produces in the course of the work; Described output data are sent to described electronic equipment.The sensor hardware on the external units such as mobile phone can be shared, make sensor hardware use by other electronic equipment, thus improve the utilization factor of the hardware on the equipment such as mobile phone.
It should be noted that, can also comprise with lower unit:
Hardware determining unit, for before calling response message to described electronic equipment transmission hardware, determines the hardware that described hardware call request is called;
Duty unit, for inquiring about the duty of described hardware;
Condition adjudgement unit, for judging whether described duty represents that described hardware is in idle condition;
First hardware calls response message unit, if be in idle condition for described hardware, then send the first hardware to described electronic equipment and calls response message; Described first hardware calls response message and represents that described hardware can be used;
Second hardware calls response message unit, if be in busy state for described hardware, then send the second hardware to described electronic equipment and calls response message; Described second hardware calls response message and represents that described hardware is unavailable.
The duty of the hardware that said units can make described external unit call for described hardware call request is analyzed, and when described hardware is taken by other programs, refuses described call request; When described hardware is in idle condition, just respond described call request.Conflict is produced when this can be avoided multiple program to call described hardware.
In addition, priority setting unit can also be comprised, for arranging the priority called for described hardware, the program of the external unit at described hardware place can be set to the first priority for the priority called of described hardware, the program of external unit is set to the second priority for the priority called of described hardware.Described first priority is higher than described second priority.Can ensure that described external unit self enjoys the preferential right for described hardware like this.
Also it should be noted that, the effect of the hardware information in " comprising the library file of the hardware information of external unit in advance in the hardware adaptation layer write of electronic equipment " this description in the present invention, be the hardware do not had on virtual described electronic equipment, specifically can comprise the api function calling this hardware implementing function.The parameters such as the concrete model of hardware can not be comprised in described hardware information.In actual applications, described electronic equipment and described external unit, by the connection of setting up between described electronic equipment and described external unit, can transmit the information such as the concrete model of the actual hardware that will call.Therefore, the call method in the present invention, can make the electronic equipment applying this method can call the hardware of the external unit of most of type.Such as, suppose that user needs to use the camera of televisor calling mobile phone, then this televisor both can the camera of calling mobile phone A, also can the camera of calling mobile phone B, and need not be confined to some specific mobile phones.
In this instructions, each embodiment adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar portion mutually see.For system disclosed in embodiment, because it corresponds to the method disclosed in Example, so description is fairly simple, relevant part illustrates see method part.
Apply specific case herein to set forth principle of the present invention and embodiment, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications.In sum, this description should not be construed as limitation of the present invention.

Claims (10)

1., based on a hardware call method for Intel Virtualization Technology, it is characterized in that, comprising:
The library file of the hardware information of external unit is comprised in advance in the hardware adaptation layer write of electronic equipment;
Described electronic equipment and described external unit connect;
Described electronic equipment sends hardware call request by described connection to described external unit, comprises the described hardware information in described library file in described hardware call request;
The hardware receiving the passback of described external unit calls response message;
Call response message according to described hardware, judge whether the hardware of described hardware call request institute request call calls successfully, obtains the first judged result;
When described first judged result represent call successfully time, receive the output data of described hardware that described external unit sends.
2. method according to claim 1, is characterized in that, described electronic equipment sends hardware call request by described connection to described external unit, specifically comprises:
Call instruction is initiated to described hardware adaptation layer by the ccf layer of described electronic equipment;
Described hardware call request is sent to described external unit by described hardware adaptation layer.
3. method according to claim 1, is characterized in that, before the output data of the described hardware that the described external unit of described reception sends, also comprises:
The steering order for described hardware is sent, so that described external unit adjusts the duty of described hardware based on described steering order to described external unit;
The output data of the described hardware that the described external unit of described reception sends, specifically comprise:
Receive the output data of described hardware controlled when described steering order carries out work.
4. method according to claim 1, is characterized in that, also comprises:
When described first judged result represents malloc failure malloc, stop the application process performing based on described hardware.
5. a method shared by the hardware based on Intel Virtualization Technology, it is characterized in that, comprising:
External unit obtains the hardware call request that electronic equipment sends; Hardware information is included in described hardware call request; Described hardware information is written in the library file of the hardware adaptation layer of described electronic equipment in advance;
Send hardware to described electronic equipment and call response message;
Start the hardware that described hardware call request is called;
Obtain the output data that described hardware produces in the course of the work;
Described output data are sent to described electronic equipment.
6., based on a hardware calling system for Intel Virtualization Technology, it is characterized in that, comprising:
Library file writing unit, comprises the library file of the hardware information of external unit for the hardware adaptation layer write in advance at electronic equipment;
Connection establishment unit, for connecting with described external unit;
Call request transmitting element, for sending hardware call request by described connection to described external unit, comprises the described hardware information in described library file in described hardware call request;
Response message receiving element, calls response message for the hardware receiving the passback of described external unit;
First judging unit, for calling response message according to described hardware, judges whether the hardware of described hardware call request institute request call calls successfully, obtains the first judged result;
Export data receipt unit, for represent when described first judged result call successfully time, receive the output data of described hardware of described external unit transmission.
7. system according to claim 6, is characterized in that, described call request transmitting element, specifically comprises:
Call instruction sends subelement, sends call instruction for the ccf layer by described electronic equipment to described hardware adaptation layer;
Call request sends subelement, for sending described hardware call request by described hardware adaptation layer to described external unit.
8. system according to claim 6, is characterized in that, also comprises:
Steering order transmitting element, for before the output data receiving the described hardware that described external unit sends, the steering order for described hardware is sent, so that described external unit adjusts the duty of described hardware based on described steering order to described external unit;
Described output data receipt unit, specifically comprises:
Export data receiver subelement, for receiving the output data of described hardware controlled when described steering order carries out work.
9. system according to claim 6, is characterized in that, also comprises:
Application process stop element, for when described first judged result represents malloc failure malloc, stops the application process performing based on described hardware.
10., based on a hardware shared system for Intel Virtualization Technology, it is characterized in that, comprising:
Hardware call request acquiring unit, for obtaining the hardware call request that electronic equipment sends; Hardware information is included in described hardware call request; Described hardware information is written in the library file of the hardware adaptation layer of described electronic equipment in advance;
Response message transmitting element, calls response message for sending hardware to described electronic equipment;
Hardware-initiated unit, for starting the hardware that described hardware call request is called;
Export data capture unit, for obtaining the output data that described hardware produces in the course of the work;
Export data transmission unit, for described output data are sent to described electronic equipment.
CN201410844114.4A 2014-12-30 2014-12-30 A kind of hardware calling, sharing method and system based on virtualization technology Active CN104461581B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410844114.4A CN104461581B (en) 2014-12-30 2014-12-30 A kind of hardware calling, sharing method and system based on virtualization technology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410844114.4A CN104461581B (en) 2014-12-30 2014-12-30 A kind of hardware calling, sharing method and system based on virtualization technology

Publications (2)

Publication Number Publication Date
CN104461581A true CN104461581A (en) 2015-03-25
CN104461581B CN104461581B (en) 2018-07-06

Family

ID=52907692

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410844114.4A Active CN104461581B (en) 2014-12-30 2014-12-30 A kind of hardware calling, sharing method and system based on virtualization technology

Country Status (1)

Country Link
CN (1) CN104461581B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105933373A (en) * 2015-02-28 2016-09-07 联发科技(新加坡)私人有限公司 Hardware or software service request processing method
CN107291741A (en) * 2016-03-31 2017-10-24 阿里巴巴集团控股有限公司 Communication means and device
CN107368042A (en) * 2016-05-13 2017-11-21 上海澜腾智能科技有限公司 Intelligent home control system and its control device and control method
CN109085927A (en) * 2018-09-10 2018-12-25 南昌黑鲨科技有限公司 Operation control assembly, method, intelligent terminal and computer readable storage medium based on body-sensing
WO2021120092A1 (en) * 2019-12-19 2021-06-24 Intel Corporation Hardware based abstraction sharing of hardware devices across computing platforms
CN113568352A (en) * 2021-07-29 2021-10-29 山东浪潮通软信息科技有限公司 Control method of intelligent wheelchair and intelligent wheelchair

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102202289A (en) * 2011-04-13 2011-09-28 张�林 Method and system for remote calling software and hardware resources through mobile terminal
CN103036916A (en) * 2011-09-29 2013-04-10 中国移动通信集团公司 Method, device and system thereof for calling remote hardware resources
CN104216839A (en) * 2014-08-29 2014-12-17 宇龙计算机通信科技(深圳)有限公司 Information interaction method, device and terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102202289A (en) * 2011-04-13 2011-09-28 张�林 Method and system for remote calling software and hardware resources through mobile terminal
CN103036916A (en) * 2011-09-29 2013-04-10 中国移动通信集团公司 Method, device and system thereof for calling remote hardware resources
CN104216839A (en) * 2014-08-29 2014-12-17 宇龙计算机通信科技(深圳)有限公司 Information interaction method, device and terminal

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105933373A (en) * 2015-02-28 2016-09-07 联发科技(新加坡)私人有限公司 Hardware or software service request processing method
CN107291741A (en) * 2016-03-31 2017-10-24 阿里巴巴集团控股有限公司 Communication means and device
CN107291741B (en) * 2016-03-31 2021-05-11 创新先进技术有限公司 Communication method and device
CN107368042A (en) * 2016-05-13 2017-11-21 上海澜腾智能科技有限公司 Intelligent home control system and its control device and control method
CN107368042B (en) * 2016-05-13 2019-07-30 上海澜腾智能科技有限公司 Intelligent home control system and its control device and control method
CN109085927A (en) * 2018-09-10 2018-12-25 南昌黑鲨科技有限公司 Operation control assembly, method, intelligent terminal and computer readable storage medium based on body-sensing
WO2021120092A1 (en) * 2019-12-19 2021-06-24 Intel Corporation Hardware based abstraction sharing of hardware devices across computing platforms
CN113568352A (en) * 2021-07-29 2021-10-29 山东浪潮通软信息科技有限公司 Control method of intelligent wheelchair and intelligent wheelchair

Also Published As

Publication number Publication date
CN104461581B (en) 2018-07-06

Similar Documents

Publication Publication Date Title
CN104461581A (en) Hardware calling method and system based on virtualized technology and hardware sharing method and system based on virtualized technology
US9386264B2 (en) Augmenting capabilities of a host device
CN107926075B (en) System and method for supporting data communication in heterogeneous environment
CN110687820B (en) Control method and device of intelligent household equipment, terminal equipment and storage medium
US20220053079A1 (en) System and method for supporting movable object application development
CN103297506A (en) Method and system for controlling household equipment
KR102525060B1 (en) Access method, Internet of Things platform, application device, service device
WO2019201340A1 (en) Processor core scheduling method and apparatus, terminal, and storage medium
CN113329201B (en) Enhanced video call method and system, and electronic device
US20230122238A1 (en) Account binding method, device, and system
WO2016150191A1 (en) Data sharing method and device
EP3007385A1 (en) Terminal peripheral control method, m2m gateway, and communications system
CN106339236A (en) Software upgrading method, client, interphone and soft upgrading system
CN103873592A (en) Data transmission method and system
CN103744707B (en) A kind of VCI device program upgrade method, device and system
CN104020476A (en) External device for Big Dipper locating and method thereof
CN103246557A (en) Method and device for calling application information in cross process mode
CN112653915A (en) Television-based sensing enabling method and device, television and storage medium
CN104469657B (en) Audio communication system and equipment based on WINDOWS operating systems
CN104461701A (en) Control method and electronic equipment
EP3836619A1 (en) Direct connection communication method, amf, access network functional entity and terminal
CN106488537B (en) Sending method, device and mobile terminal
CN110781014B (en) Recording data multi-process distribution method and system based on Android device
CN108282890B (en) Resource scheduling processing method, network side equipment and mobile terminal
CN102469150A (en) Long-range control method of embedded equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP02 Change in the address of a patent holder
CP02 Change in the address of a patent holder

Address after: Room 101-105, floor 1, Chuangda building, No. 9, Qinghua East Road, Haidian District, Beijing 100083 (Dongsheng District)

Patentee after: Thunder Software Technology Co., Ltd.

Address before: 100191 Beijing Haidian District Lung Cheung Road No. 1 Tai Xiang business building 4 layer 401-409

Patentee before: Thunder Software Technology Co., Ltd.