CN104461581B - A kind of hardware calling, sharing method and system based on virtualization technology - Google Patents
A kind of hardware calling, sharing method and system based on virtualization technology Download PDFInfo
- Publication number
- CN104461581B CN104461581B CN201410844114.4A CN201410844114A CN104461581B CN 104461581 B CN104461581 B CN 104461581B CN 201410844114 A CN201410844114 A CN 201410844114A CN 104461581 B CN104461581 B CN 104461581B
- Authority
- CN
- China
- Prior art keywords
- hardware
- call request
- electronic equipment
- intelligent terminal
- output data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Mobile Radio Communication Systems (AREA)
- Telephone Function (AREA)
Abstract
The present invention discloses a kind of hardware calling, sharing method and system based on virtualization technology.The method includes:In advance in the library file of hardware information of the hardware adaptation layer of the electronic equipment write-in comprising external equipment;The electronic equipment is established with the external equipment and is connected;The electronic equipment sends hardware call request by described connect to the external equipment, and the hardware information in the library file is included in the hardware call request;The hardware for receiving the external equipment passback calls response message;Response message is called according to the hardware, judges whether the hardware of hardware call request institute request call calls success, obtains the first judging result;When first judging result expression is called successfully, the output data for the hardware that the external equipment is sent is received.Method or system using the present invention can improve the utilization rate of the hardware in the equipment such as mobile phone.
Description
Technical field
The present invention relates to communication control fields, are called more particularly to a kind of hardware based on virtualization technology, shared side
Method and system.
Background technology
With the continuous development of electronic product, mobile phone substantially has become the electronic product of human hand indispensability.Current phone
The type of upper integrated sensor also increases increasingly.
For example, GPS module, camera, geomagnetic sensor, gyroscope, acceleration sensor, light can be integrated on mobile phone
Sensor, low coverage sensor, gravity sensor etc..There is heartbeat sensor, pedometer etc. on some mobile phones.It is contemplated that
In visible future, have on more and more sensor integrations to mobile phone.
But while mobile phone technique fast development, but there is no so fast development speeds for other electronic equipments.Example
Such as, the equipment such as TV in smart home are seldom integrated with above-mentioned numerous sensor at present.And other except mobile phone are set
It is standby, and the sensor on mobile phone can not be used, even if the sensor on mobile phone at this time and is not used by.This is for the biography on mobile phone
It is a kind of waste for sensor.
Invention content
The object of the present invention is to provide a kind of hardware calling, sharing method and systems based on virtualization technology, can adjust
With hardware such as the sensors on mobile phone, the hardware such as sensor is made to be used by the equipment except mobile phone, so as to improve on mobile phone
The utilization rate of hardware.
To achieve the above object, the present invention provides following schemes:
A kind of hardware call method based on virtualization technology, including:
In advance in the library file of hardware information of the hardware adaptation layer of the electronic equipment write-in comprising external equipment;
The electronic equipment is established with the external equipment and is connected;
The electronic equipment sends hardware call request by described connect to the external equipment, and the hardware calls please
It asks comprising the hardware information in the library file;
The hardware for receiving the external equipment passback calls response message;
Response message is called according to the hardware, judges whether the hardware of hardware call request institute request call calls
Success, obtains the first judging result;
When first judging result expression is called successfully, the output for the hardware that the external equipment is sent is received
Data.
Optionally, the electronic equipment sends hardware call request by described connect to the external equipment, specific to wrap
It includes:
Call instruction is initiated to the hardware adaptation layer by the ccf layer of the electronic equipment;
The hardware call request is sent to the external equipment by the hardware adaptation layer.
Optionally, it before the output data for receiving the hardware that the external equipment is sent, further includes:
The control instruction for the hardware is sent to the external equipment, so that the external equipment is based on the control
Instruction adjusts the working condition of the hardware;
The output data for receiving the hardware that the external equipment is sent, specifically includes:
Receive output data of the hardware controlled when control instruction is worked.
Optionally, it further includes:
When first judging result represents malloc failure malloc, stop the application process being performed based on the hardware.
A kind of hardware sharing method based on virtualization technology, including:
External equipment obtains the hardware call request that electronic equipment is sent;Include hardware letter in the hardware call request
Breath;The hardware information is previously written in the library file of the hardware adaptation layer of the electronic equipment;
Hardware, which is sent, to the electronic equipment calls response message;
Start the hardware that the hardware call request is called;
Obtain the output data that the hardware generates during the work time;
The output data is sent to the electronic equipment.
A kind of hardware calling system based on virtualization technology, including:
Library file writing unit, for believing in advance in hardware of the hardware adaptation layer of the electronic equipment write-in comprising external equipment
The library file of breath;
Connection establishment unit connects for being established with the external equipment;
Call request transmitting element, it is described for sending hardware call request by described connect to the external equipment
The hardware information in the library file is included in hardware call request;
Response message receiving unit, the hardware for receiving the external equipment passback call response message;
First judging unit for calling response message according to the hardware, judges that the hardware call request is asked
Whether the hardware of calling calls success, obtains the first judging result;
Output data receiving unit, for when first judging result expression is called successfully, receiving the outside and setting
The output data of the hardware that preparation is sent.
Optionally, the call request transmitting element, specifically includes:
Call instruction transmission sub-unit is adjusted for being sent by the ccf layer of the electronic equipment to the hardware adaptation layer
With instruction;
Call request transmission sub-unit, for sending the hardware tune to the external equipment by the hardware adaptation layer
With request.
Optionally, it further includes:
Control instruction transmitting element, for before the output data for receiving the hardware that the external equipment is sent,
The control instruction for the hardware is sent to the external equipment, so that the external equipment is adjusted based on the control instruction
The working condition of the hardware;
The output data receiving unit, specifically includes:
Output data receiving subelement, for receiving output of the hardware controlled when control instruction is worked
Data.
Optionally, it further includes:
Application process stop unit, for when first judging result represents malloc failure malloc, stopping based on described hard
The application process that part performs.
A kind of hardware shared system based on virtualization technology, including:
Hardware call request acquiring unit, for obtaining the hardware call request of electronic equipment transmission;The hardware calls
Include hardware information in request;The hardware information is previously written the library file in the hardware adaptation layer of the electronic equipment
In;
Response message transmitting element calls response message for sending hardware to the electronic equipment;
Hardware-initiated unit, for starting the hardware that the hardware call request is called;
Output data acquiring unit, for obtaining the output data that the hardware generates during the work time;
Output data transmitting element, for the output data to be sent to the electronic equipment.
According to specific embodiment provided by the invention, the invention discloses following technique effects:
The calling of the hardware based on virtualization technology, sharing method and system in the embodiment of the present invention, by advance in electricity
The library file of hardware information of the hardware adaptation layer write-in comprising external equipment of sub- equipment;It establishes and connects with the external equipment;
Hardware call request is sent by described connect to the external equipment, comprising in the library file in the hardware call request
The hardware information;The hardware for receiving the external equipment passback calls response message;Response letter is called according to the hardware
Breath, judges whether the hardware of hardware call request institute request call calls success;When calling successfully, the outside is received
The output data for the hardware that equipment is sent.On the one hand can be made with hardware such as the sensors on the external equipments such as calling mobile phone
The hardware such as sensor are used by other electronic equipment, so as to improve the utilization rate of the hardware in the equipment such as mobile phone.The opposing party
Face, by that in the library file of hardware information of the hardware adaptation layer of the electronic equipment write-in comprising external equipment, can cause in advance
The upper layer identification code of hardware adaptation layer it goes without doing change.And for the application program installed on electronic equipment, without doing
Modification.Writing for the calling code of the hardware for external equipment can be simplified.
Description of the drawings
It in order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to institute in embodiment
Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the present invention
Example, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these attached drawings
Obtain other attached drawings.
Fig. 1 is the flow chart of the hardware call method embodiment 1 based on virtualization technology of the present invention;
Fig. 2 is the flow chart of the hardware call method embodiment 2 based on virtualization technology of the present invention;
Fig. 3 is the flow chart of the hardware sharing method embodiment based on virtualization technology of the present invention;
Fig. 4 is the structure chart of the hardware calling system embodiment based on virtualization technology of the present invention;
Fig. 5 is the structure chart of the hardware shared system embodiment based on virtualization technology of the present invention.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other without making creative work
Embodiment shall fall within the protection scope of the present invention.
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, it is below in conjunction with the accompanying drawings and specific real
Applying mode, the present invention is described in further detail.
Fig. 1 is the flow chart of the hardware call method embodiment 1 based on virtualization technology of the present invention.It as shown in Figure 1, should
Method can include:
Step 101:In advance in the library file of hardware information of the hardware adaptation layer of the electronic equipment write-in comprising external equipment;
The intelligent operating system of mainstream at present, such as the modern operating systems such as Android/Window/IOS/Firefox,
There are hardware adaptation layer (Hardware Adapter Layer, HAL) and ccf layer (Framework Layer).HAL can be sealed
The operation for hardware is filled, unified application programming interface (Application Programming are provided
Interface, API) give Framework Layer.
In the embodiment of the present invention, in advance in hardware information of the hardware adaptation layer of the electronic equipment write-in comprising external equipment
Library file (lib).This can enable hardware adaptation layer upper layer identification code it goes without doing change.And for what is installed on electronic equipment
For application program, without making an amendment.It can cause, application program thinks that the electronic equipment is that have the library text in itself
Hardware described in part.
In the embodiment of the present invention, the electronic equipment can be TV.The external equipment can be mobile phone.
Step 102:The electronic equipment is established with the external equipment and is connected;
The connection can be that wired connection can also be wireless connection.Wired connection can be the connection of USB modes.Nothing
Line connection can be the connection of WIFI modes.
Step 103:The electronic equipment sends hardware call request by described connect to the external equipment, described hard
The hardware information in the library file is included in part call request;
The hardware of hardware call request institute request call, can be various types of hardware.For example, GPS module, takes the photograph
As head, geomagnetic sensor, gyroscope, acceleration sensor, light sensor, low coverage sensor, gravity sensor etc..
Step 104:The hardware for receiving the external equipment passback calls response message;
When the external equipment receives the hardware call request, it can return hardware to the electronic equipment and call and ring
Answer information.The hardware calls response message that can represent that the hardware can be used, alternatively, can represent that the hardware is unavailable.
Step 105:Response message is called according to the hardware, judges the hardware of hardware call request institute request call
Whether calling is successful, obtains the first judging result;
When the hardware calls response message to represent that the hardware is available, it is possible to determine that the hardware call request is asked
The hardware of calling is asked to call successfully.
Step 106:When first judging result expression is called successfully, the described hard of the external equipment transmission is received
The output data of part.
When the hardware is invoked successfully, the hardware can be activated.What the hardware generated during the work time
Output data, it is possible to which the electronic equipment is sent to by the external equipment.The electronic equipment receives the output number
According to, can utilize the output data, run the application on the electronic equipment.
In conclusion in the present embodiment, by including external equipment in the write-in of the hardware adaptation layer of electronic equipment in advance
The library file of hardware information;It establishes and connects with the external equipment;Hardware tune is sent by described connect to the external equipment
With request, the hardware information in the library file is included in the hardware call request;Receive the external equipment passback
Hardware call response message;Response message is called according to the hardware, judges hardware call request institute request call
Whether hardware calls success;When calling successfully, the output data for the hardware that the external equipment is sent is received.On the one hand
The hardware such as sensor can be made to be used by other electronic equipment with hardware such as the sensors on the external equipments such as calling mobile phone,
So as to improve the utilization rate of the hardware in the equipment such as mobile phone.On the other hand, it is write by the hardware adaptation layer in advance in electronic equipment
Enter comprising external equipment hardware information library file, can cause hardware adaptation layer upper layer identification code it goes without doing change.And
For the application program installed on electronic equipment, without making an amendment.The tune of the hardware for external equipment can be simplified
With writing for code.
In practical application, the electronic equipment sends hardware call request, tool by described connect to the external equipment
Body can include:
Call instruction is initiated to the hardware adaptation layer by the ccf layer of the electronic equipment;
The hardware call request is sent to the external equipment by the hardware adaptation layer.
In practical application, before the output data for receiving the hardware that the external equipment is sent, it can also wrap
Include following steps:
The control instruction for the hardware is sent to the external equipment, so that the external equipment is based on the control
Instruction adjusts the working condition of the hardware;
The output data for receiving the hardware that the external equipment is sent, specifically includes:
Receive output data of the hardware controlled when control instruction is worked.
Above-mentioned steps can cause the electronic equipment during the hardware is called, can also be sent out to the hardware
Control instruction is sent, so as to control the course of work of the hardware, further improves the calling process of hardware.
It should also be noted that, in the embodiment of the present invention, when first judging result represents malloc failure malloc, Ke Yiting
The application process only performed based on the hardware.
Specifically, the hardware that the electronic equipment calls, may be used or be broken down by external electronic device
It damages.At this point, first judging result will represent malloc failure malloc, since the hardware can not be called, so, at this time
It can stop the application process being performed based on the hardware.This can be to avoid program without response or electronic device system
It crashes.
Fig. 2 is the flow chart of the hardware call method embodiment 2 based on virtualization technology of the present invention.It as shown in Fig. 2, should
Method can include:
Step 201:In advance in the library file of hardware information of the hardware adaptation layer of the smart television write-in comprising smart mobile phone;
Step 202:The smart television is established with the smart mobile phone and is connected;
Step 203:The smart television sends gyroscope call request by described connect to the smart mobile phone, described
The hardware information of the gyroscope in the library file is included in gyroscope call request;
Step 204:The gyroscope for receiving the smart mobile phone passback calls response message;
Step 205:Response message is called according to the gyroscope, judges whether the gyroscope calls success, obtains the
One judging result;
Step 206:When first judging result expression is called successfully, the top that the smart mobile phone is sent is received
The output data of spiral shell instrument.
In the present embodiment, the output data of the gyroscope on smart television calling smart mobile phone can be made.And then user can
Using the operation equipment by smart mobile phone as somatic sensation television game, somatic sensation television game is played on smart television.
The invention also discloses a kind of hardware sharing methods based on virtualization technology.The method is applied to said external
Equipment.
Fig. 3 is the flow chart of the hardware sharing method embodiment based on virtualization technology of the present invention.It as shown in figure 3, should
Method can include:
Step 301:External equipment obtains the hardware call request that electronic equipment is sent;It is included in the hardware call request
There is hardware information;The hardware information is previously written in the library file of the hardware adaptation layer of the electronic equipment;
Step 302:Hardware, which is sent, to the electronic equipment calls response message;
Step 303:Start the hardware that the hardware call request is called;
Step 304:Obtain the output data that the hardware generates during the work time;
Step 305:The output data is sent to the electronic equipment.
In the present embodiment, by the hardware call request for obtaining electronic equipment transmission;It is included in the hardware call request
There is hardware information;The hardware information is previously written in the library file of the hardware adaptation layer of the electronic equipment;To the electricity
Sub- equipment sends hardware and calls response message;Start the hardware that the hardware call request is called;The hardware is obtained to work
The output data generated in the process;The output data is sent to the electronic equipment.The external equipments such as mobile phone can be shared
On the hardware such as sensor, the hardware such as sensor is made to be used by other electronic equipment, so as to improve in the equipment such as mobile phone
The utilization rate of hardware.
It should be noted that it is described to the electronic equipment send hardware call response message before, can also include with
Lower step:
Determine the hardware that the hardware call request is called;
Inquire the working condition of the hardware;
Judge that the working condition indicates whether that the hardware is in idle condition;
If the hardware is in idle condition, sends the first hardware to the electronic equipment and call response message;Institute
Stating the first hardware calls response message to represent that the hardware can be used;
If the hardware is in busy state, sends the second hardware to the electronic equipment and call response message;
Second hardware calls response message to represent that the hardware is unavailable.
Above-mentioned steps can make the working condition of hardware that the external equipment calls the hardware call request
It is analyzed, when the hardware is occupied by other programs, refuses the call request;When the hardware is in idle shape
During state, the call request is just responded.Conflict is generated when this can be called the hardware to avoid multiple programs.
Furthermore it is also possible to set the priority of the calling for the hardware, the outside where the hardware can be set
Standby program is set as the first priority for the priority of the calling of the hardware, by the program of external equipment for described hard
The priority of the calling of part is set as the second priority.First priority is higher than second priority.It can protect in this way
It demonstrate,proves the external equipment and itself enjoys preferential right for the hardware.
The invention also discloses a kind of hardware calling systems based on virtualization technology.The system can be applied to above-mentioned
The electronic equipments such as smart television.
Fig. 4 is the structure chart of the hardware calling system embodiment based on virtualization technology of the present invention.It as shown in figure 4, should
System can include:
Library file writing unit 401, for hard comprising external equipment in the write-in of the hardware adaptation layer of electronic equipment in advance
The library file of part information;
Connection establishment unit 402 connects for being established with the external equipment;
Call request transmitting element 403, for sending hardware call request, institute by described connect to the external equipment
It states in hardware call request comprising the hardware information in the library file;
Response message receiving unit 404, the hardware for receiving the external equipment passback call response message;
First judging unit 405 for calling response message according to the hardware, judges that the hardware call request is asked
It asks whether the hardware of calling calls success, obtains the first judging result;
Output data receiving unit 406, for when first judging result expression is called successfully, receiving the outside
The output data for the hardware that equipment is sent.
In the present embodiment, by advance in hardware information of the hardware adaptation layer of the electronic equipment write-in comprising external equipment
Library file;It establishes and connects with the external equipment;Hardware call request is sent by described connect to the external equipment, it is described
The hardware information in the library file is included in hardware call request;The hardware for receiving the external equipment passback calls sound
Answer information;Response message is called according to the hardware, judges whether the hardware of hardware call request institute request call calls
Success;When calling successfully, the output data for the hardware that the external equipment is sent is received.It on the one hand can be with calling mobile phone
The hardware such as the sensor on external equipments are waited, the hardware such as sensor are made to be used by other electronic equipment, so as to improve mobile phone
Etc. hardware in equipment utilization rate.On the other hand, it is set by being written in advance in the hardware adaptation layer of electronic equipment comprising outside
The library file of standby hardware information, can cause hardware adaptation layer upper layer identification code it goes without doing change.And for electronic equipment
For the application program of upper installation, without making an amendment.Writing for the calling code of the hardware for external equipment can be simplified.
In practical application, the call request transmitting element specifically includes:
Call instruction transmission sub-unit is adjusted for being sent by the ccf layer of the electronic equipment to the hardware adaptation layer
With instruction;
Call request transmission sub-unit, for sending the hardware tune to the external equipment by the hardware adaptation layer
With request.
In practical application, further include:
Control instruction transmitting element, for before the output data for receiving the hardware that the external equipment is sent,
The control instruction for the hardware is sent to the external equipment, so that the external equipment is adjusted based on the control instruction
The working condition of the hardware;
The output data receiving unit, specifically includes:
Output data receiving subelement, for receiving output of the hardware controlled when control instruction is worked
Data.
In practical application, further include:
Application process stop unit, for when first judging result represents malloc failure malloc, stopping based on described hard
The application process that part performs.
The invention also discloses a kind of hardware shared systems based on virtualization technology.The shared system can be applied to
The external equipments such as above-mentioned smart mobile phone.
Fig. 5 is the structure chart of the hardware shared system embodiment based on virtualization technology of the present invention.It as shown in figure 5, should
System can include:
Hardware call request acquiring unit 501, for obtaining the hardware call request of electronic equipment transmission;The hardware tune
With including hardware information in request;The hardware information is previously written the library file in the hardware adaptation layer of the electronic equipment
In;
Response message transmitting element 502 calls response message for sending hardware to the electronic equipment;
Hardware-initiated unit 503, for starting the hardware that the hardware call request is called;
Output data acquiring unit 504, for obtaining the output data that the hardware generates during the work time;
Output data transmitting element 505, for the output data to be sent to the electronic equipment.
In the present embodiment, by the hardware call request for obtaining electronic equipment transmission;It is included in the hardware call request
There is hardware information;The hardware information is previously written in the library file of the hardware adaptation layer of the electronic equipment;To the electricity
Sub- equipment sends hardware and calls response message;Start the hardware that the hardware call request is called;The hardware is obtained to work
The output data generated in the process;The output data is sent to the electronic equipment.The external equipments such as mobile phone can be shared
On the hardware such as sensor, the hardware such as sensor is made to be used by other electronic equipment, so as to improve in the equipment such as mobile phone
The utilization rate of hardware.
It should be noted that it may further include the following units:
Hardware determination unit, for before hardware calling response message is sent to the electronic equipment, determining described hard
The hardware that part call request is called;
Working condition unit, for inquiring the working condition of the hardware;
Condition adjudgement unit, for judging that the working condition indicates whether that the hardware is in idle condition;
First hardware calls response message unit, if be in idle condition for the hardware, is set to the electronics
Preparation send the first hardware to call response message;First hardware calls response message to represent that the hardware can be used;
Second hardware calls response message unit, if busy state is in for the hardware, to the electronics
Equipment sends the second hardware and calls response message;Second hardware calls response message to represent that the hardware is unavailable.
Said units can make the working condition of hardware that the external equipment calls the hardware call request
It is analyzed, when the hardware is occupied by other programs, refuses the call request;When the hardware is in idle shape
During state, the call request is just responded.Conflict is generated when this can be called the hardware to avoid multiple programs.
It, can be with for setting the priority of the calling for the hardware furthermore it is also possible to including priority setting unit
The program of external equipment where the hardware is set as the first priority for the priority of the calling of the hardware, it will be outer
The program of portion's equipment is set as the second priority for the priority of the calling of the hardware.First priority is higher than described
Second priority.It can ensure that the external equipment itself enjoys the preferential right for the hardware in this way.
It should also be noted that, " external equipment is included in the write-in of the hardware adaptation layer of electronic equipment in advance in the present invention
Hardware information library file " hardware information in this description effect, be not have on the virtual electronic equipment
Some hardware can specifically include calling the api function of the hardware realization function.Hardware can not included in the hardware information
The parameters such as concrete model.In practical applications, the electronic equipment and the external equipment, can pass through the electronic equipment
The connection established between the external equipment, transmission are actually subjected to the information such as the concrete model of hardware called.Therefore, it is of the invention
In call method, the electronic equipment using this method can be allowd to carry out the hardware of the external equipment of most of type
It calls.For example, it is assumed that user needs the camera using television set calling mobile phone, then the television set both can be with calling mobile phone A's
Camera, can also calling mobile phone B camera, without being confined to some specific mobile phone.
Each embodiment is described by the way of progressive in this specification, the highlights of each of the examples are with other
The difference of embodiment, just to refer each other for identical similar portion between each embodiment.For system disclosed in embodiment
For, since it is corresponded to the methods disclosed in the examples, so description is fairly simple, related part is said referring to method part
It is bright.
Specific case used herein is expounded the principle of the present invention and embodiment, and above example is said
The bright method and its core concept for being merely used to help understand the present invention;Meanwhile for those of ordinary skill in the art, foundation
The thought of the present invention, in specific embodiments and applications there will be changes.In conclusion the content of the present specification is not
It is interpreted as limitation of the present invention.
Claims (10)
1. a kind of hardware call method based on virtualization technology, which is characterized in that including:
In advance in the library file of hardware information of the hardware adaptation layer of the electronic equipment write-in comprising intelligent terminal;
The electronic equipment is established with the intelligent terminal and is connected;
The electronic equipment sends hardware call request by described connect to the intelligent terminal, in the hardware call request
Include the hardware information in the library file;
The hardware for receiving the intelligent terminal passback calls response message;
Response message is called according to the hardware, judges whether the hardware of hardware call request institute request call calls into
Work(obtains the first judging result;
When first judging result expression is called successfully, the output number for the hardware that the intelligent terminal is sent is received
According to.
2. according to the method described in claim 1, it is characterized in that, the electronic equipment is connected to the intelligence eventually by described
End sends hardware call request, specifically includes:
Call instruction is initiated to the hardware adaptation layer by the ccf layer of the electronic equipment;
The hardware call request is sent to the intelligent terminal by the hardware adaptation layer.
3. the according to the method described in claim 1, it is characterized in that, hardware for receiving the intelligent terminal and sending
Before output data, further include:
The control instruction for the hardware is sent to the intelligent terminal, so that the intelligent terminal is based on the control instruction
Adjust the working condition of the hardware;
The output data for receiving the hardware that the intelligent terminal is sent, specifically includes:
Receive output data of the hardware controlled when control instruction is worked.
4. it according to the method described in claim 1, it is characterized in that, further includes:
When first judging result represents malloc failure malloc, stop the application process being performed based on the hardware.
5. a kind of hardware sharing method based on virtualization technology, which is characterized in that including:
Intelligent terminal obtains the hardware call request that electronic equipment is sent;Include hardware information in the hardware call request;
The hardware information is previously written in the library file of the hardware adaptation layer of the electronic equipment;
Hardware, which is sent, to the electronic equipment calls response message;
Start the hardware that the hardware call request is called;
Obtain the output data that the hardware generates during the work time;
The output data is sent to the electronic equipment.
6. a kind of hardware calling system based on virtualization technology, which is characterized in that including:
Library file writing unit, in advance in hardware information of the hardware adaptation layer of the electronic equipment write-in comprising intelligent terminal
Library file;
Connection establishment unit connects for being established with the intelligent terminal;
Call request transmitting element, for sending hardware call request, the hardware by described connect to the intelligent terminal
The hardware information in the library file is included in call request;
Response message receiving unit, the hardware for receiving the intelligent terminal passback call response message;
First judging unit for calling response message according to the hardware, judges hardware call request institute request call
Hardware whether call success, obtain the first judging result;
Output data receiving unit, for when first judging result expression is called successfully, receiving the intelligent terminal hair
The output data of the hardware sent.
7. system according to claim 6, which is characterized in that the call request transmitting element specifically includes:
Call instruction transmission sub-unit refers to for sending to call to the hardware adaptation layer by the ccf layer of the electronic equipment
It enables;
Call request transmission sub-unit, please for sending the hardware calling to the intelligent terminal by the hardware adaptation layer
It asks.
8. system according to claim 6, which is characterized in that further include:
Control instruction transmitting element, for before the output data for receiving the hardware that the intelligent terminal is sent, to institute
Control instruction of the intelligent terminal transmission for the hardware is stated, so that the intelligent terminal is based on described in control instruction adjustment
The working condition of hardware;
The output data receiving unit, specifically includes:
Output data receiving subelement, for receiving output number of the hardware controlled when control instruction is worked
According to.
9. system according to claim 6, which is characterized in that further include:
Application process stop unit, for when first judging result represents malloc failure malloc, stopping to be held based on the hardware
Capable application process.
10. a kind of hardware shared system based on virtualization technology, which is characterized in that including:
Hardware call request acquiring unit, for obtaining the hardware call request of electronic equipment transmission;The hardware call request
In include hardware information;The hardware information is previously written in the library file of the hardware adaptation layer of the electronic equipment;
Response message transmitting element calls response message for sending hardware to the electronic equipment;
Hardware-initiated unit, for starting the hardware that the hardware call request is called;
Output data acquiring unit, for obtaining the output data that the hardware generates during the work time;
Output data transmitting element, for the output data to be sent to the electronic equipment.
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 CN104461581A (en) | 2015-03-25 |
CN104461581B true 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) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105933373A (en) * | 2015-02-28 | 2016-09-07 | 联发科技(新加坡)私人有限公司 | Hardware or software service request processing method |
CN107291741B (en) * | 2016-03-31 | 2021-05-11 | 创新先进技术有限公司 | Communication method and device |
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 |
Citations (3)
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 |
-
2014
- 2014-12-30 CN CN201410844114.4A patent/CN104461581B/en active Active
Patent Citations (3)
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 |
Also Published As
Publication number | Publication date |
---|---|
CN104461581A (en) | 2015-03-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104461581B (en) | A kind of hardware calling, sharing method and system based on virtualization technology | |
CN109408223B (en) | Resource allocation method, device, terminal and storage medium | |
US9386264B2 (en) | Augmenting capabilities of a host device | |
KR102122476B1 (en) | Apparatas and method for controlling a rotation of screen in an electronic device | |
KR102277460B1 (en) | Method for sharing a display and electronic device thereof | |
EP4084486A1 (en) | Cross-device content projection method, and electronic device | |
CN105204632B (en) | Method for controlling intelligent mobile terminal to enter silent mode and wearable device | |
CN104967758B (en) | A kind of method and user terminal for controlling data transfer | |
CN110687820B (en) | Control method and device of intelligent household equipment, terminal equipment and storage medium | |
WO2021169628A1 (en) | Enhanced video call method and system, and electronic device | |
KR102109883B1 (en) | Content transmission method and apparatus | |
WO2016150191A1 (en) | Data sharing method and device | |
WO2022135269A1 (en) | Method for authorizing by using another device, electronic devices and system | |
KR102133514B1 (en) | Status message service providing method of electronic apparatus and electronic apparatus thereof | |
WO2019047708A1 (en) | Resource configuration method and related product | |
KR102240526B1 (en) | Contents download method of electronic apparatus and electronic appparatus thereof | |
WO2022001279A1 (en) | Cross-device desktop management method, first electronic device, and second electronic device | |
KR20230005325A (en) | Method for triggering downlink reception, terminal and network-side device | |
CN110446197B (en) | Communication control method, device, equipment and storage medium of intelligent equipment | |
CN105392087B (en) | A kind of speaker management method and user terminal | |
CN104469657B (en) | Audio communication system and equipment based on WINDOWS operating systems | |
CN104391742B (en) | Optimizing application method and apparatus | |
CN108282890B (en) | Resource scheduling processing method, network side equipment and mobile terminal | |
CN110781014B (en) | Recording data multi-process distribution method and system based on Android device | |
EP4272518B1 (en) | Requesting a lighting device to control other lighting devices to render light effects from a light script |
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 |
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. |
|
CP02 | Change in the address of a patent holder |