CN110134256A - A kind of map operation method, wearable device and computer readable storage medium - Google Patents

A kind of map operation method, wearable device and computer readable storage medium Download PDF

Info

Publication number
CN110134256A
CN110134256A CN201910349141.7A CN201910349141A CN110134256A CN 110134256 A CN110134256 A CN 110134256A CN 201910349141 A CN201910349141 A CN 201910349141A CN 110134256 A CN110134256 A CN 110134256A
Authority
CN
China
Prior art keywords
map
variation
wearable device
gravity sensor
coordinate value
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
CN201910349141.7A
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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201910349141.7A priority Critical patent/CN110134256A/en
Publication of CN110134256A publication Critical patent/CN110134256A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/163Wearable computers, e.g. on a belt
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0346Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of the device orientation or free movement in a 3D space, e.g. 3D mice, 6-DOF [six degrees of freedom] pointers using gyroscopes, accelerometers or tilt-sensors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions

Abstract

The application provides a kind of map operation method, wearable device and computer readable storage medium, it is related to wearable device technical field, the method is applied in the wearable device comprising gravity sensor, the described method includes: detecting the variation of the gravity sensor when detecting that map application is opened;Current motion state is determined according to the variation of the gravity sensor;Map variation is controlled according to the variation of the current motion state and the gravity sensor.The application judges wearable device current motion state according to the variation of gravity sensor, and then the corresponding operating of to map is realized according to the variation of the motion state of wearable device and weight sensor.The limitation of wearable device screen width ratio to map operation can be eliminated through the invention, realized the operation of singlehanded to map, promoted user experience.

Description

A kind of map operation method, wearable device and computer readable storage medium
Technical field
This application involves wearable device technical field more particularly to a kind of map operation methods, wearable device and meter Calculation machine readable storage medium storing program for executing.
Background technique
With the development of wireless communication technique, the application of intelligent wearable device is also more and more extensive.But wearable device Screen width is often narrow, and which limits the applications of wearable device.Such as long screen wearable device, in length side It is longer upwards, and width direction is relatively narrow, Aspect Ratio great disparity, and map is opened on this kind of wearable device using finger and carries out ground Figure it is mobile when, be not that moving distance is too big, be exactly that moving distance is too small, it is inconvenient for operation.And in some inconvenient both hands When operation, user experience is also bad.
Summary of the invention
It is a primary object of the present invention to propose a kind of map operation method, wearable device and computer-readable storage medium Matter, it is intended to solve to cause map operation inconvenient because of wearable device screen aspect ratio great disparity, and singlehanded can not realize map The technical issues of operation.
To achieve the above object, one aspect of the present invention provides a kind of map operation method, and the method is applied to comprising weight In the wearable device of force snesor, which comprises
When detecting that map application is opened, the variation of the gravity sensor is detected;
Current motion state is determined according to the variation of the gravity sensor;
Map variation is controlled according to the variation of the current motion state and the gravity sensor.
Further, the variation of the gravity sensor includes the variation of gravity sensitive coordinate system XYZ axial coordinate value.
Further, however, it is determined that current motion state is to move horizontally state, according to the variation control of the gravity sensor Map level processed is mobile.
Further, when the gravity sensitive coordinate system Z axis coordinate value is less than first threshold, and X-axis and/or Y axis coordinate When value changes, determine that current motion state is to move horizontally state.
Further, described to include: according to the variation of gravity sensor control map level movement
The direction moved horizontally and distance are determined according to the variation of the X-axis and/or Y axis coordinate value;
Distance is moved horizontally and mobile accuracy determines map moving distance according to described, and to move horizontally direction true according to described Determine map moving direction;
It is mobile according to the map moving distance and map moving direction control map level.
Further, however, it is determined that current motion state is vertical shift state, according to the variation control of the gravity sensor Map processed zooms in or out.
Further, when the gravity sensitive coordinate system X axis coordinate value is less than second threshold, Y axis coordinate value is less than third Threshold value, and when Z axis coordinate value changes, determine that current motion state is vertical shift state.
A kind of map operation method according to claim 7, which is characterized in that described according to the gravity sensor Variation control map zoom in or out and include:
Change the proportionality coefficient for determining that map zooms in or out according to Z axis coordinate value;
When Z axis coordinate value is sequentially increased, map amplification is controlled according to the proportionality coefficient;
When Z axis coordinate value is sequentially reduced, map is controlled according to the proportionality coefficient and is reduced.
Another aspect of the present invention also provides a kind of wearable device, and the wearable device includes:
Memory, processor and it is stored in the computer program that can be run on the memory and on the processor;
The computer program realizes each of map operation method described in any of the above embodiments when being executed by the processor A step.
Another aspect of the present invention also provides a kind of computer readable storage medium, the computer-readable recording medium storage There is one or more program, one or more of programs can be executed by one or more processor, above-mentioned to realize Each step of any map operation method.
A kind of map operation method provided in an embodiment of the present invention, wearable device and computer readable storage medium, root Wearable device current motion state is judged according to the variation of gravity sensor, and then according to the motion state of wearable device and again The corresponding operating of to map is realized in the variation of quantity sensor.Wearable device screen width ratio pair can be eliminated through the invention The limitation of map operation realizes the operation of singlehanded to map, promotes user experience.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets implementation of the invention Example, and be used to explain the principle of the present invention together with specification.
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, for those of ordinary skill in the art Speech, without any creative labor, is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of hardware structural diagram of embodiment of wearable device provided in an embodiment of the present invention;
Fig. 2 is a kind of hardware schematic of embodiment of wearable device provided by the embodiments of the present application;
Fig. 3 is a kind of hardware schematic of embodiment of wearable device provided by the embodiments of the present application;
Fig. 4 is a kind of hardware schematic of embodiment of wearable device provided by the embodiments of the present application;
Fig. 5 is a kind of hardware schematic of embodiment of wearable device provided by the embodiments of the present application;
Fig. 6 is a kind of flow chart of map operation method provided by the embodiments of the present application;
Fig. 7 is the XYZ coordinate system schematic diagram of the gravity sensor of wearable device provided by the embodiments of the present application;
Fig. 8 is the flow chart of another map operation method provided by the embodiments of the present application;
Fig. 9 is a kind of structural schematic diagram for wearable device that assorted application embodiment provides.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix Ground uses.
The wearable device provided in the embodiment of the present invention includes intelligent wearable device, smartwatch and intelligent hand The mobile terminals such as machine.With the continuous development of Screen Technology, the appearance of the screens form such as flexible screen, Folding screen, smart phone etc. Mobile terminal can also be used as wearable device.The wearable device provided in the embodiment of the present invention may include: RF (Radio Frequency, radio frequency) unit, WiFi module, audio output unit, A/V (audio/video) input unit, sensor, display The components such as unit, user input unit, interface unit, memory, processor and power supply.
It will be illustrated by taking wearable device as an example in subsequent descriptions, referring to Fig. 1, its each implementation to realize the present invention A kind of hardware structural diagram of wearable device of example, which may include: RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103, A/V (audio/video) input unit 104, Sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, Yi Ji electricity The components such as source 111.It will be understood by those skilled in the art that wearable device structure shown in Fig. 1 is not constituted to wearable The restriction of equipment, wearable device may include perhaps combining certain components or difference than illustrating more or fewer components Component layout.
It is specifically introduced below with reference to all parts of the Fig. 1 to wearable device:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, radio frequency list Uplink information can be sent to base station by member 101, and after the downlink information that in addition can also be sent base station receives, being sent to can be worn The processor 110 for wearing equipment is handled, and base station can be to the downlink information that radio frequency unit 101 is sent and be sent out according to radio frequency unit 101 What the uplink information sent generated, it is also possible to actively push away to radio frequency unit 101 after the information update for detecting wearable device It send, for example, base station can penetrating to wearable device after detecting that geographical location locating for wearable device changes Frequency unit 101 sends the message informing of geographical location variation, and radio frequency unit 101, can should after receiving the message informing The processor 110 that message informing is sent to wearable device is handled, and it is logical that the processor 110 of wearable device can control the message Know on the display panel 1061 for being shown in wearable device;In general, radio frequency unit 101 include but is not limited to antenna, at least one Amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, radio frequency unit 101 can also pass through channel radio Letter communicated with network and other equipment, specifically may include: by wireless communication with the server communication in network system, example Such as, wearable device can download file resource from server by wireless communication, for example can download and answer from server With program, after wearable device completes the downloading of a certain application program, if the corresponding file of the application program in server Resource updates, then the server can be by wireless communication to the message informing of wearable device push resource updates, to remind User is updated the application program.Any communication standard or agreement can be used in above-mentioned wireless communication, including but not limited to GSM (Global System of Mobile communication, global system for mobile communications), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access 2000, CDMA 2000), (Wideband Code Division Multiple Access, wideband code division are more by WCDMA Location), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, time division synchronous CDMA), (Frequency Division Duplexing-Long Term Evolution, frequency division duplex are long by FDD-LTE Phase evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex are drilled for a long time Into) etc..
In one embodiment, wearable device 100 can access existing communication network by insertion SIM card.
In another embodiment, wearable device 100 can be come real by the way that esim card (Embedded-SIM) is arranged Existing communication network is now accessed, by the way of esim card, the inner space of wearable device can be saved, reduce thickness.
It is understood that although Fig. 1 shows radio frequency unit 101, but it is understood that, radio frequency unit 101 its And it is not belonging to must be configured into for wearable device, it can according to need within the scope of not changing the essence of the invention and save completely Slightly., wearable device 100 can realize the communication connection with other equipment or communication network separately through wifi module 102, The embodiment of the present invention is not limited thereto.
WiFi belongs to short range wireless transmission technology, and wearable device can help user to receive and dispatch by WiFi module 102 Email, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 1 WiFi module 102 is shown, but it is understood that, and it is not belonging to must be configured into for wearable device, it completely can root It is omitted within the scope of not changing the essence of the invention according to needs.
Audio output unit 103 can be in call signal reception pattern, call mode, record in wearable device 100 When under the isotypes such as mode, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is received or The audio data that person stores in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103 can also provide audio output relevant to the specific function that wearable device 100 executes (for example, call signal reception sound Sound, message sink sound etc.).Audio output unit 103 may include loudspeaker, buzzer etc..
A/V input unit 104 is for receiving audio or video signal.A/V input unit 104 may include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042 Quiet down sound (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can To be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case where telephone calling model. Microphone 1042 can be implemented various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition) The noise generated during frequency signal or interference.
In one embodiment, wearable device 100 includes one or more cameras, by opening camera, It can be realized the capture to image, realize the functions such as take pictures, record a video, the position of camera, which can according to need, to be configured.
Wearable device 100 further includes at least one sensor 105, for example, optical sensor, motion sensor and other Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ring The light and shade of border light adjusts the brightness of display panel 1061, proximity sensor can when wearable device 100 is moved in one's ear, Close display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions The size of (generally three axis) acceleration, can detect that size and the direction of gravity, can be used to identify mobile phone posture when static It (for example pedometer, is struck using (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function Hit) etc..
In one embodiment, wearable device 100 further includes proximity sensor, can by using proximity sensor Wearable device can be realized non-contact manipulation, provide more modes of operation.
In one embodiment, wearable device 100 further includes heart rate sensor, when wearing, by close to using Person can be realized the detecting of heart rate.
In one embodiment, wearable device 100 can also include that fingerprint sensor can by reading fingerprint Realize the functions such as safety verification.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
In one embodiment, display panel 1061 uses flexible display screen, and wearable using flexible display screen sets For when wearing, screen is able to carry out bending, to more be bonded.Optionally, the flexible display screen can use OLED screen Body and graphene screen body, in other embodiments, the flexible display screen is also possible to other display materials, the present embodiment It is not limited thereto.
In one embodiment, the display panel 1061 of wearable device can take rectangle, ring when convenient for wearing Around.In other embodiments, other modes can also be taken.
User input unit 107 can be used for receiving the number or character information of input, and generate and wearable device User setting and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch behaviour of user on it or nearby Make (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel Operation near 1071), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touching Two parts of detection device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch behaviour Make bring signal, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.This Outside, touch panel 1071 can be realized using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touching Panel 1071 is controlled, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 It can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operation One of bar etc. is a variety of, specifically herein without limitation.
In one embodiment, one or more buttons have can be set in the side of wearable device 100.Button can be with The various ways such as short-press, long-pressing, rotation are realized, to realize a variety of operating effects.The quantity of button can be different to be multiple It can be applied in combination between button, realize a variety of operating functions.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel 1061 be the function that outputs and inputs of realizing wearable device as two independent components, but in certain embodiments, Touch panel 1071 and display panel 1061 can be integrated and be realized the function that outputs and inputs of wearable device, specifically herein Without limitation.For example, processor 110 can be controlled when receiving the message informing of a certain application program by radio frequency unit 101 The message informing show in a certain predeterminable area of display panel 1061 by system, the predeterminable area and touch panel 1071 certain One region is corresponding, can be to corresponding to area on display panel 1061 by carrying out touch control operation to a certain region of touch panel 1071 The message informing shown in domain is controlled.
Interface unit 108 be used as at least one external device (ED) connect with wearable device 100 can by interface.Example Such as, external device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, You Xianhuo Wireless data communications port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in wearable device 100 or can For transmitting data between wearable device 100 and external device (ED).
In one embodiment, wearable device 100 interface unit 108 using contact structure, by contact with Corresponding other equipment connection, realizes the functions such as charging, connection.Use contact can be with waterproof.
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program area The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of wearable device, utilizes various interfaces and the entire wearable device of connection Various pieces, by running or execute the software program and/or module that are stored in memory 109, and call and be stored in Data in memory 109 execute the various functions and processing data of wearable device, to carry out to wearable device whole Monitoring.Processor 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulation Demodulation processor, wherein the main processing operation system of application processor, user interface and application program etc., modulation /demodulation processing Device mainly handles wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Wearable device 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111 can be logically contiguous by power-supply management system and processor 110, thus charged by power-supply management system realization management, The functions such as electric discharge and power managed.
Although Fig. 1 is not shown, wearable device 100 can also be including bluetooth module etc., and details are not described herein.It is wearable to set Standby 100, by bluetooth, can connect with other terminal devices, realize communication and the interaction of information.
Fig. 2-Fig. 4 is please referred to, is the structure under a kind of a kind of embodiment of wearable device provided in an embodiment of the present invention Schematic diagram.Wearable device in the embodiment of the present invention, including flexible screen.In wearable device expansion, flexible screen is in Strip;When wearable device is in wearing state, flexible screen bending is annular in shape.Fig. 2 and Fig. 3 show wearable device Structural schematic diagram when screen is unfolded, Fig. 4 show structural schematic diagram when wearable device screen-bending.
Based on above-mentioned each embodiment, it can be seen that if the equipment is wrist-watch, wearable device or wearable When equipment, the screen of the equipment can not overlay device watchband region, can also be with the watchband region of overlay device.Here, The application proposes a kind of optional embodiment, in the present embodiment, the equipment can for wrist-watch, wearable device or Wearable device, the equipment include screen and interconnecting piece.The screen can be flexible screen, and the interconnecting piece can be with For watchband.Optionally, the viewing area of the screen or screen of the equipment can partly or completely be covered on the table of equipment It takes.As shown in figure 5, Fig. 5 is a kind of a kind of hardware schematic of embodiment of wearable device provided by the embodiments of the present application, The screen of the equipment extends to two sides, and part is covered on the watchband of equipment.In other embodiments, the equipment Screen can also be all covered on the watchband of the equipment, and the embodiment of the present application is not limited thereto.
Based on above-mentioned wearable device hardware configuration, each embodiment of the method for the present invention is proposed.
As shown in fig. 6, the embodiment of the present invention proposes that a kind of map operation method, the method are applied to include gravity sensitive In the wearable device of device, which comprises
S601, when detect map application open when, detect the variation of the gravity sensor;
Illustratively, when detecting that user opens map application on long screen wearable device, gravity is automatically turned on Map mode, in gravity map mode, the variation of system real-time detection gravity sensor.
In one embodiment, the variation of the gravity sensor includes gravity sensitive coordinate system XYZ axial coordinate value Variation.It is illustrated in figure 7 the XYZ coordinate system of the gravity sensor of wearable device.If local gravity acceleration value is g, (z-axis towards day) horizontal positioned when marquis, the value of (x, y, z) are respectively (0,0, g) to wearable device screen upwards;Wearable device (z-axis towards ground) horizontal positioned when marquis, the value of (x, y, z) are respectively (0,0 ,-g) to screen downwards;Wearable device screen is to the left When (x-axis towards day) is put in side, the value of (x, y, z) is respectively (g, 0,0);Wearable device vertical (y-axis is upward) it is upward when It waits, the value of (x, y, z) is respectively (0, g, 0).
S602, current motion state is determined according to the variation of the gravity sensor;
Wherein, current motion state includes but is not limited to the state that moves horizontally, vertical shift state.
As shown in fig. 7, when user wear wearable device screen upward when, Z axis sit target value be 0 or 0 it is smaller Variation nearby, and when carrying out horizontal direction translation, that is, the X of the gravity sensor where wearable device screen, Y-axis Value changes, then Z axis varies less or do not change during wearable device moves horizontally.In the present embodiment, First threshold can be set, when Z axis numerical value change is in first threshold range, shows that wearable device is in and move horizontally shape State.During user wears wearable device or more vertical shift, the smaller variation nearby that X axis coordinate value is 0 or 0, Y-axis The smaller variation nearby that coordinate value is 0 or 0, and Z axis coordinate value changes.In the present embodiment, second threshold can be set, When X-axis numerical value change is within the scope of second threshold, third threshold is can be set in the smaller variation nearby that X axis coordinate value is 0 or 0 Value, when Y-axis numerical value change is within the scope of second threshold, the smaller neighbouring variation that Y axis coordinate value is 0 or 0, and Z axis coordinate value It changes, shows that wearable device is in vertical shift state.
S603, map variation is controlled according to the variation of the current motion state and the gravity sensor.
Illustratively, in one embodiment, if determining in step S602, current motion state is to move horizontally state, It is mobile that map level is then controlled according to the variation of the gravity sensor in this step S603.
In another embodiment, if determining in step S602, current motion state is vertical shift state, this step Map is controlled according to the variation of the gravity sensor in rapid S603 to zoom in or out.
Obviously, above-mentioned motion state is not limited to move horizontally state and vertical shift state, corresponding, the control of to map System is also not necessarily limited to map level movement and to map zooms in or out.Those of ordinary skill in the art are right on the basis of the present invention The equivalent replacement that above-mentioned technical proposal is done all belongs to the scope of protection of the present invention.
A kind of map operation method provided in an embodiment of the present invention, judges wearable device according to the variation of gravity sensor Current motion state, and then according to the corresponding behaviour of the motion state of wearable device and the variation realization to map of weight sensor Make.The limitation of wearable device screen width ratio to map operation can be eliminated through the invention, realize singlehanded to map Operation promotes user experience.
Fig. 8 be another embodiment of the present invention provides a kind of map operation method flow chart, the map operation method Include:
S801, when detect map application open when, detect the variation of the gravity sensor;
S802, current motion state is determined according to the variation of the gravity sensor;
Wherein, step S801, S802 is identical as step S601, S602 respectively, and details are not described herein again.
If S803, current motion state are to move horizontally state, map water is controlled according to the variation of the gravity sensor Translation is dynamic.
Wherein, described to include: according to the variation of gravity sensor control map level movement
S8031, the direction moved horizontally and distance are determined according to the variation of the X-axis and/or Y axis coordinate value;
Illustratively, the direction θ moved horizontally are as follows:
The distance L moved horizontally are as follows:
Wherein, X is the variable quantity of X axis coordinate value during moving horizontally, and Y is Y axis coordinate value during moving horizontally Variable quantity.
S8032, distance is moved horizontally according to and mobile accuracy determines map moving distance, moved horizontally according to described Direction determines map moving direction;
Wherein, mobile accuracy is the proportionality coefficient that wearable device moves horizontally distance with moving distance on map, is to be The default value of system can specifically be obtained automatically by the gyroscope in wearable device.In the present embodiment, in order to improve mobile essence The accuracy of degree, can by wearable device vertical direction to carry out back rotation multiple, every rotation is primary, obtains primary mobile essence Degree, takes the average value of the mobile accuracy repeatedly obtained as final mobile accuracy value.
Distance conversion is then moved horizontally to the map moving distance LL on map are as follows: LL=L/D, wherein L is wearable sets Standby moves horizontally distance, and D is mobile accuracy.
In the present embodiment, map moving direction with move horizontally direction be it is corresponding consistent, i.e., map moving direction with can Wearable device to move horizontally direction identical.
S8033, map level movement is controlled according to the map moving distance and map moving direction.
Moving distance and map moving direction move horizontally current map according to the map.
S804, if it is determined that current motion state be vertical shift state, according to the variation of the gravity sensor control ground Figure zooms in or out.
Wherein, described zoomed in or out according to the variation of gravity sensor control map includes:
S8041, change the proportionality coefficient for determining that map zooms in or out according to Z axis coordinate value;
Illustratively, the proportionality coefficient F are as follows: F=| Z'|/| Z |;
Wherein, Z is Z axis origin coordinates value during vertical motion, and Z ' is Z axis terminating coordinates value during vertical motion.
S8042, when Z axis coordinate value is sequentially increased, according to the proportionality coefficient control map amplification;
In the present embodiment, during vertical motion, Z axis coordinate value is sequentially increased, show wearable device vertically to Upper movement, at this point, controlling map amplification according to proportionality coefficient F.
S8043, when Z axis coordinate value is sequentially reduced, according to the proportionality coefficient control map reduce.
In the present embodiment, during vertical motion, Z axis coordinate value is sequentially reduced, show wearable device vertically to Lower movement is reduced at this point, controlling map according to proportionality coefficient F.
A kind of map operation method provided in an embodiment of the present invention, judges wearable device according to the variation of gravity sensor Current motion state, and then according to the corresponding operating of the motion state of wearable device realization to map.It through the invention can be with The limitation of wearable device screen width ratio to map operation is eliminated, the operation of singlehanded to map is realized, promotes user experience.
Based on above-mentioned each method embodiment, the present invention also provides a kind of wearable devices, as shown in figure 9, this wearable sets Standby 9 include: memory 91, processor 92 and are stored in the map operation that can be run on the memory and on the processor Program, the program of the map operation performs the steps of when being executed by the processor
When detecting that map application is opened, the variation of the gravity sensor is detected;
Current motion state is determined according to the variation of the gravity sensor;
Map variation is controlled according to the variation of the current motion state and the gravity sensor.
In a specific embodiment, the variation of the gravity sensor includes gravity sensitive coordinate system XYZ axial coordinate The variation of value.
In a specific embodiment, the variation according to the gravity sensor determines current motion state step In, however, it is determined that current motion state is to move horizontally state, and the processor is also used to execute the program of the map operation, with It performs the steps of
It is mobile that map level is controlled according to the variation of the gravity sensor.
In a specific embodiment, the determining current motion state is to move horizontally in state step, the place Reason device is also used to execute the program of the map operation, to perform the steps of
When the gravity sensitive coordinate system Z axis coordinate value is less than first threshold, and X-axis and/or Y axis coordinate value change When, determine that current motion state is to move horizontally state.
In a specific embodiment, described that map level moving step is controlled according to the variation of the gravity sensor In, the processor is also used to execute the program of the map operation, to perform the steps of
The direction moved horizontally and distance are determined according to the variation of the X-axis and/or Y axis coordinate value;
Distance is moved horizontally and mobile accuracy determines map moving distance according to described, and to move horizontally direction true according to described Determine map moving direction;
It is mobile according to the map moving distance and map moving direction control map level.
In a specific embodiment, the variation according to the gravity sensor determines current motion state step In, however, it is determined that current motion state is vertical shift state, and the processor is also used to execute the program of the map operation, with It performs the steps of
Map is controlled according to the variation of the gravity sensor to zoom in or out.
In a specific embodiment, the determining current motion state is the place in vertical shift state step Reason device is also used to execute the program of the map operation, to perform the steps of
When the gravity sensitive coordinate system X axis coordinate value is less than second threshold, Y axis coordinate value is less than third threshold value, and Z axis When coordinate value changes, determine that current motion state is vertical shift state.
In a specific embodiment, described that step is zoomed in or out according to the variation of gravity sensor control map In rapid, the processor is also used to execute the program of the map operation, to perform the steps of
Change the proportionality coefficient for determining that map zooms in or out according to Z axis coordinate value;
When Z axis coordinate value is sequentially increased, map amplification is controlled according to the proportionality coefficient;
When Z axis coordinate value is sequentially reduced, map is controlled according to the proportionality coefficient and is reduced.
Another aspect of the present invention also provides a kind of computer readable storage medium, the computer-readable recording medium storage There is one or more program, one or more of programs can be executed by one or more processor, following to realize Step:
When detecting that map application is opened, the variation of the gravity sensor is detected;
Current motion state is determined according to the variation of the gravity sensor;
Map variation is controlled according to the variation of the current motion state and the gravity sensor.
In a specific embodiment, the variation of the gravity sensor includes gravity sensitive coordinate system XYZ axial coordinate The variation of value.
In a specific embodiment, the variation according to the gravity sensor determines current motion state step In, however, it is determined that current motion state is to move horizontally state, and one or more of programs can be handled by one or more Device executes, to perform the steps of
It is mobile that map level is controlled according to the variation of the gravity sensor.
In a specific embodiment, the determining current motion state is to move horizontally in state step, described one A or multiple programs can be executed by one or more processor, to perform the steps of
When the gravity sensitive coordinate system Z axis coordinate value is less than first threshold, and X-axis and/or Y axis coordinate value change When, determine that current motion state is to move horizontally state.
In a specific embodiment, described that map level moving step is controlled according to the variation of the gravity sensor In, one or more of programs can be executed by one or more processor, to perform the steps of
The direction moved horizontally and distance are determined according to the variation of the X-axis and/or Y axis coordinate value;
Distance is moved horizontally and mobile accuracy determines map moving distance according to described, and to move horizontally direction true according to described Determine map moving direction;
It is mobile according to the map moving distance and map moving direction control map level.
In a specific embodiment, the variation according to the gravity sensor determines current motion state step In, however, it is determined that current motion state is vertical shift state, and one or more of programs can be handled by one or more Device executes, to perform the steps of
Map is controlled according to the variation of the gravity sensor to zoom in or out.
In a specific embodiment, the determining current motion state is in vertical shift state step described one A or multiple programs can be executed by one or more processor, to perform the steps of
When the gravity sensitive coordinate system X axis coordinate value is less than second threshold, Y axis coordinate value is less than third threshold value, and Z axis When coordinate value changes, determine that current motion state is vertical shift state.
In a specific embodiment, described that step is zoomed in or out according to the variation of gravity sensor control map In rapid, one or more of programs can be executed by one or more processor, to perform the steps of
Change the proportionality coefficient for determining that map zooms in or out according to Z axis coordinate value;
When Z axis coordinate value is sequentially increased, map amplification is controlled according to the proportionality coefficient;
When Z axis coordinate value is sequentially reduced, map is controlled according to the proportionality coefficient and is reduced.

Claims (10)

1. a kind of map operation method, which is characterized in that the method is applied in the wearable device comprising gravity sensor, The described method includes:
When detecting that map application is opened, the variation of the gravity sensor is detected;
Current motion state is determined according to the variation of the gravity sensor;
Map variation is controlled according to the variation of the current motion state and the gravity sensor.
2. a kind of map operation method according to claim 1, which is characterized in that the variation of the gravity sensor includes The variation of gravity sensitive coordinate system XYZ axial coordinate value.
3. a kind of map operation method according to claim 2, which is characterized in that
If it is determined that current motion state is to move horizontally state, map level is controlled according to the variation of the gravity sensor and is moved It is dynamic.
4. a kind of map operation method according to claim 3, which is characterized in that when the gravity sensitive coordinate system Z axis Coordinate value is less than first threshold, and when X-axis and/or Y axis coordinate value change, and determines that current motion state is to move horizontally shape State.
5. a kind of map operation method according to claim 4, which is characterized in that described according to the gravity sensor Variation controls map level movement
The direction moved horizontally and distance are determined according to the variation of the X-axis and/or Y axis coordinate value;
Distance is moved horizontally and mobile accuracy determines map moving distance according to described, moves horizontally direction definitely according to described Figure moving direction;
It is mobile according to the map moving distance and map moving direction control map level.
6. a kind of map operation method according to claim 2, which is characterized in that
If it is determined that current motion state is vertical shift state, map amplification or contracting are controlled according to the variation of the gravity sensor It is small.
7. a kind of map operation method according to claim 6, which is characterized in that when the gravity sensitive coordinate system X-axis Coordinate value is less than second threshold, and Y axis coordinate value is less than third threshold value, and when Z axis coordinate value changes, determines current kinetic shape State is vertical shift state.
8. a kind of map operation method according to claim 7, which is characterized in that described according to the gravity sensor Variation control map, which zooms in or out, includes:
Change the proportionality coefficient for determining that map zooms in or out according to Z axis coordinate value;
When Z axis coordinate value is sequentially increased, map amplification is controlled according to the proportionality coefficient;
When Z axis coordinate value is sequentially reduced, map is controlled according to the proportionality coefficient and is reduced.
9. a kind of wearable device, which is characterized in that the wearable device includes:
Memory, processor and it is stored in the computer program that can be run on the memory and on the processor;
Such as map operation described in any item of the claim 1 to 8 is realized when the computer program is executed by the processor Each step of method.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage have one or Multiple programs, one or more of programs can be executed by one or more processor, to realize that claim 1-8 such as appoints Each step of map operation method described in one.
CN201910349141.7A 2019-04-28 2019-04-28 A kind of map operation method, wearable device and computer readable storage medium Pending CN110134256A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910349141.7A CN110134256A (en) 2019-04-28 2019-04-28 A kind of map operation method, wearable device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910349141.7A CN110134256A (en) 2019-04-28 2019-04-28 A kind of map operation method, wearable device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN110134256A true CN110134256A (en) 2019-08-16

Family

ID=67575370

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910349141.7A Pending CN110134256A (en) 2019-04-28 2019-04-28 A kind of map operation method, wearable device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110134256A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101387940A (en) * 2007-09-11 2009-03-18 通用汽车环球科技运作公司 Handheld electronic device with motion-controlled display
CN105144026A (en) * 2012-12-10 2015-12-09 三星电子株式会社 Mobile device of bangle type, control method thereof, and UI display method
WO2016113693A1 (en) * 2015-01-14 2016-07-21 Neptune Computer Inc. Wearable data processing and control platform apparatuses, methods and systems
CN108762472A (en) * 2018-05-30 2018-11-06 努比亚技术有限公司 Wearable device control method, wearable device and computer readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101387940A (en) * 2007-09-11 2009-03-18 通用汽车环球科技运作公司 Handheld electronic device with motion-controlled display
CN105144026A (en) * 2012-12-10 2015-12-09 三星电子株式会社 Mobile device of bangle type, control method thereof, and UI display method
WO2016113693A1 (en) * 2015-01-14 2016-07-21 Neptune Computer Inc. Wearable data processing and control platform apparatuses, methods and systems
CN108762472A (en) * 2018-05-30 2018-11-06 努比亚技术有限公司 Wearable device control method, wearable device and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN109982179A (en) Audio frequency signal output, device, wearable device and storage medium
CN110109725A (en) A kind of interface color method of adjustment and wearable device
CN110299100A (en) Display direction method of adjustment, wearable device and computer readable storage medium
CN110362368A (en) Picture customization display methods, relevant device and the storage medium of wearable device
CN110062279A (en) Video method of cutting out, wearable device and computer readable storage medium
CN110083289A (en) A kind of button display methods, wearable device and computer readable storage medium
CN110308883A (en) Method for splitting, wearable device and the computer readable storage medium of screen
CN110134312A (en) Control method, wearable device and computer readable storage medium
CN110086563A (en) A kind of method of controlling rotation, equipment and computer readable storage medium
CN110175066A (en) Wearable device, interaction control method and computer readable storage medium
CN110072295A (en) Dual-channels communication method, apparatus, first terminal and medium
CN109995938A (en) A kind of notice display methods, mobile phone, wearable device and calculate readable storage medium storing program for executing
CN110069132A (en) Application control method, intelligent wearable device and computer readable storage medium
CN110198411A (en) Depth of field control method, equipment and computer readable storage medium during a kind of video capture
CN110086929A (en) Breath screen display methods, mobile phone, wearable device and computer readable storage medium
CN110139270A (en) Wearable device matching method, wearable device and computer readable storage medium
CN110162375A (en) Interface display method, wearable device and readable storage medium storing program for executing
CN110018775A (en) A kind of content display method, terminal and computer readable storage medium
CN110113481A (en) Open method, terminal, wearable device and the medium of corresponding application on wearable device
CN110134304A (en) A kind of Folding display method, equipment and computer readable storage medium
CN110150804A (en) A kind of Watchband fixing structure and wearable device
CN110134311A (en) A kind of screen display method, wearable device and computer readable storage medium
CN110083205A (en) Page switching method, wearable device and computer readable storage medium
CN110162247A (en) A kind of screen control method, wearable device and computer readable storage medium
CN109901812A (en) Wearable device volume adjusting method, wearable device and readable storage medium storing program for executing

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190816