CN112306467A - SDK implementation method and device of wearable device - Google Patents
SDK implementation method and device of wearable device Download PDFInfo
- Publication number
- CN112306467A CN112306467A CN202011248651.4A CN202011248651A CN112306467A CN 112306467 A CN112306467 A CN 112306467A CN 202011248651 A CN202011248651 A CN 202011248651A CN 112306467 A CN112306467 A CN 112306467A
- Authority
- CN
- China
- Prior art keywords
- vos
- electronic device
- processor
- interface
- wearable device
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 48
- 238000005538 encapsulation Methods 0.000 claims abstract description 6
- 230000006870 function Effects 0.000 claims description 49
- 238000004891 communication Methods 0.000 claims description 23
- 239000010410 layer Substances 0.000 claims description 19
- 238000004590 computer program Methods 0.000 claims description 13
- 238000004806 packaging method and process Methods 0.000 claims description 10
- 239000012792 core layer Substances 0.000 claims description 6
- 230000036541 health Effects 0.000 claims description 4
- 238000012545 processing Methods 0.000 description 20
- 238000007726 management method Methods 0.000 description 16
- 238000010295 mobile communication Methods 0.000 description 8
- 230000018109 developmental process Effects 0.000 description 6
- 238000011161 development Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 5
- 230000008569 process Effects 0.000 description 5
- 229920001621 AMOLED Polymers 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 3
- 238000013528 artificial neural network Methods 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000013461 design Methods 0.000 description 3
- 230000033772 system development Effects 0.000 description 3
- 238000004422 calculation algorithm Methods 0.000 description 2
- 238000013500 data storage Methods 0.000 description 2
- 230000033001 locomotion Effects 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000003321 amplification Effects 0.000 description 1
- 238000013529 biological neural network Methods 0.000 description 1
- 210000000988 bone and bone Anatomy 0.000 description 1
- 210000004556 brain Anatomy 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 239000000969 carrier Substances 0.000 description 1
- 210000004027 cell Anatomy 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 239000004020 conductor Substances 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000005562 fading Methods 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 230000001939 inductive effect Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000003032 molecular docking Methods 0.000 description 1
- 210000002569 neuron Anatomy 0.000 description 1
- 238000003199 nucleic acid amplification method Methods 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 239000002096 quantum dot Substances 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000003238 somatosensory effect Effects 0.000 description 1
- 230000003595 spectral effect Effects 0.000 description 1
- 238000001228 spectrum Methods 0.000 description 1
- 239000004575 stone Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/20—Software design
- G06F8/24—Object-oriented
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C21/00—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
- G01C21/10—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration
- G01C21/12—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration executed aboard the object being navigated; Dead reckoning
- G01C21/16—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by using measurements of speed or acceleration executed aboard the object being navigated; Dead reckoning by integrating acceleration or speed, i.e. inertial navigation
- G01C21/18—Stabilised platforms, e.g. by gyroscope
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01J—MEASUREMENT OF INTENSITY, VELOCITY, SPECTRAL CONTENT, POLARISATION, PHASE OR PULSE CHARACTERISTICS OF INFRARED, VISIBLE OR ULTRAVIOLET LIGHT; COLORIMETRY; RADIATION PYROMETRY
- G01J1/00—Photometry, e.g. photographic exposure meter
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01K—MEASURING TEMPERATURE; MEASURING QUANTITY OF HEAT; THERMALLY-SENSITIVE ELEMENTS NOT OTHERWISE PROVIDED FOR
- G01K1/00—Details of thermometers not specially adapted for particular types of thermometer
- G01K1/02—Means for indicating or recording specially adapted for thermometers
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01L—MEASURING FORCE, STRESS, TORQUE, WORK, MECHANICAL POWER, MECHANICAL EFFICIENCY, OR FLUID PRESSURE
- G01L1/00—Measuring force or stress, in general
- G01L1/14—Measuring force or stress, in general by measuring variations in capacitance or inductance of electrical elements, e.g. by measuring variations of frequency of electrical oscillators
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01L—MEASURING FORCE, STRESS, TORQUE, WORK, MECHANICAL POWER, MECHANICAL EFFICIENCY, OR FLUID PRESSURE
- G01L1/00—Measuring force or stress, in general
- G01L1/14—Measuring force or stress, in general by measuring variations in capacitance or inductance of electrical elements, e.g. by measuring variations of frequency of electrical oscillators
- G01L1/142—Measuring force or stress, in general by measuring variations in capacitance or inductance of electrical elements, e.g. by measuring variations of frequency of electrical oscillators using capacitors
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01P—MEASURING LINEAR OR ANGULAR SPEED, ACCELERATION, DECELERATION, OR SHOCK; INDICATING PRESENCE, ABSENCE, OR DIRECTION, OF MOVEMENT
- G01P15/00—Measuring acceleration; Measuring deceleration; Measuring shock, i.e. sudden change of acceleration
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/36—Software reuse
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B1/00—Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
- H04B1/38—Transceivers, i.e. devices in which transmitter and receiver form a structural unit and in which at least one part is used for functions of transmitting and receiving
- H04B1/3827—Portable transceivers
- H04B1/385—Transceivers carried on the body, e.g. in helmets
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Spectroscopy & Molecular Physics (AREA)
- Power Engineering (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Automation & Control Theory (AREA)
- Telephone Function (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The application discloses a method and a device for realizing SDK of wearable equipment, which are applied to the wearable equipment, wherein the wearable equipment comprises a Virtual Operating System (VOS), and the method comprises the following steps: the VOS of the wearable device is compatible with a plurality of embedded operating systems; the VOS of the formula equipment encapsulates a plurality of external function interfaces of the plurality of embedded operating systems, and the encapsulation is used for encapsulating the plurality of external function interfaces into a unified interface function, and the unified interface function is developed and used for the system. The technical scheme provided by the application has the advantage of high user experience.
Description
Technical Field
The application relates to the technical field of electronics, in particular to an SDK implementation method and device of wearable equipment.
Background
The wearable device for the bracelet watch type has the advantages that besides the Android Ware system, a single chip microcomputer type with slightly simple functions is adopted, the wearable device can meet requirements of products by adopting open-source embedded operating systems such as LiteOS and freeRTOS, but the wearable device for the bracelet watch type has the problems that a unified framework and an open-source SDK are not selected, each product needs to be redesigned and redeveloped, each product does not have a unified specification, the compatibility is a big problem, a unified SDK is not available like Android, APP development cannot be compatible everywhere like Android, and the wearable device for the bracelet watch type does not have a unified interface. Therefore, the demand of people for diversification of products cannot be met.
Disclosure of Invention
The embodiment of the application provides an SDK implementation method and device of wearable equipment.
In a first aspect, an embodiment of the present application provides a method for implementing an SDK of a wearable device, where the method is applied to a wearable device, and the wearable device includes a virtual operating system VOS, and the method includes:
the VOS of the wearable device is compatible with a plurality of embedded operating systems;
the VOS of the formula equipment encapsulates a plurality of external function interfaces of the plurality of embedded operating systems, and the encapsulation is used for encapsulating the plurality of external function interfaces into a unified interface function, and the unified interface function is developed and used for the system.
In a second aspect, an embodiment of the present application provides an SDK implementation apparatus for a wearable device, which is applied to the wearable device, where the wearable device includes a VOS, and the VOS is compatible with multiple embedded operating systems; the device comprises:
and the packaging unit is used for packaging a plurality of external function interfaces of the plurality of embedded operating systems, and the packaging unit is used for packaging the plurality of external function interfaces into a unified interface function which is developed and used for the system.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing steps in any method of the first aspect of the embodiment of the present application.
In a fourth aspect, the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program makes a computer perform part or all of the steps described in any one of the methods of the first aspect of the present application.
In a fifth aspect, the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to perform some or all of the steps as described in any one of the methods of the first aspect of the embodiments of the present application. The computer program product may be a software installation package.
It can be seen that, the technical scheme provided by the application can realize packaging a plurality of external function interfaces of a plurality of embedded operations into a unified interface function by providing the VOS on the type equipment, thus facilitating system development and use, and thus, for a system developer, no matter which external function interface of a plurality of embedded operation systems is used, the system developer can uniformly package through the VOS, further realizing the functions of the system developer, and the system developer does not need to adopt different function interfaces for docking aiming at different operation systems, thereby facilitating the developer, meeting the requirements of users on system diversification and improving user experience.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of an SDK of a wearable device based on a VOS system according to an embodiment of the present application;
fig. 3 is a schematic flowchart of an SDK implementation method of a wearable device according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an SDK implementation apparatus of a wearable device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings.
In order to better understand the scheme of the embodiments of the present application, the following first introduces the related terms and concepts that may be involved in the embodiments of the present application.
The electronic device may be a portable electronic device such as a cell phone, a tablet computer, an electronic device with wireless communication capabilities (e.g., a smart watch), etc., that also contains other functionality such as personal digital assistant and/or music player functionality. Exemplary embodiments of the portable electronic device include, but are not limited to, portable electronic devices that carry an IOS system, an Android system, a Microsoft system, or other operating system. The portable electronic device may also be other portable electronic devices such as a Laptop computer (Laptop) or the like. It should also be understood that in other embodiments, the electronic device may not be a portable electronic device, but may be a desktop computer.
A signal transceiving apparatus is an apparatus deployed in an indoor environment or an outdoor environment to transceive signals. For example, the signal Transceiver device may be an evolved Node B (eNB), a Radio Network Controller (RNC), a Node B (NB), a Base Station Controller (BSC), a Base Transceiver Station (BTS), a Home Base Station (e.g., Home evolved Node B or Home Node B, HNB), an Access Controller (AC), a WIFI Access Point (AP), or the like.
Ultra Wideband (UWB) is a wireless carrier communication technology, which does not use sinusoidal carriers, but uses nanosecond-level non-sinusoidal narrow pulses to transmit data, so that the occupied frequency spectrum range is wide. The UWB has the advantages of low system complexity, low power spectral density of transmitted signals, insensitivity to channel fading, low interception capability, high positioning accuracy and the like, and is particularly suitable for high-speed wireless access in dense multipath places such as indoor places and the like.
The software and hardware operating environment of the technical scheme disclosed by the application is introduced as follows.
Fig. 1 shows a schematic structural diagram of an electronic device 100. The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a compass 190, a motor 191, a pointer 192, a camera 193, a display screen 194, a Subscriber Identification Module (SIM) card interface 195, and the like.
It is to be understood that the illustrated structure of the embodiment of the present application does not specifically limit the electronic device 100. In other embodiments of the present application, electronic device 100 may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 110 may include one or more processing units, such as: the processor 110 may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), etc. Wherein the different processing units may be separate components or may be integrated in one or more processors. In some embodiments, the electronic device 100 may also include one or more processors 110. The controller can generate an operation control signal according to the instruction operation code and the time sequence signal to complete the control of instruction fetching and instruction execution. In other embodiments, a memory may also be provided in processor 110 for storing instructions and data. Illustratively, the memory in the processor 110 may be a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. This avoids repeated accesses and reduces the latency of the processor 110, thereby increasing the efficiency with which the electronic device 100 processes data or executes instructions.
In some embodiments, processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit audio (I2S) interface, a Pulse Code Modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a Mobile Industry Processor Interface (MIPI), a general-purpose input/output (GPIO) interface, a SIM card interface, a USB interface, and/or the like. The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge the electronic device 100, and may also be used to transmit data between the electronic device 100 and a peripheral device. The USB interface 130 may also be used to connect to a headset to play audio through the headset.
It should be understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is only an illustration, and does not limit the structure of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection manners or a combination of multiple interface connection manners in the above embodiments.
The charging management module 140 is configured to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive a wireless charging input through a wireless charging coil of the electronic device 100. The charging management module 140 may also supply power to the electronic device through the power management module 141 while charging the battery 142.
The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be used to monitor parameters such as battery capacity, battery cycle count, battery state of health (leakage, impedance), etc. In some other embodiments, the power management module 141 may also be disposed in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be disposed in the same device.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution including 2G/3G/4G/5G wireless communication applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), and the like. The mobile communication module 150 may receive the electromagnetic wave from the antenna 1, filter, amplify, etc. the received electromagnetic wave, and transmit the electromagnetic wave to the modem processor for demodulation. The mobile communication module 150 may also amplify the signal modulated by the modem processor, and convert the signal into electromagnetic wave through the antenna 1 to radiate the electromagnetic wave. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the same device as at least some of the modules of the processor 110.
The wireless communication module 160 may provide a solution for wireless communication applied to the electronic device 100, including Wireless Local Area Networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), bluetooth (bluetooth), Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR), UWB, and the like. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, perform frequency modulation and amplification on the signal, and convert the signal into electromagnetic waves through the antenna 2 to radiate the electromagnetic waves.
The electronic device 100 implements display functions via the GPU, the display screen 194, and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
The display screen 194 is used to display images, videos, and the like. The display screen 194 includes a display panel. The display panel may be a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active matrix organic light-emitting diode (active-matrix organic light-emitting diode, AMOLED), a flexible light-emitting diode (FLED), a mini light-emitting diode (mini-light-emitting diode, mini), a Micro, a quantum dot light-emitting diode (QLED), or the like. In some embodiments, the electronic device 100 may include 1 or more display screens 194.
The electronic device 100 may implement a photographing function through the ISP, the camera 193, the video codec, the GPU, the display screen 194, the application processor, and the like.
The ISP is used to process the data fed back by the camera 193. For example, when a photo is taken, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converting into an image visible to naked eyes. The ISP can also carry out algorithm optimization on the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in camera 193.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image to the photosensitive element. The photosensitive element may be a Charge Coupled Device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The light sensing element converts the optical signal into an electrical signal, which is then passed to the ISP where it is converted into a digital image signal. And the ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into image signal in standard RGB, YUV and other formats. In some embodiments, the electronic device 100 may include 1 or more cameras 193.
The digital signal processor is used for processing digital signals, and can process digital image signals and other digital signals. For example, when the electronic device 100 selects a frequency bin, the digital signal processor is used to perform fourier transform or the like on the frequency bin energy.
Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 may play or record video in a variety of encoding formats, such as: moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, and the like.
The NPU is a neural-network (NN) computing processor that processes input information quickly by using a biological neural network structure, for example, by using a transfer mode between neurons of a human brain, and can also learn by itself continuously. Applications such as intelligent recognition of the electronic device 100 can be realized through the NPU, for example: image recognition, face recognition, speech recognition, text understanding, and the like.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to extend the memory capability of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music, video, etc. are saved in an external memory card.
Internal memory 121 may be used to store one or more computer programs, including instructions. The processor 110 may execute the above-mentioned instructions stored in the internal memory 121, so as to enable the electronic device 100 to execute the method for displaying page elements provided in some embodiments of the present application, and various applications and data processing. The internal memory 121 may include a program storage area and a data storage area. Wherein, the storage program area can store an operating system; the storage program area may also store one or more applications (e.g., gallery, contacts, etc.), and the like. The storage data area may store data (e.g., photos, contacts, etc.) created during use of the electronic device 100, and the like. Further, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic disk storage components, flash memory components, Universal Flash Storage (UFS), and the like. In some embodiments, the processor 110 may cause the electronic device 100 to execute the method for displaying page elements provided in the embodiments of the present application and other applications and data processing by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor 110. The electronic device 100 may implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor, etc. Such as music playing, recording, etc.
The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
The pressure sensor 180A is used for sensing a pressure signal, and converting the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. The pressure sensor 180A can be of a wide variety, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a sensor comprising at least two parallel plates having an electrically conductive material. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the strength of the pressure from the change in capacitance. When a touch operation is applied to the display screen 194, the electronic apparatus 100 detects the intensity of the touch operation according to the pressure sensor 180A. The electronic apparatus 100 may also calculate the touched position from the detection signal of the pressure sensor 180A. In some embodiments, the touch operations that are applied to the same touch position but different touch operation intensities may correspond to different operation instructions. For example: and when the touch operation with the touch operation intensity smaller than the first pressure threshold value acts on the short message application icon, executing an instruction for viewing the short message. And when the touch operation with the touch operation intensity larger than or equal to the first pressure threshold value acts on the short message application icon, executing an instruction of newly building the short message.
The gyro sensor 180B may be used to determine the motion attitude of the electronic device 100. In some embodiments, the angular velocity of electronic device 100 about three axes (i.e., X, Y and the Z axis) may be determined by gyroscope sensor 180B. The gyro sensor 180B may be used for photographing anti-shake. For example, when the shutter is pressed, the gyro sensor 180B detects a shake angle of the electronic device 100, calculates a distance to be compensated for by the lens module according to the shake angle, and allows the lens to counteract the shake of the electronic device 100 through a reverse movement, thereby achieving anti-shake. The gyroscope sensor 180B may also be used for navigation, somatosensory gaming scenes.
The acceleration sensor 180E may detect the magnitude of acceleration of the electronic device 100 in various directions (typically three axes). The magnitude and direction of gravity can be detected when the electronic device 100 is stationary. The method can also be used for recognizing the posture of the electronic equipment, and is applied to horizontal and vertical screen switching, pedometers and other applications.
The ambient light sensor 180L is used to sense the ambient light level. Electronic device 100 may adaptively adjust the brightness of display screen 194 based on the perceived ambient light level. The ambient light sensor 180L may also be used to automatically adjust the white balance when taking a picture. The ambient light sensor 180L may also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touches.
The fingerprint sensor 180H is used to collect a fingerprint. The electronic device 100 can utilize the collected fingerprint characteristics to unlock the fingerprint, access the application lock, photograph the fingerprint, answer an incoming call with the fingerprint, and so on.
The temperature sensor 180J is used to detect temperature. In some embodiments, electronic device 100 implements a temperature processing strategy using the temperature detected by temperature sensor 180J. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 performs a reduction in performance of a processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection. In other embodiments, the electronic device 100 heats the battery 142 when the temperature is below another threshold to avoid the low temperature causing the electronic device 100 to shut down abnormally. In other embodiments, when the temperature is lower than a further threshold, the electronic device 100 performs boosting on the output voltage of the battery 142 to avoid abnormal shutdown due to low temperature.
The touch sensor 180K is also referred to as a "touch panel". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is used to detect a touch operation applied thereto or nearby. The touch sensor can communicate the detected touch operation to the application processor to determine the touch event type. Visual output associated with the touch operation may be provided through the display screen 194. In other embodiments, the touch sensor 180K may be disposed on a surface of the electronic device 100, different from the position of the display screen 194.
Referring to fig. 2, fig. 2 is an SDK of the wearable device based on the VOS system provided in the present application, where the SDK is based on a virtual operating system VOS, and the system adopts a uniform interface for the upper APP except for the bottom operating system, and as long as the requirement specification of the SDK interface is met, multiple APPs can be developed on the SDK. In addition, in the SDK, a generic function interface and a system service class interface required by a class product are integrated. The SDK is a product with abundant services and complete functional interfaces.
As shown in fig. 2, the SDK of the VOS system-based wearable device may include: the service framework integrates most services needed in the class products, and comprises a display framework, a sports health service framework, a basic function framework, a Bluetooth service framework, a LOG system framework for system services, a system trace service, an audio service framework, an OTA upgrading service framework and the like, wherein the assembly of the service frameworks forms the product characteristic services of the class products. And basic service of actual business logicality is provided for the development of the upper-layer APP.
The SDK service framework of the class product takes a hardware abstraction layer and a Kernel core layer at the bottom layer as a base stone to carry out development and design. The hardware abstraction layer encapsulates some upper interfaces of the bottom layer driving core layer except for some third party Library files, and the hardware abstraction layer exists for shielding the difference of each hardware mainboard and ensuring the code public of the service logic layer of the product.
The Kernel layer, most importantly the BSP, board level supports package drivers in addition to the basic os interface services. Is a part that each product device needs to be developed according to the difference of hardware. The development of the BSP driver can smoothly provide functional service for the system only by meeting the framework architecture of the SDK.
Because the VOS system is adopted, the SDK of the wearable equipment product based on the VOS system can uniformly package the functional interfaces of the operating systems. The software development is carried out on the basis of the method, and is carried out by using a uniform interface. The SDK developed by the method has strict uniformity by adding the definition of the external architecture and functional service logic design interface specification, and is beneficial to iterative development and reutilization of product software after the uniform standard specification exists.
Referring to fig. 3, fig. 3 is a flowchart illustrating an SDK implementation method of a wearable device applied to an electronic device (i.e., a wearable device) in an embodiment of the present application, where the wearable device includes a VOS.
Step 301: the VOS of the wearable device is compatible with a plurality of embedded operating systems;
The technical scheme that this application provided is through providing the VOS at formula equipment, can realize encapsulating a plurality of external function interface to a plurality of embedded operations into unified interface function like this, make things convenient for system development to use like this, to system developer like this, it is no matter that external function interface among a plurality of embedded operating system is used, all can encapsulate in unison through the VOS, and then realize its function, need not to adopt different function interface to dock to different operating system, developer has been made things convenient for, user to the diversified requirement of system has been satisfied, user experience degree has been improved.
In an optional scheme, the multiple embedded operating systems may specifically include: LiteOS, freeRTOS, etc.
In an optional aspect, the above apparatus may further include: a Kernel core layer comprising: operating system interface services and BSP drivers.
In an optional aspect, the above apparatus may further include: a hardware abstraction layer, the hardware abstraction layer comprising: and the hardware abstraction layer encapsulates the upper interface of the bottom driving core layer.
In an optional aspect, the above apparatus may further include: a service framework layer, the service framework layer comprising: the system comprises a display frame, an exercise health service frame, a basic function frame and a Bluetooth service frame, and a LOG system frame, a system trace service and an audio service frame and an OTA upgrading service frame which are used for system service.
In an alternative, the basic functional framework may include: a power management module and an RTC (clock module).
In an alternative, the audio service framework may include: a voice recognition module for implementing voice recognition services.
It will be appreciated that the electronic device, in order to implement the above-described functions, comprises corresponding hardware and/or software modules for performing the respective functions. The present application is capable of being implemented in hardware or a combination of hardware and computer software in conjunction with the exemplary algorithm steps described in connection with the embodiments disclosed herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, with the embodiment described in connection with the particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In this embodiment, the electronic device may be divided into functional modules according to the above method example, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated module may be implemented in the form of hardware. It should be noted that the division of the modules in this embodiment is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
In the case of adopting the functional modules divided corresponding to the functions, fig. 4 shows a schematic diagram of an SDK implementing apparatus of a wearable device, as shown in fig. 4, the SDK implementing apparatus 400 of the wearable device is applied to an electronic device, and the SDK implementing apparatus 400 of the wearable device may include: and packaging the unit 401.
Among other things, encapsulation unit 401 may be used to support an electronic device to perform steps 302, etc., described above, and/or other processes for the techniques described herein.
It should be noted that all relevant contents of each step related to the above method embodiment may be referred to the functional description of the corresponding functional module, and are not described herein again.
The electronic device provided by the embodiment is used for executing the SDK implementation method of the wearable device, and therefore the same effect as the implementation method can be achieved.
In case an integrated unit is employed, the electronic device may comprise a processing module, a storage module and a communication module. The processing module may be configured to control and manage actions of the electronic device, for example, may be configured to support the electronic device to execute the steps executed by the encapsulation unit 401. The memory module may be used to support the electronic device in executing stored program codes and data, etc. The communication module can be used for supporting the communication between the electronic equipment and other equipment.
The processing module may be a processor or a controller. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. A processor may also be a combination of computing functions, e.g., a combination of one or more microprocessors, a Digital Signal Processing (DSP) and a microprocessor, or the like. The storage module may be a memory. The communication module may specifically be a radio frequency circuit, a bluetooth chip, a Wi-Fi chip, or other devices that interact with other electronic devices.
In an embodiment, when the processing module is a processor and the storage module is a memory, the electronic device according to this embodiment may be a device having the structure shown in fig. 1.
The present embodiment also provides a computer storage medium, where computer instructions are stored in the computer storage medium, and when the computer instructions are run on an electronic device, the electronic device is caused to execute the above related method steps to implement the SDK implementation method of the wearable device in the above embodiments.
The present embodiment also provides a computer program product, which when running on a computer, causes the computer to execute the above related steps to implement the SDK implementation method of the wearable device in the above embodiments.
In addition, embodiments of the present application also provide an apparatus, which may be specifically a chip, a component or a module, and may include a processor and a memory connected to each other; when the device runs, the processor can execute the computer execution instructions stored in the memory, so that the chip can execute the SDK implementation method of the wearable device in the above method embodiments.
The electronic device, the computer storage medium, the computer program product, or the chip provided in this embodiment are all configured to execute the corresponding method provided above, so that the beneficial effects achieved by the electronic device, the computer storage medium, the computer program product, or the chip may refer to the beneficial effects in the corresponding method provided above, and are not described herein again.
Through the description of the above embodiments, those skilled in the art will understand that, for convenience and simplicity of description, only the division of the above functional modules is used as an example, and in practical applications, the above function distribution may be completed by different functional modules as needed, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, a module or a unit may be divided into only one logic function, and may be implemented in other ways, for example, a plurality of units or components may be combined or integrated into another apparatus, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may be one physical unit or a plurality of physical units, may be located in one place, or may be distributed to a plurality of different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially or partially contributed to by the prior art, or all or part of the technical solutions may be embodied in the form of a software product, where the software product is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the methods of the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (10)
1. An SDK implementation method of a wearable device is applied to a wearable device, wherein the wearable device includes a Virtual Operating System (VOS), and the method includes:
the VOS of the wearable device is compatible with a plurality of embedded operating systems;
the VOS of the formula equipment encapsulates a plurality of external function interfaces of the plurality of embedded operating systems, and the encapsulation is used for encapsulating the plurality of external function interfaces into a unified interface function, and the unified interface function is developed and used for the system.
2. The method of claim 1,
the plurality of embedded operating systems includes: LiteOS, freeRTOS.
3. The method of claim 1, wherein the apparatus further comprises: a Kernel core layer comprising: operating system interface services and BSP drivers.
4. The method of claim 3, wherein the apparatus further comprises: a hardware abstraction layer, the hardware abstraction layer comprising: and the hardware abstraction layer encapsulates the upper interface of the bottom driving core layer.
5. The method of claim 1, wherein the apparatus further comprises: a service framework layer, the service framework layer comprising: the system comprises a display frame, a sports health service frame, a basic function frame, a Bluetooth service frame, a LOG system frame and a system trace service.
6. The method of claim 5,
the service framework layer further comprises: an audio service framework and an OTA upgrade service framework.
7. The method of claim 5,
the basic functional framework includes: a power management module and an RTC.
8. An SDK implementation device of wearable equipment is characterized in that the SDK implementation device is applied to the wearable equipment, the wearable equipment comprises a VOS, and the VOS is compatible with a plurality of embedded operating systems; the device comprises:
and the packaging unit is used for packaging a plurality of external function interfaces of the plurality of embedded operating systems, and the packaging unit is used for packaging the plurality of external function interfaces into a unified interface function which is developed and used for the system.
9. An apparatus comprising a processor, a memory, a communication interface, and one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps in the method of any of claims 1-7.
10. A computer-readable storage medium, characterized in that a computer program for electronic data exchange is stored, wherein the computer program causes a computer to perform the method according to any one of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011248651.4A CN112306467A (en) | 2020-11-10 | 2020-11-10 | SDK implementation method and device of wearable device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011248651.4A CN112306467A (en) | 2020-11-10 | 2020-11-10 | SDK implementation method and device of wearable device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112306467A true CN112306467A (en) | 2021-02-02 |
Family
ID=74325689
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011248651.4A Pending CN112306467A (en) | 2020-11-10 | 2020-11-10 | SDK implementation method and device of wearable device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112306467A (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1866202A (en) * | 2005-05-18 | 2006-11-22 | 大唐移动通信设备有限公司 | Drive method for embedded apparatus |
CN101968745A (en) * | 2010-10-27 | 2011-02-09 | 深圳市五巨科技有限公司 | Development system and development method for application programs of mobile terminal |
US20130152050A1 (en) * | 2011-12-12 | 2013-06-13 | Wayne Chang | System and method for data collection and analysis of information relating to mobile applications |
CN104317647A (en) * | 2014-10-31 | 2015-01-28 | 小米科技有限责任公司 | Application function realizing method, device and terminal |
CN104854561A (en) * | 2012-10-16 | 2015-08-19 | 思杰系统有限公司 | Application wrapping for application management framework |
US20170060574A1 (en) * | 2015-08-27 | 2017-03-02 | FogHorn Systems, Inc. | Edge Intelligence Platform, and Internet of Things Sensor Streams System |
CN109508202A (en) * | 2018-09-27 | 2019-03-22 | 华东计算技术研究所(中国电子科技集团公司第三十二研究所) | Drive development system, method and medium for embedded operating system |
-
2020
- 2020-11-10 CN CN202011248651.4A patent/CN112306467A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1866202A (en) * | 2005-05-18 | 2006-11-22 | 大唐移动通信设备有限公司 | Drive method for embedded apparatus |
CN101968745A (en) * | 2010-10-27 | 2011-02-09 | 深圳市五巨科技有限公司 | Development system and development method for application programs of mobile terminal |
US20130152050A1 (en) * | 2011-12-12 | 2013-06-13 | Wayne Chang | System and method for data collection and analysis of information relating to mobile applications |
CN104854561A (en) * | 2012-10-16 | 2015-08-19 | 思杰系统有限公司 | Application wrapping for application management framework |
CN104317647A (en) * | 2014-10-31 | 2015-01-28 | 小米科技有限责任公司 | Application function realizing method, device and terminal |
US20170060574A1 (en) * | 2015-08-27 | 2017-03-02 | FogHorn Systems, Inc. | Edge Intelligence Platform, and Internet of Things Sensor Streams System |
CN109508202A (en) * | 2018-09-27 | 2019-03-22 | 华东计算技术研究所(中国电子科技集团公司第三十二研究所) | Drive development system, method and medium for embedded operating system |
Non-Patent Citations (1)
Title |
---|
何先波等: "嵌入式操作系统封装层的设计与实现", 《计算机应用》, pages 89 - 91 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2020119493A1 (en) | Response method for touch screen and electronic device | |
CN110347269B (en) | Empty mouse mode realization method and related equipment | |
WO2020134872A1 (en) | Message processing method, related device, and system | |
CN110798568B (en) | Display control method of electronic equipment with folding screen and electronic equipment | |
WO2020093988A1 (en) | Image processing method and electronic device | |
EP4033335A1 (en) | Touch screen, electronic device, and display control method | |
CN111182614B (en) | Method and device for establishing network connection and electronic equipment | |
CN110401768B (en) | Method and device for adjusting working state of electronic equipment | |
CN110012153A (en) | It goes out and shields the method and electronic equipment of display | |
CN111555825B (en) | Radio frequency resource allocation method and device | |
CN111835530A (en) | Group joining method and device | |
CN111522425A (en) | Power consumption control method of electronic equipment and electronic equipment | |
CN110968247B (en) | Electronic equipment control method and electronic equipment | |
CN111953627A (en) | Method and device for detecting SSB serial number | |
CN111930787A (en) | Synchronization method and device | |
CN110673694A (en) | Application opening method and electronic equipment | |
CN114095602B (en) | Index display method, electronic device and computer readable storage medium | |
CN116048772B (en) | Method and device for adjusting frequency of central processing unit and terminal equipment | |
CN111880661A (en) | Gesture recognition method and device | |
CN114089902A (en) | Gesture interaction method and device and terminal equipment | |
CN113610943B (en) | Icon rounded angle processing method and device | |
CN111836226B (en) | Data transmission control method, device and storage medium | |
CN111581119B (en) | Page recovery method and device | |
CN112306467A (en) | SDK implementation method and device of wearable device | |
CN114828263A (en) | Communication control method and related device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |