CN106095702A - Mobile terminal, and method and device for sharing data among multiple systems - Google Patents

Mobile terminal, and method and device for sharing data among multiple systems Download PDF

Info

Publication number
CN106095702A
CN106095702A CN201610388327.XA CN201610388327A CN106095702A CN 106095702 A CN106095702 A CN 106095702A CN 201610388327 A CN201610388327 A CN 201610388327A CN 106095702 A CN106095702 A CN 106095702A
Authority
CN
China
Prior art keywords
data
request
serial equipment
tty
tty serial
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
Application number
CN201610388327.XA
Other languages
Chinese (zh)
Inventor
白志勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yuanxin Technology
Original Assignee
Yuanxin Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yuanxin Technology filed Critical Yuanxin Technology
Priority to CN201610388327.XA priority Critical patent/CN106095702A/en
Publication of CN106095702A publication Critical patent/CN106095702A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • G06F13/387Information transfer, e.g. on bus using universal interface adapter for adaptation of different data processing systems to different peripheral devices, e.g. protocol converters for incompatible systems, open system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0002Serial port, e.g. RS232C
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/38Universal adapter
    • G06F2213/3852Converter between protocols

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The disclosure relates to a mobile terminal, a method and a device for sharing data among multiple systems. The method for sharing data among the multiple systems is applied to a mobile terminal at least provided with a first system and a second system; the method comprises the following steps: adding a first tty serial port device corresponding to the first system and a second tty serial port device corresponding to the second system on a kernel driver side; when the first system receives a first data request, the first data request is sent to the second tty serial port equipment through the first tty serial port equipment; the second system receives the first data request through the second tty serial port device and acquires first data according to the first data request; and the second system sends the first data to the first tty serial port equipment through the second tty serial port equipment, and the first system receives the first data through the first tty serial port equipment. The data sharing method and the data sharing device can achieve data sharing among multiple systems.

Description

Data sharing method and device between mobile terminal, multisystem
Technical field
It relates to technical field of mobile terminals, in particular to data sharing method, polyphyly between a kind of multisystem Data sharing device and apply data sharing method and the mobile terminal of device between this multisystem between system.
Background technology
Along with developing rapidly of integrated circuit technique and communication network technology, mobile terminal gradually has powerful place Reason ability and communication function.At present, mobile terminal becomes an integrated information processing platform from simple call instrument, becomes Huge, deeply to the end product of human society life every aspect for permeating extensively, popularize rapidly, affecting.
Under the background that mobile phone users amount increases rapidly, its safety is also paid close attention to by the most widely.Existing In technology, partial service business can strengthen the safety of system by system virtualization.System virtualization refers to a shifting Running multiple system in dynamic terminal, mutually isolated between these systems, being arranged on the application software in some system cannot be right Other system constitutes impact.
In the case of many, it are likely to need data sharing between multiple systems, but scheme of the prior art is owing to being Unite mutually isolated, it is difficult to realize data sharing between multisystem.Therefore, technical scheme of the prior art there is also and haves much room for improvement it Place.
It should be noted that be only used for strengthening the reason of background of this disclosure in information disclosed in above-mentioned background section Solve, therefore can include not constituting the information to prior art known to persons of ordinary skill in the art.
Summary of the invention
The purpose of the disclosure be to provide between a kind of multisystem between data sharing method, multisystem data sharing device and Apply data sharing method and the mobile terminal of device between this multisystem, and then overcome the most to a certain extent due to relevant skill Restriction and the defect of art and one or more problem of causing.
Other characteristics of the disclosure and advantage will be apparent from by detailed description below, or partially by these public affairs The practice opened and acquistion.
First aspect according to disclosure embodiment, it is provided that data sharing method between a kind of multisystem, is applied at least to have There is the mobile terminal of the first system and second system;Described method includes:
The tty serial equipment corresponding to described the first system is added in kernel-driven side;
The 2nd tty serial equipment corresponding to described second system is added in kernel-driven side;
When described the first system receives the first request of data, by a described tty serial equipment by described first Request of data sends to described 2nd tty serial equipment;
Described second system receives described first request of data by described 2nd tty serial equipment, and according to described the One request of data obtains the first data;
Described first data are sent to a described tty string by described second system by described 2nd tty serial equipment Jaws equipment, described the first system receives described first data by a described tty serial equipment.
In a kind of exemplary embodiment of the disclosure, described method also includes:
When described second system receives the second request of data, by described 2nd tty serial equipment by described second Request of data sends to a described tty serial equipment;
Described the first system receives described second request of data by a described tty serial equipment, and according to described the Two request of data obtain the second data;
Described second data are sent to described 2nd tty string by described the first system by a described tty serial equipment Jaws equipment, described second system receives described second data by described 2nd tty serial equipment.
In a kind of exemplary embodiment of the disclosure, described first request of data is WiFi formation data request;Wherein,
Described obtain the first data according to described first request of data and include:
Described second system inquires about current WiFi state, opens WiFi when inquiring WiFi and being closed;
Carry out WiFi scanning, and collect the packing of WiFi scanning result and be encapsulated as the packet of preset format as described the One data.
In a kind of exemplary embodiment of the disclosure, wherein,
When described second system receives described first request of data by described 2nd tty serial equipment, first to institute State the first request of data and carry out authorization check, after described first request of data authorization check passes through, according to described first data Acquisition request the first data.
In a kind of exemplary embodiment of the disclosure, described second system runs in host, described the first system Run in virtual machine.
Second aspect according to disclosure embodiment, it is provided that data sharing device between a kind of multisystem, is applied at least to have There is the mobile terminal of the first system and second system;Described device includes:
Serial equipment arranges module, for adding the tty serial ports corresponding to described the first system in kernel-driven side Equipment, and, the 2nd tty serial equipment corresponding to described second system is added in kernel-driven side;
First request sending module, when being used for making described the first system receive the first request of data, by described first Described first request of data is sent to described 2nd tty serial equipment by tty serial equipment;
First data acquisition module, is used for making described second system to receive described the by described 2nd tty serial equipment One request of data, and obtain the first data according to described first request of data;
First data transmission blocks, is used for making described second system by described 2nd tty serial equipment by described first Data send to a described tty serial equipment, and described the first system receives described first by a described tty serial equipment Data.
In a kind of exemplary embodiment of the disclosure, described device also includes:
Second request sending module, when being used for making described second system receive the second request of data, by described second Described second request of data is sent to a described tty serial equipment by tty serial equipment;
Second data acquisition module, is used for making described the first system to receive described the by a described tty serial equipment Two request of data, and obtain the second data according to described second request of data;
Second data transmission blocks, is used for making described the first system by a described tty serial equipment by described second Data send to described 2nd tty serial equipment, and described second system receives described second by described 2nd tty serial equipment Data.
In a kind of exemplary embodiment of the disclosure, described first request of data is WiFi formation data request;Wherein,
Described obtain the first data according to described first request of data and include:
Described second system inquires about current WiFi state, opens WiFi when inquiring WiFi and being closed;
Carry out WiFi scanning, and collect the packing of WiFi scanning result and be encapsulated as the packet of preset format as described the One data.
In a kind of exemplary embodiment of the disclosure, wherein, described first data acquisition module is used for making described second When system receives described first request of data by described 2nd tty serial equipment, and described first request of data is carried out Authorization check, after described first request of data authorization check passes through, obtains the first data according to described first request of data.
In a kind of exemplary embodiment of the disclosure, described second system runs in host, described the first system Run in virtual machine.
The third aspect according to disclosure embodiment, it is provided that a kind of mobile terminal, including:
Processor;And
Memorizer, for storing the executable instruction of described processor;
Wherein, described processor is configured to by performing described executable instruction to perform following operation:
The tty serial equipment corresponding to described the first system is added in kernel-driven side;
The 2nd tty serial equipment corresponding to described second system is added in kernel-driven side;
When described the first system receives the first request of data, by a described tty serial equipment by described first Request of data sends to described 2nd tty serial equipment;
Described second system receives described first request of data by described 2nd tty serial equipment, and according to described the One request of data obtains the first data;
Described first data are sent to a described tty string by described second system by described 2nd tty serial equipment Jaws equipment, described the first system receives described first data by a described tty serial equipment.
In technical scheme in a kind of embodiment of the disclosure, by adding corresponding to the first system in kernel-driven side Oneth tty serial equipment and interpolation, corresponding to the 2nd tty serial equipment of described second system, utilize a tty serial ports to set Standby and second serial equipment realizes the data sharing between the first system and second system, such that it is able to meet in multiple system Each the data of application program normally use demand, on the premise of not affecting security of system, promote Consumer's Experience further.
It should be appreciated that it is only exemplary and explanatory, not that above general description and details hereinafter describe The disclosure can be limited.
Accompanying drawing explanation
Accompanying drawing herein is merged in description and constitutes the part of this specification, it is shown that meet the enforcement of the disclosure Example, and for explaining the principle of the disclosure together with description.It should be evident that the accompanying drawing in describing below is only the disclosure Some embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to according to These accompanying drawings obtain other accompanying drawing.
Fig. 1 illustrates in the disclosure exemplary embodiment schematic flow sheet of data sharing method between a kind of multisystem.
Fig. 2 illustrates in the disclosure exemplary embodiment schematic flow sheet of data sharing method between a kind of multisystem.
Fig. 3 illustrates in the disclosure exemplary embodiment block diagram of data sharing device between a kind of multisystem.
Fig. 4 illustrates in disclosure exemplary embodiment a kind of application between above-mentioned multisystem between data sharing method or multisystem The block diagram of the mobile terminal of data sharing device.
Detailed description of the invention
It is described more fully with example embodiment referring now to accompanying drawing.But, example embodiment can be with multiple shape Formula is implemented, and is not understood as limited to example set forth herein;On the contrary, it is provided that these embodiments make the disclosure will more Fully and completely, and by the design of example embodiment those skilled in the art is conveyed to all sidedly.Described feature, knot Structure or characteristic can be combined in one or more embodiment in any suitable manner.In the following description, it is provided that permitted Many details thus provide fully understanding of embodiment of this disclosure.It will be appreciated, however, by one skilled in the art that can That omits in described specific detail to put into practice the technical scheme of the disclosure is one or more, or can use other side Method, constituent element, device, step etc..In other cases, be not shown in detail or describe known solution a presumptuous guest usurps the role of the host avoiding and The each side making the disclosure thickens.
Additionally, accompanying drawing is only the schematic illustrations of the disclosure, it is not necessarily drawn to scale.Accompanying drawing mark identical in figure Note represents same or similar part, thus will omit repetition thereof.Some block diagrams shown in accompanying drawing are merits Energy entity, it is not necessary to must be corresponding with the most independent entity.Software form can be used to realize these merits Energy entity, or in one or more hardware modules or integrated circuit, realize these functional entitys, or at heterogeneous networks and/or place Reason device device and/or microcontroller device realize these functional entitys.
This example embodiment provide firstly data sharing method between a kind of multisystem, can apply at least to have The first system and the mobile terminal of second system.In this example embodiment, described mobile terminal can be such as mobile phone, put down Plate computer and PDA etc..Described mobile terminal can be operating system based on Linux, as Android operation system, SyberOS operating system etc., it is also possible to for other operating systems such as IOS;This example embodiment will be with Android operation Illustrate as a example by system.In Android operation system, linux kernel can be utilized to carry by Container (container) technology NameSpace (NameSpace) characteristic of confession and control packet (Cgroups) characteristic isolate the virtual platform of complete set. Such as, in this example embodiment, linux kernel provides NameSpace respectively for host and virtual machine, host and virtual Machine operates in respective NameSpace, and is limited the space that virtual machine is able to access that, described second system by Cgroups assembly Running in host, described the first system runs in virtual machine, it is achieved two systems are operated together on a kernel Effect, and mutually isolated between two systems;But it should be recognized that data between multisystem in this example embodiment Sharing method can be applied equally to other kinds of multisystem implementation;And, at described the first system and second it is Outside system, described mobile terminal can also have in other more multisystem, these exemplary embodiments this not do particular determination.
With reference to shown in Fig. 1 and Fig. 2, in this example embodiment, between described multisystem, data sharing method can wrap Include following steps:
Step S1. adds the tty serial equipment corresponding to described the first system in kernel-driven side, and, including Core driving side adds the 2nd tty serial equipment corresponding to described second system.
Tty serial equipment is a kind of character type equipment, in this example embodiment, it is possible to use the isolation of linux kernel Property, by pre-set code (according to different systems, described code is also by different), add corresponding to institute in kernel-driven side State a tty serial equipment of the first system, and add the 2nd tty string corresponding to described second system in kernel-driven side Jaws equipment, opens device file in different tty serial equipments and writes file and will be independent of each other.
Step S2. is when described the first system receives the first request of data, by a described tty serial equipment by institute State the first request of data to send to described 2nd tty serial equipment.
In this example embodiment, the first data are usually the data that described the first system cannot obtain self.Such as, by In consideration based on safety and design aspect, second system can control and operate WiFi, and cannot in second system WiFi is controlled and operates.If but the certain applications program in the first system (such as, Baidu's map, drip drip call a taxi Deng) need to obtain WiFi relevant information (such as, the letter such as ssid, mac address of the neighbouring hotspot that WiFi module scans Breath) it is used for carrying out location positioning.But owing to container has carried out security isolation for the data inside and outside container, second system without Method gets the WiFi information data that the first system is obtained by WiFi module.In this example embodiment, when opening above-mentioned need After wanting the application program of WiFi information data, application program can send wifiscan by the interface of the first system, and (WiFi sweeps Retouch) instruction, the WiFi relevant information then scanned by getwifiscanresult () interface requests wifi module is (such as Hotspot information);When the first system receives this WiFi formation data request, then can pass through a described tty serial ports Described WiFi formation data request is sent to described 2nd tty serial equipment by equipment.
Second system described in step S3. by described 2nd tty serial equipment receive described first request of data, and according to Described first request of data obtains the first data.
In this example embodiment, when described second system receives described first number by described 2nd tty serial equipment During according to request, first described first request of data can be carried out authorization check, when described first request of data authorization check leads to Later, the first data are obtained according to described first request of data.Such as, if it is determined that the application program in described the first system does not has There is the authority obtaining the first data, then can ignore this first request of data, thus strengthen the safety of system.Additionally, originally show Example embodiment can also make the first system shielding be not belonging to oneself by the input management service in amendment the first system The request of tty serial equipment, only receives the request of one's own tty serial equipment, to avoid input conflict.
After second system receives the first request of data, the first data can be obtained by the first data acquisition module.Example As, as a example by WiFi formation data request, after second system receives this request, first pass through WiFi module (the first data Acquisition module) inquire about current WiFi state, if it is Power off (closedown) state that inquiry returns result, then can call Wifi_power_on () interface opens WiFi;If it is power on (opening) state that inquiry returns result, then can confirm that WiFi It is in open mode.When WiFi is in open mode, WiFi scan interface start_wifi_scan () can be called and carry out WiFi scans.Then, inquiring about wifi_san state, if it is Scanning that inquiry returns result, then explanation scanning is carried out In, need to wait that WiFi has scanned;If it is scan_finished that inquiry returns result, then illustrate scanned, Ke Yishou Collect WiFi scanning result (neighbouring corresponding such as hotspot information), and packing is encapsulated as the packet of preset format, such as Packing is encapsulated as wifi_signal_result packet as described first data.
Described first data are sent to the most described the by second system described in step S4. by described 2nd tty serial equipment One tty serial equipment, described the first system receives described first data by a described tty serial equipment.
For example, it is possible to the wifi_signal_result packet obtained in above-mentioned steps S3 is passed through described 2nd tty Serial equipment sends to a described tty serial equipment, and described the first system receives described by a described tty serial equipment Wifi_signal_result packet.When second system receives described wifi_signal_ by a tty serial equipment After result packet, wifi_signal_result packet can be reduced to neighbouring the most such as by de-packaging operation Hotspot information is also sent to above-mentioned getwifiscanresult () interface function, the most above-mentioned needs WiFi information The application program of data can get the hotspot information wanted, and then it is fixed to carry out map according to hotspot information The operations such as position.
In above-mentioned exemplary embodiment, it is to share data with second system to described the first system, but if with One system shares data to described second system, then process is also similar.Such as, the second number is received when described second system During according to request, by described 2nd tty serial equipment, described second request of data is sent to a described tty serial equipment; Described the first system receives described second request of data by a described tty serial equipment, and please according to described second data Seek acquisition the second data;Described second data are sent to the most described the by described the first system by a described tty serial equipment Two tty serial equipments, described second system receives described second data by described 2nd tty serial equipment.Therefore, above-mentioned skill Art scheme is shared except may be used for the unidirectional of data, it is also possible to realizes the two-way of data and shares, right in this example embodiment This does not do particular determination.
Additionally, in above-mentioned exemplary embodiment, be to illustrate as a example by shared WiFi information data, but in the disclosure Other exemplary embodiments, it is also possible to being to share GPS to position other other data such as information, address list information, this is the most exemplary This is not done particular determination by embodiment.In above-mentioned exemplary embodiment, it is to illustrate as a example by dual system, but in these public affairs In other exemplary embodiments opened, it is also possible to comprise more multisystem, the data sharing between multiple systems and the first system and Data sharing between second system is similar to, and therefore also belongs to the protection domain of the disclosure.
Between the multisystem in this example embodiment in data sharing method, by adding corresponding to the in kernel-driven side Oneth tty serial equipment of one system and interpolation, corresponding to the 2nd tty serial equipment of described second system, utilize first Tty serial equipment and second serial equipment realize the data sharing between the first system and second system, such that it is able to meet In multiple systems, the data of respective application program normally use demand, on the premise of not affecting security of system, carry further Rise Consumer's Experience.
Further, this example embodiment additionally provides data sharing device between a kind of multisystem, can apply to At least there is the mobile terminal of the first system and second system;Between described multisystem, data sharing device 1 includes serial equipment Module the 10, first request sending module the 20, first data acquisition module 30 and the first data transmission blocks 40 are set.Wherein,
Serial equipment arranges module 10 and may be used for adding in kernel-driven side the tty corresponding to described the first system Serial equipment, and, the 2nd tty serial equipment corresponding to described second system is added in kernel-driven side.
First request sending module 20 may be used to described the first system when receiving the first request of data, by described Described first request of data is sent to described 2nd tty serial equipment by the oneth tty serial equipment.
First data acquisition module 30 may be used to described second system and receives institute by described 2nd tty serial equipment State the first request of data, and obtain the first data according to described first request of data.
First data transmission blocks 40 may be used to described second system by described 2nd tty serial equipment by described First data send to a described tty serial equipment, and described the first system receives described by a described tty serial equipment First data.
In a kind of exemplary embodiment of the disclosure, described device can also include the second request sending module, second Data acquisition module and the second data transmission blocks.Wherein,
Second request sending module may be used to described second system when receiving the second request of data, by described Described second request of data is sent to a described tty serial equipment by two tty serial equipments.
Second data acquisition module may be used to described the first system and receives described by a described tty serial equipment Second request of data, and obtain the second data according to described second request of data.
Second data transmission blocks may be used to described the first system by a described tty serial equipment by described the Two data send to described 2nd tty serial equipments, and described second system receives described the by described 2nd tty serial equipment Two data.
In a kind of exemplary embodiment of the disclosure, described first request of data can be WiFi formation data request; Wherein, described obtain the first data according to described first request of data and may include that
Described second system inquires about current WiFi state, opens WiFi when inquiring WiFi and being closed;Carry out WiFi scan, and collect WiFi scanning result packing be encapsulated as the packet of preset format as described first data.
In a kind of exemplary embodiment of the disclosure, wherein, described first data acquisition module is used for making described second When system receives described first request of data by described 2nd tty serial equipment, and described first request of data is carried out Authorization check, after described first request of data authorization check passes through, obtains the first data according to described first request of data.
In a kind of exemplary embodiment of the disclosure, described second system runs in host, described the first system Run in virtual machine.
The detail of each module/unit number between corresponding multisystem in data sharing device between above-mentioned multisystem Being described in detail according in sharing method, therefore here is omitted.
Although it should be noted that, being referred to some modules or the list of the equipment for action executing in above-detailed Unit, but this division is the most enforceable.It practice, according to embodiment of the present disclosure, above-described two or more Module or the feature of unit and function can embody in a module or unit.Otherwise, an above-described mould Block or the feature of unit and function can embody with Further Division for by multiple modules or unit.
Although additionally, describe each step of method in the disclosure with particular order in the accompanying drawings, but, this does not really wants Asking or imply must be according to this particular order to perform these steps, or the step shown in having to carry out all could realize Desired result.Additional or alternative, it is convenient to omit some step, multiple steps are merged into a step and performs, and/ Or a step is decomposed into multiple step execution etc..
With reference to Fig. 4, apply the mobile terminal 300 of data-sharing scheme between above-mentioned multisystem can include with next or many Individual assembly: process assembly 302, memorizer 304, power supply module 306, multimedia groupware 308, audio-frequency assembly 310, input/output (I/O) interface 312, sensor cluster 314, and communications component 316.
Processing assembly 302 and generally control the integrated operation of mobile terminal 300, such as with display, call, data are led to The operation that letter, camera operation and record operation are associated.Process assembly 302 and can include that one or more processor 320 is held Row instruction, to complete all or part of step of above-mentioned method.Additionally, process assembly 302 can include one or more mould Block, it is simple to process between assembly 302 and other assemblies is mutual.Such as, process assembly 302 and can include multi-media module, with Facilitate multimedia groupware 304 and process between assembly 302 mutual.
Memorizer 304 is configured to store various types of data to support the operation at equipment 300.Showing of these data Example includes any application program for operation on mobile terminal 300 or the instruction of method, contact data, telephone directory number According to, message, picture, video etc..Memorizer 304 can by any kind of volatibility or non-volatile memory device or they Combination realize, such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), erasable Programmable read only memory (EPROM), programmable read only memory (PROM), read only memory (ROM), magnetic memory, quick flashing Memorizer, disk or CD.
The various assemblies that power supply module 306 is mobile terminal 300 provide electric power.Power supply module 306 can include power supply pipe Reason system, one or more power supplys, and other generate, manage and distribute, with for mobile terminal 300, the assembly that electric power is associated.
The screen of one output interface of offer that multimedia groupware 308 is included between described mobile terminal 300 and user. In certain embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch surface Plate, screen may be implemented as touch screen, to receive the input signal from user.Touch panel includes one or more touch Sensor is with the gesture on sensing touch, slip and touch panel.Described touch sensor can not only sense touch or slide The border of action, but also detect the persistent period relevant to described touch or slide and pressure.In certain embodiments, Multimedia groupware 308 includes a front-facing camera and/or post-positioned pick-up head.When equipment 300 is in operator scheme, such as shooting mould When formula or video mode, front-facing camera and/or post-positioned pick-up head can receive the multi-medium data of outside.Each preposition shooting Head and post-positioned pick-up head can be a fixing optical lens system or have focal length and optical zoom ability.
Audio-frequency assembly 310 is configured to output and/or input audio signal.Such as, audio-frequency assembly 310 includes a Mike Wind (MIC), when mobile terminal 300 is in operator scheme, during such as call model, logging mode and speech recognition mode, mike It is configured to receive external audio signal.The audio signal received can be further stored at memorizer 304 or via logical Letter assembly 316 sends.In certain embodiments, audio-frequency assembly 310 also includes a speaker, is used for exporting audio signal.
I/O interface 312 provides interface for processing between assembly 302 and peripheral interface module, above-mentioned peripheral interface module can To be keyboard, put striking wheel, button etc..These buttons may include but be not limited to: home button, volume button, start button and lock Set button.
Sensor cluster 314 includes one or more sensor, for providing the state of various aspects for mobile terminal 300 Assessment.Such as, what sensor cluster 314 can detect equipment 300 opens/closed mode, the relative localization of assembly, such as institute Stating display and keypad that assembly is mobile terminal 300, sensor cluster 314 can also detect mobile terminal 300 or mobile The position change of 300 1 assemblies of terminal, the presence or absence that user contacts with mobile terminal 300, mobile terminal 300 orientation Or acceleration/deceleration and the variations in temperature of mobile terminal 300.Sensor cluster 314 can include proximity transducer, is configured to The object near detection when not having any physical contact.Sensor cluster 314 can also include optical sensor, as CMOS or ccd image sensor, for using in imaging applications.In certain embodiments, this sensor cluster 314 is all right Including acceleration transducer, gyro sensor, Magnetic Sensor, pressure transducer or temperature sensor.
Communications component 316 is configured to facilitate the communication of wired or wireless mode between mobile terminal 300 and other equipment. Mobile terminal 300 can access wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.Show at one In example embodiment, communications component 316 receives the broadcast singal from external broadcasting management system or broadcast via broadcast channel Relevant information.In one exemplary embodiment, described communications component 316 also includes near-field communication (NFC) module, short to promote Cheng Tongxin.Such as, can be based on RF identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, mobile terminal 300 can be by one or more application specific integrated circuits (ASIC), number Word signal processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components realize, be used for performing said method.
In the exemplary embodiment, a kind of non-transitory computer-readable recording medium including instruction, example are additionally provided As included the memorizer 304 of instruction, above-mentioned instruction can have been performed this example by the processor 320 of mobile terminal 300 and implement Technique scheme in mode.Such as, described non-transitory computer-readable recording medium can be that ROM, random access memory are deposited Reservoir (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc..
Those skilled in the art, after considering description and putting into practice invention disclosed herein, will readily occur to its of the disclosure Its embodiment.The application is intended to any modification, purposes or the adaptations of the disclosure, these modification, purposes or Person's adaptations is followed the general principle of the disclosure and includes the undocumented common knowledge in the art of the disclosure Or conventional techniques means.Description and embodiments is considered only as exemplary, and the true scope of the disclosure and spirit are by appended Claim is pointed out.

Claims (11)

1. a data sharing method between multisystem, is applied to the mobile terminal at least with the first system and second system; It is characterized in that, described method includes:
The tty serial equipment corresponding to described the first system is added in kernel-driven side;
The 2nd tty serial equipment corresponding to described second system is added in kernel-driven side;
When described the first system receives the first request of data, by a described tty serial equipment by described first data Request sends to described 2nd tty serial equipment;
Described second system receives described first request of data by described 2nd tty serial equipment, and according to described first number According to acquisition request the first data;
Described first data are sent an extremely described tty serial ports by described 2nd tty serial equipment and set by described second system Standby, described the first system receives described first data by a described tty serial equipment.
Data sharing method between multisystem the most according to claim 1, it is characterised in that described method also includes:
When described second system receives the second request of data, by described 2nd tty serial equipment by described second data Request sends to a described tty serial equipment;
Described the first system receives described second request of data by a described tty serial equipment, and according to described second number According to acquisition request the second data;
Described second data are sent extremely described 2nd tty serial ports by a described tty serial equipment and set by described the first system Standby, described second system receives described second data by described 2nd tty serial equipment.
Data sharing method between multisystem the most according to claim 1, it is characterised in that described first request of data is WiFi formation data request;Wherein,
Described obtain the first data according to described first request of data and include:
Described second system inquires about current WiFi state, opens WiFi when inquiring WiFi and being closed;
Carry out WiFi scanning, and collect the packing of WiFi scanning result and be encapsulated as the packet of preset format as described first number According to.
Data sharing method between multisystem the most according to claim 1, it is characterised in that wherein,
When described second system receives described first request of data by described 2nd tty serial equipment, first to described the One request of data carries out authorization check, after described first request of data authorization check passes through, according to described first request of data Obtain the first data.
5. according to data sharing method between the multisystem described in Claims 1 to 4 any one, it is characterised in that described second System runs in host, and described the first system runs in virtual machine.
6. a data sharing device between multisystem, is applied to the mobile terminal at least with the first system and second system; It is characterized in that, described device includes:
Serial equipment arranges module, for adding the tty serial equipment corresponding to described the first system in kernel-driven side, And, the 2nd tty serial equipment corresponding to described second system is added in kernel-driven side;
First request sending module, when being used for making described the first system receive the first request of data, is gone here and there by a described tty Described first request of data is sent to described 2nd tty serial equipment by jaws equipment;
First data acquisition module, is used for making described second system receive described first number by described 2nd tty serial equipment According to request, and obtain the first data according to described first request of data;
First data transmission blocks, is used for making described second system by described 2nd tty serial equipment by described first data Sending to a described tty serial equipment, described the first system receives described first number by a described tty serial equipment According to.
Data sharing device between multisystem the most according to claim 6, it is characterised in that described device also includes:
Second request sending module, when being used for making described second system receive the second request of data, is gone here and there by described 2nd tty Described second request of data is sent to a described tty serial equipment by jaws equipment;
Second data acquisition module, is used for making described the first system receive described second number by a described tty serial equipment According to request, and obtain the second data according to described second request of data;
Second data transmission blocks, is used for making described the first system by a described tty serial equipment by described second data Sending to described 2nd tty serial equipment, described second system receives described second number by described 2nd tty serial equipment According to.
Data sharing device between multisystem the most according to claim 6, it is characterised in that described first request of data is WiFi formation data request;Wherein,
Described obtain the first data according to described first request of data and include:
Described second system inquires about current WiFi state, opens WiFi when inquiring WiFi and being closed;
Carry out WiFi scanning, and collect the packing of WiFi scanning result and be encapsulated as the packet of preset format as described first number According to.
Data sharing device between multisystem the most according to claim 6, it is characterised in that wherein, described first data obtain When delivery block is used for making described second system receive described first request of data by described 2nd tty serial equipment and right Described first request of data carries out authorization check, after described first request of data authorization check passes through, according to described first number According to acquisition request the first data.
10. according to data sharing device between the multisystem described in claim 6~9 any one, it is characterised in that described second System runs in host, and described the first system runs in virtual machine.
11. 1 kinds of mobile terminals, it is characterised in that including:
Processor;And
Memorizer, for storing the executable instruction of described processor;
Wherein, described processor is configured to by performing described executable instruction to perform following operation:
The tty serial equipment corresponding to described the first system is added in kernel-driven side;
The 2nd tty serial equipment corresponding to described second system is added in kernel-driven side;
When described the first system receives the first request of data, by a described tty serial equipment by described first data Request sends to described 2nd tty serial equipment;
Described second system receives described first request of data by described 2nd tty serial equipment, and according to described first number According to acquisition request the first data;
Described first data are sent an extremely described tty serial ports by described 2nd tty serial equipment and set by described second system Standby, described the first system receives described first data by a described tty serial equipment.
CN201610388327.XA 2016-06-02 2016-06-02 Mobile terminal, and method and device for sharing data among multiple systems Pending CN106095702A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610388327.XA CN106095702A (en) 2016-06-02 2016-06-02 Mobile terminal, and method and device for sharing data among multiple systems

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610388327.XA CN106095702A (en) 2016-06-02 2016-06-02 Mobile terminal, and method and device for sharing data among multiple systems

Publications (1)

Publication Number Publication Date
CN106095702A true CN106095702A (en) 2016-11-09

Family

ID=57448280

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610388327.XA Pending CN106095702A (en) 2016-06-02 2016-06-02 Mobile terminal, and method and device for sharing data among multiple systems

Country Status (1)

Country Link
CN (1) CN106095702A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106413063A (en) * 2016-11-29 2017-02-15 北京元心科技有限公司 Method and device for sharing multi-system Wi-Fi
CN106502913A (en) * 2016-11-29 2017-03-15 北京元心科技有限公司 Method and device for debugging dual-system mobile terminal
CN106506228A (en) * 2016-11-29 2017-03-15 北京元心科技有限公司 Method for sharing mobile network in multiple systems and terminal system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103780674A (en) * 2013-11-13 2014-05-07 南京中兴新软件有限责任公司 Virtual machine communication method and apparatus based on hardware simulation
CN104461716A (en) * 2014-12-29 2015-03-25 迈普通信技术股份有限公司 Access method of multi-nucleus heterogeneous system and multi-nucleus heterogeneous system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103780674A (en) * 2013-11-13 2014-05-07 南京中兴新软件有限责任公司 Virtual machine communication method and apparatus based on hardware simulation
CN104461716A (en) * 2014-12-29 2015-03-25 迈普通信技术股份有限公司 Access method of multi-nucleus heterogeneous system and multi-nucleus heterogeneous system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106413063A (en) * 2016-11-29 2017-02-15 北京元心科技有限公司 Method and device for sharing multi-system Wi-Fi
CN106502913A (en) * 2016-11-29 2017-03-15 北京元心科技有限公司 Method and device for debugging dual-system mobile terminal
CN106506228A (en) * 2016-11-29 2017-03-15 北京元心科技有限公司 Method for sharing mobile network in multiple systems and terminal system
CN106502913B (en) * 2016-11-29 2019-02-15 北京元心科技有限公司 Method and device for debugging dual-system mobile terminal

Similar Documents

Publication Publication Date Title
CN109906561B (en) Pairing system, pairing method, terminal device, medium and chip system
CN104159226B (en) Method for connecting network and device
US20160381629A1 (en) Virtual sim card for accessing operator network
US10374819B2 (en) Methods and devices of accessing wireless network
CN105162668B (en) Connect method and device for removing
KR101990040B1 (en) Mobile terminal and cloud system using the mobile terminal
CN106375479B (en) Data sharing method and device
CN105516508A (en) Method and device for activating virtual SIM card
CN104602112A (en) Configuration method and device
CN104113530B (en) The method and device of access router
WO2019028746A1 (en) Unmanned aerial vehicle access method and device
CN105162982A (en) Answering extension function display method and device
CN105471814A (en) Account number management method and account number management device
CN109716806A (en) The method and device of network registry
CN107820300A (en) Network search method and device
CN106488450B (en) Connect the method and device of wireless network
US20220263836A1 (en) System, device, and method for transferring security access permissions between in-camera users
CN108924820B (en) Method, device, equipment and storage medium for realizing sharing of SIM card
CN106101456A (en) A kind of method and device of call contact
CN106886416A (en) Multi-User Dimension processing method and processing device
CN105682071A (en) Wireless local area network information configuring method, device and system
CN106462378A (en) Display method, apparatus and automobile data recorder
CN107147815A (en) Based on the call handling method and device called a taxi
CN109792786A (en) The method and device of user equipment pairing
CN106095702A (en) Mobile terminal, and method and device for sharing data among multiple systems

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20161109

RJ01 Rejection of invention patent application after publication