CN104536712A - Method for audio device to adapt to different positions of audio interfaces of mobile devices - Google Patents

Method for audio device to adapt to different positions of audio interfaces of mobile devices Download PDF

Info

Publication number
CN104536712A
CN104536712A CN201410806463.7A CN201410806463A CN104536712A CN 104536712 A CN104536712 A CN 104536712A CN 201410806463 A CN201410806463 A CN 201410806463A CN 104536712 A CN104536712 A CN 104536712A
Authority
CN
China
Prior art keywords
display
mobile device
display direction
audio frequency
frequency apparatus
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.)
Granted
Application number
CN201410806463.7A
Other languages
Chinese (zh)
Other versions
CN104536712B (en
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.)
Feitian Technologies Co Ltd
Original Assignee
Feitian Technologies 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 Feitian Technologies Co Ltd filed Critical Feitian Technologies Co Ltd
Priority to CN201410806463.7A priority Critical patent/CN104536712B/en
Publication of CN104536712A publication Critical patent/CN104536712A/en
Priority to CN201510828962.0A priority patent/CN105260157B/en
Application granted granted Critical
Publication of CN104536712B publication Critical patent/CN104536712B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The invention discloses a method for an audio device to adapt to different positions of audio interfaces of mobile devices and belongs to the field of information safety. The method comprises the steps that after the audio device receives a first preset instruction and a second preset instruction sent by the mobile devices, the audio device correspondingly updates the current screen display direction to be the first display direction and the second display direction; when a signature instruction sent by the mobile devices is received, display data are obtained, current display data in the display data are stored in a display cache area to be displayed, a key state is detected, corresponding display is performed according to the current screen display direction when a page key is pressed down, when an enter key is pressed down, signature operation is carried out, and when a cancel key is pressed down, an error is reported. By the adoption of the method, the display content of the audio device can be correspondingly overturned when the mobile devices with the different audio interface positions use the same audio device, the purpose of meeting the use habit of a user is achieved, and the user experience is better.

Description

A kind of audio frequency apparatus adapts to the method for different mobile device audio port position
Technical field
The present invention relates to information security field, particularly relate to a kind of method that audio frequency apparatus adapts to different mobile device audio port position.
Background technology
Audio frequency apparatus, mainly to the general name of audio input-output device, its product type is also a lot, such as audio intelligent key device etc., audio intelligent key device is the intelligent cipher key equipment with earphone interface, can send voice data, have microphone function to the mobile device be attached thereto.
In prior art, because the direction of the earpiece holes of mobile device is not fixed, and the audio frequency apparatus of production respective direction needs at substantial man power and material, and the present invention arises at the historic moment under such application background.
Summary of the invention
The object of the invention is to solve problems of the prior art, providing a kind of method that audio frequency apparatus adapts to different mobile device audio port position.
The technical solution used in the present invention is: a kind of audio frequency apparatus adapts to the method for different mobile device audio port position, comprising: audio frequency apparatus power-up initializing, performs following operation:
Step S1: the instruction that described audio frequency apparatus wait-receiving mode mobile device sends;
When receiving the first preset instructions, upgrading current screen display direction according to described first preset instructions is the first display direction, returns success response, return step S1 to described mobile device;
When receiving the second preset instructions, upgrading current screen display direction according to described second preset instructions is the second display direction, returns success response, return step S1 to described mobile device;
When receiving signature command, perform following operation:
Step T1: described signature command resolved by described audio frequency apparatus, obtains showing data, obtains current display data, current display data is saved to display buffer district and shows from described display data;
Step T2: described audio frequency apparatus detects key-press status;
When detecting that the first page turning key is pressed, judge described current screen display direction, if described first display direction, then obtain the display data in described display data before current display data and be saved to described display buffer district and show, return step T2, if described second display direction, then obtain the display data in described display data after current display data and be saved to described display buffer district and show, return step T2;
When detecting that the second page turning key is pressed, judge described current screen display direction, if described first display direction, then obtain the display data in described display data after current display data and be saved to described display buffer district and show, return step T2, if described second display direction, then obtain the display data in described display data before current display data and be saved to described display buffer district and show, return step T2;
When detecting that acknowledgement key is pressed, performing signature operation, returning success response to described mobile device, return step S1;
When detecting that cancel key is pressed, then return failure response to described mobile device, return step S1.
Described method also comprises: when receiving acquisition screen display direction instruction, performs following operation:
Steps A 1: described audio frequency apparatus, according to the acquisition screen display direction instruction received, obtains current screen display direction, according to the display response of generation direction, described current screen display direction;
Steps A 2: the display response of described direction is sent to described mobile device by described audio frequency apparatus, returns step S1.
Also comprise before described step S1:
Step B1: described mobile device starts mobile device application program;
Step B2: after described mobile device application program receives the flip request of user, obtains inner described acquisition screen display direction instruction of preserving;
Step B3: described acquisition screen display direction instruction is sent to described audio frequency apparatus by described mobile device application program.
After described steps A 2, also comprise:
Step C1: described mobile device application program is resolved the described direction display response received, and obtains described current screen display direction;
Step C2: described mobile device application program judges described current screen display direction, if described first display direction, then performs step C3, if described second display direction, then performs step C4;
Step C3: described mobile device application program obtains inner described first preset instructions of preserving, and described first preset instructions is sent to described audio frequency apparatus;
Step C4: described mobile device obtains inner described second preset instructions of preserving, and described second preset instructions is sent to described audio frequency apparatus.
Also comprise before described step S1:
Step D1: described mobile device starts mobile device application program;
Step D2: the display request of described mobile device application program wait-receiving mode user;
Step D3: after described mobile device application program receives the display request of user, judges described display request type, if the first display direction request, then performs step D4, if the second display direction request, then performs step D5;
Step D4: described mobile device application program obtains inner second preset instructions of preserving, and described second preset instructions is sent to described audio frequency apparatus;
Step D5: described mobile device obtains inner first preset instructions of preserving, and described first preset instructions is sent to described audio frequency apparatus.
Described step D3 also comprises: when judging that described display request type is the 3rd display direction request, and described mobile device obtains inner 3rd preset instructions of preserving, and described 3rd preset instructions is sent to described audio frequency apparatus;
Described method also comprises: when receiving described 3rd preset instructions, and it is the 3rd display direction that described audio frequency apparatus upgrades current screen display direction according to described 3rd preset instructions, returns success response, return step S1 to described mobile device.
It is described that to upgrade current screen display direction according to described 3rd preset instructions be the 3rd display direction, be specially: according to described 3rd preset instructions, obtain the 3rd default idsplay order preserved, preset idsplay order by the described 3rd and be sent to the display properties that display screen arranges display screen.
When described audio frequency apparatus detects that the first page turning key is pressed and judges that current screen display direction is described 3rd display direction, obtain the display data in described display data before current display data and be saved to described display buffer district and show, return step T2;
When described audio frequency apparatus detects that the second page turning key is pressed and judges that current screen display direction is described 3rd display direction, obtain the display data in described display data after current display data and be saved to described display buffer district and show, return step T2.
Described step D3 also comprises: when judging that described display request type is the 4th display direction request, and described mobile device obtains inner 4th preset instructions of preserving, and described 4th preset instructions is sent to described audio frequency apparatus;
Described method also comprises: when receiving described 4th preset instructions, and it is the 4th display direction that described audio frequency apparatus upgrades current screen display direction according to described 4th preset instructions, returns success response, return step S1 to described mobile device.
It is described that to upgrade current screen display direction according to described 4th preset instructions be the 4th display direction, be specially: according to described 4th preset instructions, obtain the 4th default idsplay order preserved, preset idsplay order by the described 4th and be sent to the display properties that display screen arranges display screen.
When described audio frequency apparatus detects that the first page turning key is pressed and judges that current screen display direction is described 3rd display direction, obtain the display data in described display data after current display data and be saved to described display buffer district and show, return step T2;
When described audio frequency apparatus detects that the second page turning key is pressed and judges that current screen display direction is described 4th display direction, obtain the display data in described display data before current display data and be saved to described display buffer district and show, return step T2.
Display data in described acquisition described display data before current display data are also saved to described display buffer district and show, also comprise: described audio frequency apparatus judges whether show data in addition before current display data in described display data before, if, then reportedly give described display screen by the display before current display data in described display buffer district, otherwise return step T2.
Display data in described acquisition described display data after current display data are also saved to described display buffer district and show, also comprise: described audio frequency apparatus judges whether show data in addition after current display data in described display data before, if, then reportedly give described display screen by the display after current display data in described display buffer district, otherwise return step T2.
It is described that to upgrade current screen display direction according to described first preset instructions be the first display direction, be specially: according to described first preset instructions, obtain the first default idsplay order preserved, preset idsplay order by described first and be sent to the display properties that display screen arranges display screen, and to upgrade current screen display direction be the first display direction.
It is described that to upgrade current screen display direction according to described second preset instructions be the second display direction, be specially: according to described second preset instructions, obtain the second default idsplay order preserved, preset idsplay order by described second and be sent to the display properties that display screen arranges display screen, and to upgrade current screen display direction be the second display direction.
Describedly receive the first preset instructions and described renewal current screen display direction is also comprise between the first display direction: described audio frequency apparatus obtains and judges current screen display direction, if the first display direction, then return to host computer and do not need the response of adjustment screen, return step S1, otherwise continue;
Describedly receive the second preset instructions and described renewal current screen display direction is also comprise between the second display direction: described audio frequency apparatus obtains and judges current screen display direction, if the second display direction, then return to host computer and do not need the response of adjustment screen, return step S1, otherwise continue.
In described step S1, described signature command, specifically comprises instruction to be resolved and instruction to be signed;
When receiving instruction to be resolved, perform following operation:
Step G1: described audio frequency apparatus obtains the message in described instruction to be resolved, application preset algorithm carries out Hash calculation to described message, Hash result is kept in default memory block;
Step G2: described audio frequency apparatus is resolved described message, obtains showing data, and returns success response to described mobile device, return step S1;
When receiving instruction to be signed, perform following operation:
Step H1: after described audio frequency apparatus receives signature command, obtains current display data from described display data, current display data is saved to display buffer district and shows, and performs step T2;
Describedly detect that acknowledgement key is pressed, perform signature operation, success response is returned to described mobile device, return step S1, concrete operations are: from described default memory block, obtain Hash result, sign to described Hash result, obtain result of signing, return the success response comprising described signature result to described mobile device, return step S1.
When receiving the confirmation key and pressing, also comprise:
Described audio frequency apparatus prompting is the need of execution signature operation, and wait-receiving mode button operation, when receiving the confirmation key and again pressing, perform signature operation, return confirmation response to described mobile device, return step S1, when receiving cancel key and pressing, empty described display buffer district, return failure response to described mobile device, return step S1.
Described return failure response to described mobile device before, also comprise: display suppression signing messages.
The beneficial effect that the present invention obtains is: adopt technical method of the present invention, can realize the mobile device of different audio port position is used during same audio frequency apparatus and audio frequency apparatus displaying contents can be carried out corresponding upset, reach the object meeting user's use habit, Consumer's Experience is better.
Accompanying drawing explanation
In order to the clearer explanation embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the method for work process flow diagram that a kind of audio frequency apparatus that the embodiment of the present invention 1 provides adapts to mobile device in the method for different mobile device audio port position;
Fig. 2 is the embodiment of the present invention 1 sound intermediate frequency equipment display direction schematic diagram;
Fig. 3 is the method for work process flow diagram that another kind of audio frequency apparatus that the embodiment of the present invention 2 provides adapts to mobile device in the method for different mobile device audio port position;
Fig. 4 is the embodiment of the present invention 2 sound intermediate frequency equipment display direction schematic diagram;
Fig. 5 and Fig. 6 is the method for work process flow diagram that a kind of audio frequency apparatus that the embodiment of the present invention 3 provides adapts to the method sound intermediate frequency equipment of different mobile device audio port position;
Fig. 7 is the concrete operations process flow diagram that the operation of instruction to be resolved in the embodiment of the present invention 3 and instruction to be signed is realized by a signature command.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
In the present embodiment, first display direction and the second display direction, by receive obtain screen display status command return response, judge the director data needing to send, also can be triggered by the set direction receiving user, the 3rd display direction and the 4th display direction are triggered by the set direction receiving user.
In the present invention, mobile device application program and audio frequency apparatus consult the instruction of needs in advance, consult screen upset instruction between audio frequency apparatus and the display screen of audio frequency apparatus in advance.
Embodiment 1
The embodiment of the present invention 1 provides a kind of method that audio frequency apparatus adapts to different mobile device audio port position, as shown in Figure 1, when mobile device and audio frequency apparatus connect, namely when audio frequency apparatus inserts in the audio port of mobile device, audio frequency apparatus is started shooting, mobile device starts mobile device application program, and mobile device application program performs following operation:
Step 101: after mobile device application program receives the flip request of user, obtains inner acquisition screen display direction instruction of preserving;
Step 102: the direction instruction of acquisition screen display is sent to audio frequency apparatus by mobile device application program;
Such as, the acquisition screen display direction instruction that mobile device application program gets is 80FA25010001;
Step 103: audio frequency apparatus, according to the acquisition screen display direction instruction received, obtains current screen display direction, according to the display response of generation direction, current screen display direction;
Step 104: direction is shown response and sends to mobile device by audio frequency apparatus;
Step 105: mobile device application program is resolved the direction display response received, and obtains current screen display direction;
Step 106: mobile device application program judges current screen display direction, if the first display direction, then performs step 107, if the second display direction, then performs step 109;
As shown in Figure 2, wherein, 2-1 is audio frequency apparatus, 2-101 is the audio head of audio frequency apparatus, 2-102 is display screen, and 2-103 is display data, and identifying current display direction is the first display direction, 2-104 is display data, identifying current display direction is the second display direction, and 2-105 is cancel key, and 2-106 is the first page turning key, 2-107 is the second page turning key, and 2-108 is acknowledgement key;
Step 107: mobile device application program obtains inner first preset instructions of preserving;
In the present embodiment, if current screen display direction is the first display direction, namely relative to audio frequency apparatus be positive screen display show time, mobile device application program sends the first preset instructions, and namely sending relative to audio frequency apparatus is the instruction that anti-screen display is shown;
Such as, the first preset instructions that mobile device application program gets is 80fc 25 00 00;
Step 108: the first preset instructions is sent to audio frequency apparatus by mobile device application program, and mobile device operation terminates;
Step 109: mobile device application program obtains inner second preset instructions of preserving;
Such as, mobile device obtains inner second preset instructions of preserving is 80fc250001;
Step 110: the second preset instructions is sent to audio frequency apparatus by mobile device application program, and mobile device operation terminates.
Embodiment 2
The embodiment of the present invention 2 provides the method for work that a kind of audio frequency apparatus adapts to mobile device in the method for different mobile device audio port position, as shown in Figure 3, when mobile device and audio frequency apparatus connect, namely when audio frequency apparatus inserts in the audio port of mobile device, audio frequency apparatus is started shooting, mobile device starts mobile device application program, and mobile device application program performs following operation:
Step 201: mobile device application program wait-receiving mode is to the display request of user;
Step 202: mobile device application program judges the display request type of the user received, if the first display direction request, then perform step 203, if the second display direction request, then perform step 205, if the 3rd display direction request, then perform step 207, if the 4th display direction request, then perform step 209;
As shown in Figure 4, wherein, 4-1 is audio frequency apparatus, 4-101 is the audio head of audio frequency apparatus, 4-102 is display screen, and 4-103 is display data, and being designated current screen display direction is the first display direction, 4-104 is display data, being designated current screen display direction is the second display direction, and 4-105 is display data, and being designated current screen display direction is the 3rd display direction, 4-106 is display data, being designated current screen display direction is the 4th display direction, and 4-107 is cancel key, and 4-108 is the first page turning key, 4-109 is the second page turning key, and 4-110 is acknowledgement key;
Step 203: mobile device application program obtains inner second preset instructions of preserving;
Such as, mobile device obtains inner second preset instructions of preserving is 80fc250001;
Step 204: the second preset instructions is sent to audio frequency apparatus by mobile device application program, and mobile device operation terminates;
Step 205: mobile device application program obtains inner first preset instructions of preserving;
Such as, mobile device application program obtains inner first preset instructions of preserving is 80fc250000;
Step 206: the first preset instructions is sent to audio frequency apparatus by mobile device application program, and mobile device operation terminates;
Step 207: mobile device application program obtains inner 3rd preset instructions of preserving;
Such as, mobile device application program obtains inner 3rd preset instructions of preserving is 80fc250002;
Step 208: the 3rd preset instructions is sent to audio frequency apparatus by mobile device application program, and mobile device operation terminates;
Step 209: mobile device application program obtains inner 4th preset instructions of preserving;
Such as, mobile device obtains inner 4th preset instructions of preserving is 80fc250003;
Step 210: the 4th preset instructions is sent to audio frequency apparatus by mobile device application program, and mobile device operation terminates.
Embodiment 3
The embodiment of the present invention 3 provides the method for work that a kind of audio frequency apparatus adapts to the method sound intermediate frequency equipment of different mobile device audio port position, as shown in Figure 5 and Figure 6, when mobile device and audio frequency apparatus connect, namely, when audio frequency apparatus inserts in the earpiece holes of mobile device, audio frequency apparatus performs following operation:
Step 301: audio frequency apparatus power-up initializing;
Step 302: the instruction that audio frequency apparatus wait-receiving mode mobile device sends;
Step 303: after audio frequency apparatus receives the instruction of mobile device transmission, decision instruction type, if the first preset instructions, then perform step 304, if the second preset instructions, then perform step 308, if the 3rd preset instructions, then perform step 312, if the 4th preset instructions, then perform step 316, if instruction to be resolved, then perform step 320, if instruction to be signed, then perform step 323;
Preferably, audio frequency apparatus is according to the 5th byte decision instruction type of the instruction received, if the 5th byte is 01, being then the first preset instructions, if the 5th byte is 00, is then the second preset instructions, if the 5th byte is 02, being then the 3rd preset instructions, if the 5th byte is 03, is then the 4th preset instructions;
Step 304: the first preset instructions resolved by audio frequency apparatus, judges that whether the first preset instructions received is correct, if so, then performs step 305, otherwise send instruction errors response to mobile device, return step 302;
Preferably, audio frequency apparatus judges whether front four bytes of the instruction received are 80fc2500, and if so, then instruction is correct, ELSE instruction mistake;
Such as, the first preset instructions that audio frequency apparatus receives is 80fc250000;
Step 305: audio frequency apparatus obtains current screen display direction, judges whether current screen display direction is the first display direction, if so, then returns to mobile device and does not need the response of adjustment screen, return step 302, otherwise perform step 306;
Step 306: audio frequency apparatus, according to the first preset instructions received, obtains the first default idsplay order preserved in audio frequency apparatus memory block, sends to display screen to arrange display properties this first default idsplay order;
In the present embodiment, the default idsplay order in the screen display direction adjusting display screen of making an appointment between the chip operating system of audio frequency apparatus and display screen, the first default idsplay order that audio frequency apparatus gets is 0x2f, 0x22,0x81,0x3f, 0xa2,0xa1,0xc8,0x10,0x00,0xb0,0xaf, 0xa6;
Step 307: it is the first display direction that audio frequency apparatus upgrades current screen display direction, and send screen adjustment success response to mobile device, return step 302;
Step 308: the second preset instructions resolved by audio frequency apparatus, judges that whether the second preset instructions received is correct, if so, then performs step 309, otherwise send instruction errors response to mobile device, return step 302;
Step 309: audio frequency apparatus obtains current screen display direction, judges whether current screen display direction is the second display direction, if so, then returns to mobile device and does not need the response of adjustment screen, return step 302, otherwise perform step 310;
Step 310: audio frequency apparatus, according to the second preset instructions received, obtains the second default idsplay order preserved in audio frequency apparatus memory block, sends to display screen to arrange display properties this second default idsplay order;
Step 311: it is the second display direction that audio frequency apparatus upgrades current screen display direction, and send screen adjustment success response to mobile device, return step 302;
Step 312: the 3rd preset instructions resolved by audio frequency apparatus, judges that whether the 3rd preset instructions received is correct, if so, then performs step 313, otherwise send instruction errors response to mobile device, return step 302;
Step 313: audio frequency apparatus obtains current screen display direction, judges whether current screen display direction is the 3rd display direction, if so, then returns to mobile device and does not need the response of adjustment screen, return step 302, otherwise perform step 314;
Step 314: audio frequency apparatus, according to the 3rd preset instructions received, obtains the 3rd default idsplay order preserved in audio frequency apparatus memory block, presets idsplay order send to display screen to arrange display properties by the 3rd;
Step 315: it is the 3rd display direction that audio frequency apparatus upgrades current screen display direction, and send screen adjustment success response to mobile device, return step 302;
Step 316: the 4th preset instructions resolved by audio frequency apparatus, judges that whether the 4th preset instructions received is correct, if so, then performs step 317, otherwise send instruction errors response to mobile device, return step 302;
Step 317: audio frequency apparatus obtains current screen display direction, judges whether current screen display direction is the 4th display direction, if so, then returns to mobile device and does not need the response of adjustment screen, return step 302, otherwise perform step 318;
Step 318: audio frequency apparatus, according to the 4th preset instructions received, obtains the 4th default idsplay order preserved in audio frequency apparatus memory block, presets idsplay order send to display screen to arrange display properties by the 4th;
Step 319: it is the 4th display direction that audio frequency apparatus upgrades current screen display direction, and send screen adjustment success response to mobile device, return step 302;
Step 320: instruction to be resolved resolved by audio frequency apparatus, judges that whether the instruction to be resolved received is correct, if so, then performs step 321, otherwise send instruction errors response to mobile device, return step 302;
Step 321: audio frequency apparatus obtains the message in instruction to be resolved, application preset algorithm carries out Hash calculation to the message in instruction, Hash result is kept in default memory block;
Step 322: audio frequency apparatus is resolved the message in instruction to be resolved, obtains display data and preserves, and returning success response to described mobile device, returning step 302;
Step 323: instruction to be signed resolved by audio frequency apparatus, judges that whether the instruction to be signed received is correct, if so, then performs step 324, otherwise send instruction errors response to mobile device, return step 302;
Step 324: audio frequency apparatus obtains the current display data in the display data of preserving, and is saved to by current display data in display buffer district, shows according to display properties;
Step 325: audio frequency apparatus detects key-press status, when receiving the first page turning key key and pressing, performs step 326, when receiving the second page turning key and pressing, perform step 331, when receiving the confirmation key and pressing, perform step 336, when receiving cancel key and pressing, perform step 338;
Step 326: audio frequency apparatus obtains and judges current screen display direction, if the first display direction or the 3rd display direction, then performs step 327, if the second display direction or the 4th display direction, then performs step 329;
Step 327: audio frequency apparatus judges whether show data in addition before current display data in the display data of preserving, if so, then performs step 328, otherwise returns step 325;
Step 328: the display data before current display data in display data are saved in display buffer district by audio frequency apparatus, show, return step 325 according to display properties;
Step 329: audio frequency apparatus judges whether show data in addition after current display data in the display data of preserving, if so, then performs step 330, otherwise returns step 325;
Step 330: the display data after current display data in display data are saved in display buffer district by audio frequency apparatus, show, return step 325 according to display properties;
Step 331: audio frequency apparatus obtains and judges current screen display direction, if the first display direction or the 3rd display direction, then performs step 332, if the second display direction or the 4th display direction, then performs step 334;
Step 332: audio frequency apparatus judges whether show data in addition after current display data in the display data of preserving, if so, then performs step 333, otherwise returns step 325;
Step 333: the display data after current display data in display data are saved in display buffer district by audio frequency apparatus, show, return step 325 according to display properties;
Step 334: audio frequency apparatus judges whether show data in addition after current display data in the display data of preserving, if so, then performs step 335, otherwise returns step 325;
Step 335: the display data after current display data in display data are saved in display buffer district by audio frequency apparatus, show, return step 325 according to display properties;
Step 336: audio frequency apparatus prompting is the need of execution signature operation, and wait-receiving mode button operation, if what receive is that acknowledgement key is pressed again, then performs step 337, if what receive is that cancel key is pressed, then performs step 338;
Step 337: audio frequency apparatus obtains Hash result from default memory block, and signs to Hash result, obtains result of signing, and returns the signature success response comprising signature result, return step 302 to mobile device;
Step 338: the Hash result preset in memory block deleted by audio frequency apparatus, and returns signature failure response to mobile device, returns step 302;
This step also comprises: signing messages is cancelled in prompting;
See Fig. 7, in the present embodiment, the operation of instruction to be resolved and instruction to be signed can be realized by an instruction (i.e. signature command), when audio frequency apparatus receives signature command, performs following operation:
Step 11: audio frequency apparatus obtains message from signature command, application preset algorithm carries out Hash calculation to message, obtains Hash result and preserves;
Step 12: signature command resolved by audio frequency apparatus, obtains showing data, obtains current display data, current display data is saved to display buffer district and shows from display data;
Step 13: audio frequency apparatus detects key-press status, if detect that the first page turning key is pressed, then performs step 14, if detect that the second page turning key is pressed, then perform step 17, if detect that acknowledgement key is pressed, then perform step 20, if detect that cancel key is pressed, then perform step 21
Step 14: the current screen display direction of audio frequency apparatus, if the first display direction or the 3rd display direction, then performs step 15, if the second display direction or the 4th display direction, then performs step 16;
Step 15: acquisition shows the display data in data before current display data and is saved to described display buffer district and shows, and returns step 13;
Also comprise before this step: judge whether show data in addition before current display data in the display data of preserving, if so, then perform step 15, otherwise return step 13;
Step 16: obtain the display data in described display data after current display data and be saved to described display buffer district and show, returns step 13;
Also comprise before this step: judge whether show data in addition after current display data in the display data of preserving, if so, then perform step 16, otherwise return step 13;
Step 17: judge current screen display direction, if the first display direction or the 3rd display direction, then performs step 18, if the second display direction or the 4th display direction, then performs step 19;
Step 18: obtain the display data in described display data after current display data and be saved to described display buffer district and show, returns step 13;
Also comprise before this step: judge whether show data in addition after current display data in the display data of preserving, if so, then perform step 18, otherwise return step 13;
Step 19: obtain the display data in described display data before current display data and be saved to described display buffer district and show, returns step 13;
Also comprise before this step: judge whether show data in addition before current display data in the display data of preserving, if so, then perform step 19, otherwise return step 13;
Step 20: sign to the described Hash result of preserving, obtains result of signing, returns the success response comprising described signature result, return step 302 to described mobile device;
Also comprise before this step: point out the need of execution signature operation, and wait-receiving mode button operation, presses if receive the confirmation key, then perform step 20, if what receive is that cancel key is pressed, then perform step 21;
Step 21: delete the Hash result of preserving, display suppression signing messages, returns signature failure response to mobile device, return step 302.
In the present invention, also the object meeting user's use habit can be reached by the upset arranging mobile device screen, concrete operations are: if when mobile device receives the selection that user overturns mobile device screen, the transformation matrices of the view properties at mobile device interface is set, makes view rotate respective angles (90 degree or 180 degree).
The above; be only the present invention's preferably embodiment, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in technical scope disclosed by the invention; the change that can expect easily or replacement, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of claim.

Claims (19)

1. audio frequency apparatus adapts to a method for different mobile device audio port position, it is characterized in that, comprising: audio frequency apparatus power-up initializing, performs following operation:
Step S1: the instruction that described audio frequency apparatus wait-receiving mode mobile device sends;
When receiving the first preset instructions, upgrading current screen display direction according to described first preset instructions is the first display direction, returns success response, return step S1 to described mobile device;
When receiving the second preset instructions, upgrading current screen display direction according to described second preset instructions is the second display direction, returns success response, return step S1 to described mobile device;
When receiving signature command, perform following operation:
Step T1: described signature command resolved by described audio frequency apparatus, obtains showing data, obtains current display data, current display data is saved to display buffer district and shows from described display data;
Step T2: described audio frequency apparatus detects key-press status;
When detecting that the first page turning key is pressed, judge described current screen display direction, if described first display direction, then obtain the display data in described display data before current display data and be saved to described display buffer district and show, return step T2, if described second display direction, then obtain the display data in described display data after current display data and be saved to described display buffer district and show, return step T2;
When detecting that the second page turning key is pressed, judge described current screen display direction, if described first display direction, then obtain the display data in described display data after current display data and be saved to described display buffer district and show, return step T2, if described second display direction, then obtain the display data in described display data before current display data and be saved to described display buffer district and show, return step T2;
When detecting that acknowledgement key is pressed, performing signature operation, returning success response to described mobile device, return step S1;
When detecting that cancel key is pressed, then return failure response to described mobile device, return step S1.
2. method according to claim 1, is characterized in that, also comprises: when receiving acquisition screen display direction instruction, performs following operation:
Steps A 1: described audio frequency apparatus, according to the acquisition screen display direction instruction received, obtains current screen display direction, according to the display response of generation direction, described current screen display direction;
Steps A 2: the display response of described direction is sent to described mobile device by described audio frequency apparatus, returns step S1.
3. method according to claim 2, is characterized in that, also comprises before described step S1:
Step B1: described mobile device application program launching;
Step B2: after described mobile device application program receives the flip request of user, obtains inner described acquisition screen display direction instruction of preserving;
Step B3: described acquisition screen display direction instruction is sent to described audio frequency apparatus by described mobile device application program.
4. method according to claim 3, is characterized in that, after described steps A 2, also comprises:
Step C1: described mobile device application program is resolved the described direction display response received, and obtains described current screen display direction;
Step C2: described mobile device application program judges described current screen display direction, if described first display direction, then performs step C3, if described second display direction, then performs step C4;
Step C3: described mobile device application program obtains inner described first preset instructions of preserving, and described first preset instructions is sent to described audio frequency apparatus;
Step C4: described mobile device application program obtains inner described second preset instructions of preserving, and described second preset instructions is sent to described audio frequency apparatus.
5. method according to claim 1, is characterized in that, also comprises before described step S1:
Step D1: described mobile device starts mobile device application program;
Step D2: the display request of described mobile device application program wait-receiving mode user;
Step D3: after described mobile device application program receives the display request of user, judges described display request type, if the first display direction request, then performs step D4, if the second display direction request, then performs step D5;
Step D4: described mobile device application program obtains inner second preset instructions of preserving, and described second preset instructions is sent to described audio frequency apparatus;
Step D5: described mobile device application program obtains inner first preset instructions of preserving, and described first preset instructions is sent to described audio frequency apparatus.
6. method according to claim 5, it is characterized in that, described step D3 also comprises: when judging that described display request type is the 3rd display direction request, described mobile device application program obtains inner 3rd preset instructions of preserving, and described 3rd preset instructions is sent to described audio frequency apparatus;
Described method also comprises: when receiving described 3rd preset instructions, and it is the 3rd display direction that described audio frequency apparatus upgrades current screen display direction according to described 3rd preset instructions, returns success response, return step S1 to described mobile device.
7. method according to claim 6, it is characterized in that, it is described that to upgrade current screen display direction according to described 3rd preset instructions be the 3rd display direction, be specially: according to described 3rd preset instructions, obtain the 3rd default idsplay order preserved, preset idsplay order by the described 3rd and be sent to the display properties that display screen arranges display screen.
8. method according to claim 6, is characterized in that,
When described audio frequency apparatus detects that the first page turning key is pressed and judges that current screen display direction is described 3rd display direction, obtain the display data in described display data before current display data and be saved to described display buffer district and show, return step T2;
When described audio frequency apparatus detects that the second page turning key is pressed and judges that current screen display direction is described 3rd display direction, obtain the display data in described display data after current display data and be saved to described display buffer district and show, return step T2.
9. method according to claim 5, it is characterized in that, described step D3 also comprises: when judging that described display request type is the 4th display direction request, described mobile device application program obtains inner 4th preset instructions of preserving, and described 4th preset instructions is sent to described audio frequency apparatus;
Described method also comprises: when receiving described 4th preset instructions, and it is the 4th display direction that described audio frequency apparatus upgrades current screen display direction according to described 4th preset instructions, returns success response, return step S1 to described mobile device.
10. method according to claim 9, it is characterized in that, it is described that to upgrade current screen display direction according to described 4th preset instructions be the 4th display direction, be specially: according to described 4th preset instructions, obtain the 4th default idsplay order preserved, preset idsplay order by the described 4th and be sent to the display properties that display screen arranges display screen.
11. methods according to claim 9, is characterized in that,
When described audio frequency apparatus detects that the first page turning key is pressed and judges that current screen display direction is described 3rd display direction, obtain the display data in described display data after current display data and be saved to described display buffer district and show, return step T2;
When described audio frequency apparatus detects that the second page turning key is pressed and judges that current screen display direction is described 4th display direction, obtain the display data in described display data before current display data and be saved to described display buffer district and show, return step T2.
12., according to the method in claim 1 or 8 or 11 described in any one, is characterized in that,
Display data in described acquisition described display data before current display data are also saved to described display buffer district and show, also comprise: described audio frequency apparatus judges whether show data in addition before current display data in described display data before, if, then reportedly give described display screen by the display before current display data in described display buffer district, otherwise return step T2.
13., according to the method in claim 1 or 8 or 11 described in any one, is characterized in that,
Display data in described acquisition described display data after current display data are also saved to described display buffer district and show, also comprise: described audio frequency apparatus judges whether show data in addition after current display data in described display data before, if, then reportedly give described display screen by the display after current display data in described display buffer district, otherwise return step T2.
14. according to the method in claim 1 or 4 or 5 described in any one, it is characterized in that, it is described that to upgrade current screen display direction according to described first preset instructions be the first display direction, be specially: according to described first preset instructions, obtain the first default idsplay order preserved, preset idsplay order by described first and be sent to the display properties that display screen arranges display screen, and to upgrade current screen display direction be the first display direction.
15. according to the method in claim 1 or 4 or 5 described in any one, it is characterized in that, it is described that to upgrade current screen display direction according to described second preset instructions be the second display direction, be specially: according to described second preset instructions, obtain the second default idsplay order preserved, preset idsplay order by described second and be sent to the display properties that display screen arranges display screen, and to upgrade current screen display direction be the second display direction.
16. methods according to claim 1, is characterized in that,
Describedly receive the first preset instructions and described renewal current screen display direction is also comprise between the first display direction: described audio frequency apparatus obtains and judges current screen display direction, if the first display direction, then return to host computer and do not need the response of adjustment screen, return step S1, otherwise continue;
Describedly receive the second preset instructions and described renewal current screen display direction is also comprise between the second display direction: described audio frequency apparatus obtains and judges current screen display direction, if the second display direction, then return to host computer and do not need the response of adjustment screen, return step S1, otherwise continue.
17. methods according to claim 1, is characterized in that, in described step S1, described signature command, specifically comprises instruction to be resolved and instruction to be signed;
When receiving instruction to be resolved, perform following operation:
Step G1: described audio frequency apparatus obtains the message in described instruction to be resolved, application preset algorithm carries out Hash calculation to described message, Hash result is kept in default memory block;
Step G2: described audio frequency apparatus is resolved described message, obtains showing data, and returns success response to described mobile device, return step S1;
When receiving instruction to be signed, perform following operation:
Step H1: after described audio frequency apparatus receives signature command, obtains current display data from described display data, current display data is saved to display buffer district and shows, and performs step T2;
Describedly detect that acknowledgement key is pressed, perform signature operation, success response is returned to described mobile device, return step S1, concrete operations are: from described default memory block, obtain Hash result, sign to described Hash result, obtain result of signing, return the success response comprising described signature result to described mobile device, return step S1.
18. methods according to claim 1, is characterized in that, when receiving the confirmation key and pressing, also comprise:
Described audio frequency apparatus prompting is the need of execution signature operation, and wait-receiving mode button operation, when receiving the confirmation key and again pressing, perform signature operation, return confirmation response to described mobile device, return step S1, when receiving cancel key and pressing, empty described display buffer district, return failure response to described mobile device, return step S1.
19. methods according to claim 1, is characterized in that, described return failure response to described mobile device before, also comprise: display suppression signing messages.
CN201410806463.7A 2014-12-22 2014-12-22 A kind of method that audio frequency apparatus adapts to different mobile device audio port positions Active CN104536712B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201410806463.7A CN104536712B (en) 2014-12-22 2014-12-22 A kind of method that audio frequency apparatus adapts to different mobile device audio port positions
CN201510828962.0A CN105260157B (en) 2014-12-22 2015-11-25 A kind of working method and device of gravity sensing intelligent key apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410806463.7A CN104536712B (en) 2014-12-22 2014-12-22 A kind of method that audio frequency apparatus adapts to different mobile device audio port positions

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN201510828962.0A Division CN105260157B (en) 2014-12-22 2015-11-25 A kind of working method and device of gravity sensing intelligent key apparatus

Publications (2)

Publication Number Publication Date
CN104536712A true CN104536712A (en) 2015-04-22
CN104536712B CN104536712B (en) 2017-11-28

Family

ID=52852246

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201410806463.7A Active CN104536712B (en) 2014-12-22 2014-12-22 A kind of method that audio frequency apparatus adapts to different mobile device audio port positions
CN201510828962.0A Active CN105260157B (en) 2014-12-22 2015-11-25 A kind of working method and device of gravity sensing intelligent key apparatus

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201510828962.0A Active CN105260157B (en) 2014-12-22 2015-11-25 A kind of working method and device of gravity sensing intelligent key apparatus

Country Status (1)

Country Link
CN (2) CN104536712B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105488380A (en) * 2015-12-31 2016-04-13 北京华大智宝电子系统有限公司 Electronic signature device with rotating-type audio adaptor
CN107797718A (en) * 2016-09-06 2018-03-13 中兴通讯股份有限公司 The method of adjustment and device in screen display direction

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103235911A (en) * 2013-04-27 2013-08-07 飞天诚信科技股份有限公司 Signature method
US20130300697A1 (en) * 2012-05-14 2013-11-14 Samsung Electronics Co. Ltd. Method and apparatus for operating functions of portable terminal having bended display
CN103731274A (en) * 2014-01-20 2014-04-16 飞天诚信科技股份有限公司 Method for recognizing audio device
US20140317530A1 (en) * 2013-04-19 2014-10-23 Samsung Electronics Co., Ltd. Method and device for receiving input

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4574491B2 (en) * 2005-08-15 2010-11-04 キヤノン株式会社 Information processing apparatus, control method therefor, and program
CN102012774A (en) * 2009-09-08 2011-04-13 中兴通讯股份有限公司 Page turning method, device and terminal for terminal reading contents
CN102541404B (en) * 2010-12-22 2013-09-18 安徽康佳同创电器有限公司 Display control method and device for mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130300697A1 (en) * 2012-05-14 2013-11-14 Samsung Electronics Co. Ltd. Method and apparatus for operating functions of portable terminal having bended display
US20140317530A1 (en) * 2013-04-19 2014-10-23 Samsung Electronics Co., Ltd. Method and device for receiving input
CN103235911A (en) * 2013-04-27 2013-08-07 飞天诚信科技股份有限公司 Signature method
CN103731274A (en) * 2014-01-20 2014-04-16 飞天诚信科技股份有限公司 Method for recognizing audio device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105488380A (en) * 2015-12-31 2016-04-13 北京华大智宝电子系统有限公司 Electronic signature device with rotating-type audio adaptor
CN107797718A (en) * 2016-09-06 2018-03-13 中兴通讯股份有限公司 The method of adjustment and device in screen display direction

Also Published As

Publication number Publication date
CN105260157A8 (en) 2018-06-26
CN105260157B (en) 2018-10-12
CN104536712B (en) 2017-11-28
CN105260157A (en) 2016-01-20

Similar Documents

Publication Publication Date Title
CN103699454B (en) Emergency processing method of broken touch screen of computer system and application of emergency processing method
US9632680B2 (en) Electronic device and method for controlling zooming of displayed object
CN110427385B (en) Block chain data updating method, related node and block chain
CN104536848A (en) Firmware recovery method, device and terminal
CN103761163A (en) Data loss preventing method and data loss preventing device
JP2015508623A5 (en)
CN104168327A (en) Method for automatically updating external device
GB2532299A (en) Over-the-air updates for BLE devices
WO2019076293A1 (en) Differential upgrading method, device and system
CN104427105A (en) Data synchronism method, device, and terminal in dual system
CN104536712A (en) Method for audio device to adapt to different positions of audio interfaces of mobile devices
US10419608B2 (en) Call forwarding method, terminal, and portable electronic device
CN104951329A (en) Configuration and startup method of application templates and mobile terminal
CN103235703B (en) Preset resource storage method and apparatus
CN111522575A (en) Application program upgrading method and electronic equipment
CN102799373B (en) Electronic equipment, the method generating input area and terminal device
KR102009258B1 (en) Fingerprint event processing method, device, and terminal
CN103902377A (en) Terminal device and operating state synchronization method of terminal device
JP2017143327A (en) Control apparatus and address setting system
CN103092635B (en) Method of operating and electronic equipment
CN103888283A (en) SCTP communication method and device
CN106303931A (en) A kind of data transmission method based on NFC and terminal
CN104461668A (en) User program upgrading method and system based on LWIP protocol stack
CN105391810B (en) Terminal equipment interface device
EP2012492A1 (en) Communication system, IPsec tunnel termination device, and IPsec tunnel communication continuation method used for them

Legal Events

Date Code Title Description
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant