CN104978173B - Sense digital independent device and its read method - Google Patents
Sense digital independent device and its read method Download PDFInfo
- Publication number
- CN104978173B CN104978173B CN201410136699.4A CN201410136699A CN104978173B CN 104978173 B CN104978173 B CN 104978173B CN 201410136699 A CN201410136699 A CN 201410136699A CN 104978173 B CN104978173 B CN 104978173B
- Authority
- CN
- China
- Prior art keywords
- sensing
- control circuit
- hub
- operating system
- 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.)
- Expired - Fee Related
Links
Landscapes
- Arrangements For Transmission Of Measured Signals (AREA)
Abstract
The present invention is in relation to a kind of sensing digital independent device and its read method, it is applied to an electronic device, it senses digital independent device and supports that one first operating system and one second operating system, sensing digital independent device include that a sensing module generates at least one sensing data;One hub couples sensing module, and to read at least one sensing data;And a control circuit coupling sensing module and hub, when electronic device uses the first operating system, control circuit directly reads at least one sensing data;When electronic device uses the second operating system, one control signal of control circuit output to hub makes hub read at least one sensing data.In this way, the present invention is without the use of a switching circuit, to reach saving circuit area, and then cost is saved.
Description
【Technical field】
The present invention can be applied to different operation in relation to a kind of sensing digital independent device and its read method, espespecially one kind
The sensing digital independent device of system and its read method.
【Background technology】
It presses, in the Working concepts of computer, hardware is the working people of computer, and software refers to operating system
(Operation System Kernel), operating system (Operation System, OS) and application program.Operating system core
The heart controls hardware correctly to work, such as allows CPU can receive instruction, hard disk such as can access at the work.Operating system provides
Program developer development and application program on the operating system kernel for be provided with driver.Application program allows operating system kernel
It is easier to link up between user, such as literal order pattern and graphic model etc..
Furthermore portable electronic devices including miscellaneous notebook computer and intelligent row mobile phone, already at
For articles for use indispensable in modern life.Traditionally, portable electronic devices use the window operation of Microsoft mostly
System (Windows), however, the Android based on Linux (Android) operating system is also gradually popularized now.Due to preceding
State the two operating system has different efficiency on handling different work, in order to have both the length of the two, can operate two kinds
System combination is among single electronic device.
Such as Taiwan number of patent application the 101134871st, dual operating systems share the method for peripheral device with
And the electronic device using this method.Its schema Fig. 1 illustrates electronic device 100 with specification the 15th row to the 21st row of page 4
Including one first operating system 110, one second operating system 120, a controller 130 and a peripheral device 140.Controller 130
It can be the embedded controller (Embedded Controller, EC) of an independent work, be connected to above-mentioned two operating system
110,120 and peripheral device 140, the order that can be used to be assigned according to two operating systems 110 and 120 is to each peripheral device
140 are manipulated.
In a desirable embodiment, one first has been operated respectively under the first operating system 110 and the second operating system 120
Sync Manager 112 and one second Sync Manager 122.This two Sync Manager 112 and 122 can be specifically used to coordinate two behaviour
The switching for making system 110 and 120, with sharp synchronizing information between the two.Two Sync Managers 112 and 122 are not only respectively connected to control
Device 130 processed is more interconnected with a coffret 150.
It can be seen from the above, the first Sync Manager 112 and the second Sync Manager 122 are for coordinating the first operating system
110 and the second switching between operating system 120, so, when electronic device 100 is using the first operating system, first synchronizes
Manager 112 can then be switched to the first operating system 110 with the second Sync Manager 122 and issue an order to controller 130, and drive
Controller 130 is set to manipulate peripheral device 140.
Above-mentioned preceding case must be transmitted through the switching of the first Sync Manager 112 and the second Sync Manager 122, could be by controlling
Device 130 manipulates peripheral device 140.In this way, preceding case must have the first Sync Manager 112 and second with not manager
122 switching circuit, and increase the complexity of circuit, and then increase cost.
Therefore, how a kind of novelty measured data reading device and its read method to be proposed regarding to the issue above, it can
Without the use of switching circuit, to reach simplified circuit, and then circuit area is saved, make to solve the problem above-mentioned.
【Invention content】
An object of the present invention is to provide a kind of sensing digital independent device and its read method, by a control
Circuit processed uses different operating system according to an electronic device, and directly reads sensing data, or one hub of control reads sense
Measured data to reach saving circuit area, and then saves cost without using a switching circuit.
The sensing digital independent device of the present invention is applied to according to an electronic device, and sensing digital independent device supports one first
Operating system and one second operating system, sensing digital independent device include a sensing module, a hub and a control circuit.
Sensing module senses data to generate at least one;Hub couples sensing module, and reads at least one sensing data;Control electricity
Road couples sensing module and hub, and when electronic device uses the first operating system, control circuit directly reads at least one sense
Measured data;When electronic device uses the second operating system, one control signal of control circuit output makes hub read to hub
Take at least one sensing data.In this way, the present invention is without the use of a switching circuit, to reach saving circuit area, and then save at
This.
The sensing method for reading data of the present invention is applied to an electronic device, and when electronic device startup, sensing data are read
The step of taking method provides a sensing digital independent device, and sensing digital independent device generates at least comprising a sensing module
One sensing data;One hub couples sensing module, and to read at least one sensing data;And one control circuit coupling sense
Survey module and hub;Later, one basic input output system of inquiry (BIOS), wherein basic input output system can support the
One operating system and the second operating system;And the operating system supported at present according to basic input output system, return control
Circuit processed is to determine that electronic device will enter one of the first operating system and the second operating system;Wherein, if electronics fills
When setting using the first operating system, at least one sensing data are directly read;And if electronic device use the second operating system when,
One control signal of output makes hub read at least one sensing data to hub.In this way, the present invention is without the use of a switching electricity
Cost to reach saving circuit area, and then is saved in road.
【Description of the drawings】
Fig. 1 is the block diagram of the sensing digital independent device of one embodiment of the invention.
Fig. 2 is the flow chart of the sensing method for reading data of one embodiment of the invention.
【Specific implementation mode】
Some vocabulary has been used in specification and subsequent claim to censure specific component.Affiliated neck
Has usually intellectual in domain, it is to be appreciated that hardware manufacturer may call the same component with different nouns.This theory
Bright book and subsequent claim be not in such a way that the difference of title is used as and distinguishes component, but with component in function
On difference be used as the criterion of differentiation.In addition, " coupling " word includes any direct and indirect electrical connection herein.
Therefore, if it is described herein that a first device is coupled to a second device, then this can be directly electrically connected in by representing the first device
Second device, or be electrically connected indirectly to the second device through other devices or connection means.
Referring to Fig. 1, the block diagram of the sensing digital independent device for one embodiment of the invention.As shown, this hair
Bright sensing digital independent device is applied to an electronic device 1, and sensing digital independent device supports one first operating system and one
Second operating system, sensing digital independent device include a sensing module 10, a hub 20 and a control circuit 30.Sense mould
Block 10 senses data to generate at least one.In this present embodiment, sensing module 10 includes plural sensing unit, those sensings are single
Member generates a sensing data respectively, those sensing units include 100, one electronic compass (E- of a gravity sensor (G-Sensor)
Compass) 102, one gyroscope (Gyro-Sensor), 104, one optical sensor (Light Sensor) 106 and an accelerometer
(Accelerometer)108.Gravity sensor 100, electronic compass 102, gyroscope 104, optical detector 106 and accelerometer
108 are applied to electronic device 1, and sense the operating state of electronic device 1, to generate sensing data.
Hub 20 couples sensing module 10, and to read at least one sensing data in self-inductance measurement module 10.Yu Benshi
It applies in example, sensing module 10 includes gravity sensor 100, electronic compass 102, gyroscope 104, optical sensor 106 and acceleration
Device 108, but the data that sensing module 10 is included not are used for limiting the present invention.
Control circuit 30 couples sensing module 10 and hub 20, when electronic device 1 using the first operating system (such as:
Windows 7) when, control circuit 30 directly reads at least one sensing data of the output of sensing module 10.When electronic device 1 uses
Second operating system (such as:Windows 8) when, one control signal of the output of control circuit 30 makes hub 20 to hub 20
Read at least one sensing data that sensing module 10 exports.In this way, the present invention is without the use of a switching circuit, electricity is saved to reach
Road surface is accumulated, and then saves cost.
Furthermore, when booting, control circuit 30 can first inquire a basic input output system of electronic device 1
Then (Bias Input Output System, BIOS) 40 determines that electronic device 1 will enter the first operating system and the second behaviour
Make one of system.That is, when electronic device 1 is switched on, basic input output system 40 learns that user sets
Electronic device 1 is intended to enter the first operating system or the second operating system, so control circuit 30 inquires basic input output system
After 40, basic input output system 40 returns control circuit 30 to learn that current electronic device 1 is to use the first operating system
Or second operating system, to determine that electronic device will enter the first operating system or the second operating system.
From the above, when electronic device 1 is using the first operating system, 30 forbidden energy of control circuit (disable) hub
20, and control circuit 30 directly reads at least one sensing data via a bus.In this present embodiment, control circuit 30 penetrates one
Universal input and output (General-Purpose Input/Output, GPIO) forbidden energy hub 20, and make control circuit
30 via inter-integrated circuit (Inter-Integrated Circuit, I2C bus) directly reads the sense of sensing module 10
Measured data.
Conversely, when electronic device 1 is using the second operating system, 30 enable of control circuit (enable) hub 20, and
Data transmission of self forbidden energy from a bus so that hub 20 reads the sensing data of sensing module 10 through thus bus.
In this present embodiment, control circuit 30 penetrates universal input and output enable (enable) hub 20 so that hub 20
Via inter-integrated circuit (I2C bus) reads the sensing data of sensing module 10.
It can be seen from the above, the present invention uses different operating system by control circuit 30 according to an electronic device 1, and it is straight
It connects reading sensing data or control hub 20 reads sensing data, without using a switching circuit to reach saving circuit face
Product, and then save cost.
It is the flow chart of the sensing method for reading data of one embodiment of the invention also referring to Fig. 2.As shown,
The sensing method for reading data of the present invention is applied to the sensing digital independent device in electronic device 1, wherein the sensing data
Reading device includes a sensing module, a hub and a control circuit.The sensing method for reading data of the present invention illustrates
It is as follows.
When electronic device 1 is switched on, the step of sensing method for reading data of the invention, first carries out step S10, provides sense
Measured data reading device simultaneously senses data to read at least one, wherein sensing digital independent device includes sensing module 10, collection
Line device 20 and control circuit 30.Sensing module 10 senses data to generate at least one;Hub 20 is reading sensing module
10 at least one sensing data;Control circuit 30 couples sensing module 10 and hub 20.Then, it executes step S11 and inquires base
This input-output system 40, wherein since basic input output system 40 can support the first operating system and the second operating system,
So basic input output system 40 must first judge electronic device 1 be intended to using the first operating system (such as:Windows 7) or
Second operating system (such as windows 8).In this way, the read method of sensing digital independent device is inquired through control circuit 30
Basic input output system 40, and the first operating system or the second operating system will be entered by determining electronic device 1.
Next, executing step S12, basic input output system 40 returns control circuit 30, to determine that electronic device 1 is
It is no to enter the first operating system.That is, basic input output system 40 can return control after the inquiry of control circuit 30
30 current electronic device of circuit processed is intended to enter the first operating system or the second operating system.If return control circuit 30 is "Yes",
Then enter step the first operating system of S14;If return control circuit 30 is "No", the second operation system of S20 is entered step
System.
When executing step S14, electronic device 1 just enters the first operating system.Then, step S16, control circuit 30 are executed
At least one sensing data of sensing module 10 are directly read via bus.Wherein, since electronic device has been enter into the first operation system
System, so 30 forbidden energy hub 20 of control circuit, the sensing data of sensing module 10 are read to avoid hub 20.
When executing step S20, electronic device 1 just enters the second operating system.Then, step S22 is executed, since electronics fills
It sets 1 and has been enter into the second operating system, so the first enable hub 20 of the meeting of control circuit 30, and data of self forbidden energy from bus
The sensing data for reading sensing module 10 are directly gone in transmission to avoid control circuit 30.Later, step S24, control circuit are executed
30 output, one control signal makes hub 20 read at least one sensing data of sensing module 10 to hub 20.In this way, this hair
Bright sensing method for reading data uses different operating system by control circuit 30 according to electronic device, and directly reads sensing
Data or control hub 20 read sensing data, without using a switching circuit to reach saving circuit area, Jin Erjie
Cost-saving.
In conclusion the sensing digital independent device of the present invention includes a sensing module, a hub and a control circuit.
The sensing method for reading data of the present invention generates at least one sensing data by a sensing module;One hub couples sensing module,
And to read at least one sensing data;And a control circuit coupling sensing module and hub, electronic device use first
When operating system, control circuit directly reads at least one sensing data;When electronic device uses the second operating system, control circuit
One control signal of output makes hub read at least one sensing data to hub.In this way, the present invention is without the use of a switching electricity
Cost to reach saving circuit area, and then is saved in road.
Only as described above, a preferred embodiment only of the invention is not used for limiting the model that the present invention is implemented
Enclose, such as according to shape, construction, feature and the spirit described in scope of the present invention patent carried out by equivalent changes and modifications,
It should be included in the claim of the present invention.
Claims (16)
1. a kind of sensing digital independent device, is applied to an electronic device, which supports one first behaviour
Make system and one second operating system, which is characterized in that the sensing digital independent device includes:
One sensing module, to generate at least one sensing data;
One hub couples the sensing module, and to read at least one sensing data;
One control circuit couples the sensing module and couples the hub, should when which uses first operating system
Control circuit directly reads at least one sensing data;When the electronic device uses second operating system, the control circuit is defeated
Go out a control signal to the hub, the hub is made to read at least one sensing data.
2. sensing digital independent device according to claim 1, which is characterized in that the control circuit, which is first inquired, can support this
After a basic input output system (BIOS) for first operating system and second operating system, and determine that the electronic device will be into
Enter one of first operating system and second operating system.
3. sensing digital independent device according to claim 2, which is characterized in that the basic input output system (BIOS)
The control circuit is returned to determine that the electronic device uses one of first operating system and second operating system.
4. sensing digital independent device according to claim 3, which is characterized in that when the electronic device first is grasped using this
When making system, control circuit forbidden energy (disable) hub, and the control circuit directly reads this at least via a bus
One sensing data.
5. sensing digital independent device according to claim 4, which is characterized in that the control circuit is universal through one
Input and output (General-Purpose Input/Output, GPIO) forbidden energy (disable) hub, and keep the control electric
Road directly reads at least one sensing data via the bus.
6. sensing digital independent device according to claim 3, which is characterized in that the control circuit and the hub pass through
At least one sensing data, when the electronic device uses second operating system, the control circuit enable are read by a bus
(enable) hub, and data transmission of self forbidden energy of the control circuit from the bus so that the hub is via this
Bus reads at least one sensing data.
7. sensing digital independent device according to claim 6, which is characterized in that the control circuit is universal through one
Input and output (General-Purpose Input/Output, GPIO) enable (enable) hub so that the hub
At least one sensing data are read via the bus.
8. sensing digital independent device according to claim 1, which is characterized in that the sensing module includes that plural number sensing is single
Member, those plural sensing units generate at least one sensing data respectively.
9. sensing digital independent device according to claim 8, which is characterized in that those plural sensing units are a gravity
Sensor (G-Sensor), an electronic compass (E-Compass), a gyroscope (Gyro-Sensor), an optical sensor (Light
) or an accelerometer (Accelerometer) Sensor.
10. a kind of sensing method for reading data is applied to an electronic device, which is characterized in that when the electronic device startup,
The step of sensing method for reading data includes:
One sensing digital independent device is provided, it includes:
One sensing module, to generate at least one sensing data;
One hub couples the sensing module, and to read at least one sensing data;
One control circuit couples the sensing module and couples the hub;
Inquire a basic input output system (BIOS), wherein the basic input output system can support one first operating system and
One second operating system;
According to the operating system that the basic input output system is supported at present, the control circuit is returned to determine the electronic device
One of first operating system and second operating system will be entered;
Wherein, if the electronic device uses first operating system, at least one sensing data are directly read;And if the electricity
When sub-device uses second operating system, one control signal of output makes the hub read at least one sense to the hub
Measured data.
11. sensing method for reading data according to claim 10, which is characterized in that described " inquiry one inputs defeated substantially
Go out system (BIOS) " the step of in, be that the basic input output system (BIOS) is inquired by the control circuit.
12. sensing method for reading data according to claim 11, which is characterized in that when use first operating system
When, control circuit forbidden energy (disable) hub, and the control circuit reads at least one sensing number via a bus
According to.
13. sensing method for reading data according to claim 12, which is characterized in that the control circuit is universal through one
Input and output (General-Purpose Input/Output, GPIO) forbidden energy (disable) hub, and make the control
Circuit directly reads at least one sensing data via the bus.
14. sensing method for reading data according to claim 11, which is characterized in that the control circuit and the hub are equal
At least one sensing data, when using second operating system, the control circuit enable (enable) are read via a bus
The hub, and data transmission of self forbidden energy of the control circuit from the bus so that the hub is read via the bus
At least one sensing data.
15. sensing method for reading data according to claim 14, which is characterized in that the control circuit is universal through one
Input and output (General-Purpose Input/Output, GPIO) enable (enable) hub so that the line concentration
Device reads at least one sensing data via the bus.
16. sensing method for reading data according to claim 10, which is characterized in that the sensing module includes that plural number senses
Unit, those plural sensing units generate at least one sensing data respectively.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410136699.4A CN104978173B (en) | 2014-04-08 | 2014-04-08 | Sense digital independent device and its read method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410136699.4A CN104978173B (en) | 2014-04-08 | 2014-04-08 | Sense digital independent device and its read method |
Publications (3)
Publication Number | Publication Date |
---|---|
CN104978173A CN104978173A (en) | 2015-10-14 |
CN104978173A9 CN104978173A9 (en) | 2018-08-10 |
CN104978173B true CN104978173B (en) | 2018-11-06 |
Family
ID=54274712
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410136699.4A Expired - Fee Related CN104978173B (en) | 2014-04-08 | 2014-04-08 | Sense digital independent device and its read method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104978173B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI724538B (en) * | 2019-09-11 | 2021-04-11 | 亞東技術學院 | System and method for writing computer program based on physical object |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101382922A (en) * | 2007-09-05 | 2009-03-11 | 宏达国际电子股份有限公司 | Mobile device with two operating systems and method for sharing hardware device between two operating systems thereof |
CN103294545A (en) * | 2012-02-23 | 2013-09-11 | 纬创资通股份有限公司 | Method for switching dual operating systems and electronic device |
CN103294562A (en) * | 2012-02-23 | 2013-09-11 | 纬创资通股份有限公司 | Method for sharing peripheral device by dual operating systems and electronic device |
CN103488598A (en) * | 2012-06-11 | 2014-01-01 | 中兴通讯股份有限公司 | Multi-mode terminal and method for realizing USB (universal serial bus) sharing |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7478191B2 (en) * | 2006-04-14 | 2009-01-13 | Standard Microsystems Corporation | Method for automatically switching USB peripherals between USB hosts |
US8312476B2 (en) * | 2007-09-05 | 2012-11-13 | Htc Corporation | Method for synchronizing information of dual operating systems |
TWI463322B (en) * | 2009-08-06 | 2014-12-01 | Asustek Comp Inc | Computer system with dual host |
-
2014
- 2014-04-08 CN CN201410136699.4A patent/CN104978173B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101382922A (en) * | 2007-09-05 | 2009-03-11 | 宏达国际电子股份有限公司 | Mobile device with two operating systems and method for sharing hardware device between two operating systems thereof |
CN103294545A (en) * | 2012-02-23 | 2013-09-11 | 纬创资通股份有限公司 | Method for switching dual operating systems and electronic device |
CN103294562A (en) * | 2012-02-23 | 2013-09-11 | 纬创资通股份有限公司 | Method for sharing peripheral device by dual operating systems and electronic device |
CN103488598A (en) * | 2012-06-11 | 2014-01-01 | 中兴通讯股份有限公司 | Multi-mode terminal and method for realizing USB (universal serial bus) sharing |
Also Published As
Publication number | Publication date |
---|---|
CN104978173A (en) | 2015-10-14 |
CN104978173A9 (en) | 2018-08-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11449119B2 (en) | Method for displaying content in expandable screen area and electronic device supporting the same | |
EP3293607B1 (en) | Electronic device and method of controlling electronic device | |
US9720701B2 (en) | Providing support for device states | |
CN105610471B (en) | Wireless data input and output method and apparatus | |
US20200183704A1 (en) | Method and apparatus for waking up computer from sleep state | |
CN104142728B (en) | Electronic installation | |
US10545662B2 (en) | Method for controlling touch sensing module of electronic device, electronic device, method for operating touch sensing module provided in electronic device, and touch sensing module | |
US20160169956A1 (en) | Electronic device and method of determining abnormality of electronic device connecting unit | |
EP2993572A1 (en) | Method and apparatus for processing touch input | |
US7908417B2 (en) | Motherboard system, storage device for booting up thereof and connector | |
CN111142711A (en) | Firmware configuration method and device, storage medium and mobile terminal | |
US9939874B2 (en) | Selectively disabling sensors and associated functions | |
CN110471870B (en) | Multi-system operation method and device, electronic equipment and storage medium | |
US20170017373A1 (en) | Electronic device and method for controlling the same | |
CN110543259A (en) | Fingerprint unlocking method of display device and display device | |
US20140292776A1 (en) | Electronic apparatus and control method | |
US11842039B2 (en) | Electronic device and method for operating screen capturing by electronic device | |
CN104978173B (en) | Sense digital independent device and its read method | |
US7890678B2 (en) | Portable computer having auxiliary IO apparatus and system setup method thereof | |
KR102261009B1 (en) | Multi core system and method thereof | |
CN113420283A (en) | Starting-up method and device of mobile terminal, storage medium and mobile terminal | |
US10666789B2 (en) | Control method and device for sensors of mobile terminal, storage medium and mobile terminal | |
US9215126B2 (en) | Information processing system running operating systems based on connection state | |
CN112333327B (en) | Equipment detection method, device, storage medium, electronic equipment, external equipment and system | |
CN112202952B (en) | Mobile terminal testing method and device, storage medium and mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CI02 | Correction of invention patent application | ||
CI02 | Correction of invention patent application |
Correction item: Description Correct: Zheng Que False: Cuo Wu Number: 41 Page: Quan Wen Volume: 31 |
|
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20181106 Termination date: 20200408 |