CN113407041B - Moss code input method and portable electronic device thereof - Google Patents

Moss code input method and portable electronic device thereof Download PDF

Info

Publication number
CN113407041B
CN113407041B CN202110547994.9A CN202110547994A CN113407041B CN 113407041 B CN113407041 B CN 113407041B CN 202110547994 A CN202110547994 A CN 202110547994A CN 113407041 B CN113407041 B CN 113407041B
Authority
CN
China
Prior art keywords
touch event
touch
duration
kth
morse code
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.)
Active
Application number
CN202110547994.9A
Other languages
Chinese (zh)
Other versions
CN113407041A (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.)
Mitac Computer Kunshan Co Ltd
Getac Technology Corp
Original Assignee
Mitac Computer Kunshan Co Ltd
Getac Technology Corp
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 Mitac Computer Kunshan Co Ltd, Getac Technology Corp filed Critical Mitac Computer Kunshan Co Ltd
Priority to CN202110547994.9A priority Critical patent/CN113407041B/en
Publication of CN113407041A publication Critical patent/CN113407041A/en
Application granted granted Critical
Publication of CN113407041B publication Critical patent/CN113407041B/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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • G06F3/0233Character input methods
    • 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/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0414Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means using force sensing means to determine a position
    • 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
    • G06F3/0488Interaction 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 using a touch-screen or digitiser, e.g. input of commands through traced gestures

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • Input From Keyboards Or The Like (AREA)

Abstract

The application provides a Morse code input method and a portable electronic device thereof, wherein the Morse code input method is executed in the portable electronic device, the portable electronic device comprises a processing circuit and a touch screen, the Morse code input method comprises the following steps that the touch screen sequentially senses a plurality of touch events, the processing circuit records and compares the duration of each touch event, and when the duration of the kth touch event is greater than or equal to N times of the duration of the (k-1) th touch event and the kth touch event is not the last of the sequences of the touch events, the processing circuit judges the ith touch event to the (k-1) th touch event to be respectively input as Morse code short symbols, wherein N is a positive integer, k and i are positive integers, k is greater than or equal to i, and the ith touch event is the earliest of the sequences of the touch events which are not judged to be input as Morse code long symbols or Morse code short symbols.

Description

Moss code input method and portable electronic device thereof
The application relates to a split application, the application number of the original application is 201810859762.5, the application date is 2018, 08 and 01, and the name of the application is a Morse code input method and a portable electronic device thereof.
Technical Field
The present invention relates to a Morse code (Morse code) input method and a portable electronic device thereof, and more particularly, to a Morse code input method and a portable electronic device thereof capable of determining whether a Morse code short symbol or a Morse code long symbol is input according to a relative time difference on a touch screen.
Background
Although there are some methods for outputting a morse code, such as by flashing lights, sounds or vibration, the method for inputting a morse code generally relies on pressing a keyboard to input the character to be transmitted and then converting the character to a corresponding morse code. Therefore, in the conventional manner, the user still needs to look at the screen and the keyboard of the portable electronic device when he/she wants to input the morse code through the portable electronic device in critical situations, so that the confidentiality and convenience are not improved.
However, even some prior arts have judged that the input is a morse code short symbol or a morse code long symbol by utilizing a time difference in pressing a touch key. For example, if the duration of pressing the touch key is between 0.08 seconds and 0.12 seconds, determining that the input is a morse code short symbol; if the duration of pressing the touch key is between 0.28 seconds and 0.32 seconds, determining that the input is a Morse code long symbol. However, in critical situations, the user often cannot easily perform the timing function, so that the above-mentioned prior art cannot provide more intuitive operation convenience.
Disclosure of Invention
In view of the above, the present invention provides a method for determining whether a code short symbol or a code long symbol is inputted according to a relative time difference on a touch screen, and a portable electronic device thereof.
In order to achieve the above objective, an embodiment of the present invention provides a morse code input method, which is executed in a portable electronic device. The portable electronic device comprises a processing circuit and a touch screen, and the Morse code input method comprises the following steps. Firstly, the touch screen is enabled to sense a plurality of touch events in sequence, and the processing circuit is enabled to record and compare the duration time of each touch event. When the duration of the kth one of the touch events is greater than or equal to N times the duration of the (k-1) th touch event and the kth one of the touch events is not the last one of the sequences of the touch events, the processing circuit is caused to input the ith to (k-1) th touch event decisions as a Moss code short symbol, respectively. In contrast, when the duration of the kth touch event is less than or equal to M times the duration of the (k-1) th touch event and the kth touch event is not the last of the sequences of the touch events, the processing circuit is caused to input the ith to (k-1) th touch event decisions as a Morse code length, respectively. Wherein N and M are positive numbers, k and i are positive integers, and k is equal to or greater than i, and the ith touch event is the earliest ordered one of the touch events which are not judged to be inputted as a morse code long symbol or a morse code short symbol.
Further, the method further comprises the following steps:
when the duration of the kth touch event is greater than or equal to N times the duration of the (k-1) th touch event and the kth touch event is the last of the ordering of the touch events, then causing the processing circuitry to input the ith to (k-1) th touch event decisions as the morse code shortsymbol, respectively, and the kth touch event decision as the morse code longsymbol; and
when the duration of the kth touch event is less than or equal to M times the duration of the (k-1) th touch event and the kth touch event is the last of the sequences of the touch events, then causing the processing circuitry to input the ith to (k-1) th touch event decisions as the moles, respectively
A morse code long symbol, and inputting the kth touch event decision as the morse code short symbol.
Further, the method further comprises the following steps:
when the duration of the kth touch event is not greater than or equal to N times the duration of the (k-1) th touch event and not less than or equal to M times the duration of the (k-1) th touch event, the processing circuitry is caused to input the ith to the kth touch event as the Moss code long symbol or the Moss code short symbol, respectively, opposite to the input of the (i-1) th touch event when the kth touch event is the last of the sequences of the touch events.
Further, the portable electronic device includes a transmission circuit, and the morse code input method further includes:
the transmission circuit transmits the Moss code long symbol or the Moss code short symbol which are judged and input in sequence to a remote host and/or a cloud server in a wireless mode.
Further, the step of causing the processing circuit to record and compare the duration of each of the touch events further includes causing the processing circuit to record and compare an interval time between each of the touch events, and when the interval time between the (k-1) th touch event and the kth touch event is greater than or equal to a predetermined threshold value, causing the processing circuit to determine and record the (k-1) th touch event as a character interrupt node.
In addition, the embodiment of the invention further provides a portable electronic device. The portable electronic device comprises a processing circuit, a touch screen and a storage device. The storage device stores an application program for instructing the portable electronic device to execute the morse code input method of the foregoing embodiment.
Further, the morse code input method further comprises:
when the duration of the kth touch event is greater than or equal to N times the duration of the (k-1) th touch event and the kth touch event is the last of the ordering of the touch events, then causing the processing circuitry to input the ith to (k-1) th touch event decisions as the morse code shortsymbol, respectively, and the kth touch event decision as the morse code longsymbol;
When the duration of the kth touch event is less than or equal to M times the duration of the (k-1) th touch event and the kth touch event is the last of the ordering of the touch events, then the processing circuitry is caused to input the ith to (k-1) th touch event decisions as the morse code length symbol, respectively, and the kth touch event decision as the morse code short symbol.
Further, the morse code input method further comprises:
when the duration of the kth touch event is not greater than or equal to N times the duration of the (k-1) th touch event and not less than or equal to M times the duration of the (k-1) th touch event, the processing circuitry is caused to input the ith to the kth touch event as the Moss code long symbol or the Moss code short symbol, respectively, opposite to the input of the (i-1) th touch event when the kth touch event is the last of the sequences of the touch events.
Further, the method further comprises a transmission circuit, and the Morse code input method further comprises:
the transmission circuit transmits the Moss code long symbol or the Moss code short symbol which are judged and input in sequence to a remote host and/or a cloud server in a wireless mode.
Further, the step of causing the processing circuit to record and compare the duration of each of the touch events further includes causing the processing circuit to record and compare an interval time between each of the touch events, and when the interval time between the (k-1) th touch event and the kth touch event is greater than or equal to a predetermined threshold value, causing the processing circuit to determine and record the (k-1) th touch event as a character interrupt node.
For a further understanding of the nature and the technical aspects of the present invention, reference should be made to the following detailed description of the invention and to the accompanying drawings, which are included to illustrate and not to limit the scope of the claims.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flow chart of a morse code input method according to an embodiment of the present invention.
Fig. 2 is a functional block diagram of a portable electronic device according to an embodiment of the invention.
Detailed Description
Hereinafter, the present invention will be described in detail by illustrating various embodiments of the present invention through drawings. This inventive concept may, however, be embodied in many different forms and should not be construed as limited to the exemplary embodiments set forth herein. Moreover, in the drawings, like reference numerals may be used to designate like elements.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures. Meanwhile, in the description of the present invention, the terms "first", "second", and the like are used only to distinguish the description, and are not to be construed as indicating or implying relative importance.
The invention discloses a Morse code input method, which is executed in a portable electronic device, wherein the portable electronic device comprises a processing circuit and a touch screen, and specifically comprises the following steps:
the touch screen is enabled to sense a plurality of touch events in sequence, and the processing circuit is enabled to record and compare the duration time of each touch event;
When the duration of the kth one of the touch events is greater than or equal to N times the duration of the (k-1) th touch event and the kth one of the touch events is not the last one of the touch events, causing the processing circuitry to input the ith to (k-1) th touch event decisions as a morse code short symbol, respectively;
when the duration of the kth touch event is less than or equal to M times the duration of the (k-1) th touch event and the kth touch event is not the last of the sequences of the touch events, causing the processing circuitry to input the ith to (k-1) th touch event decisions as a morse code length, respectively;
wherein N and M are positive numbers, k and i are positive integers, and k is equal to or greater than i, and the ith touch event is the earliest ordered one of the touch events that are not determined to be input as the morse code long symbol or the morse code short symbol.
Optionally, the method further comprises:
when the duration of the kth touch event is greater than or equal to N times the duration of the (k-1) th touch event and the kth touch event is the last of the ordering of the touch events, then causing the processing circuitry to input the ith to (k-1) th touch event decisions as the morse code shortsymbol, respectively, and the kth touch event decision as the morse code longsymbol; and
When the duration of the kth touch event is less than or equal to M times the duration of the (k-1) th touch event and the kth touch event is the last of the ordering of the touch events, then the processing circuitry is caused to input the ith to (k-1) th touch event decisions as the morse code length symbol, respectively, and the kth touch event decision as the morse code short symbol.
Optionally, the method further comprises:
when the duration of the kth touch event is not greater than or equal to N times the duration of the (k-1) th touch event and not less than or equal to M times the duration of the (k-1) th touch event, the processing circuitry is caused to input the ith to the kth touch event as the Moss code long symbol or the Moss code short symbol, respectively, opposite to the input of the (i-1) th touch event when the kth touch event is the last of the sequences of the touch events.
Optionally, the portable electronic device includes a transmission circuit, and the morse code input method further includes:
the transmission circuit transmits the Moss code long symbol or the Moss code short symbol which are judged and input in sequence to a remote host and/or a cloud server in a wireless mode.
Optionally, the step of causing the processing circuit to record and compare the duration of each of the touch events further includes causing the processing circuit to record and compare an interval time between each of the touch events, and when the interval time between the (k-1) th touch event and the kth touch event is greater than or equal to a predetermined threshold value, causing the processing circuit to determine and record the (k-1) th touch event as a character interrupt node.
The portable electronic device disclosed by the embodiment of the invention comprises:
a processing circuit;
a touch screen;
the storage device stores an application program for instructing the portable electronic device to execute a Morse code input method, wherein the Morse code input method comprises the following steps:
the touch screen is enabled to sense a plurality of touch events in sequence, and the processing circuit is enabled to record and compare the duration time of each touch event;
when the duration of the kth one of the touch events is greater than or equal to N times the duration of the (k-1) th touch event and the kth one of the touch events is not the last one of the touch events, causing the processing circuitry to input the ith to (k-1) th touch event decisions as a morse code short symbol, respectively;
When the duration of the kth touch event is less than or equal to M times the duration of the (k-1) th touch event and the kth touch event is not the last of the sequences of the touch events, causing the processing circuitry to input the ith to (k-1) th touch event decisions as a morse code length, respectively;
wherein N and M are natural numbers, k and i are positive integers, and k is equal to or greater than i, and the ith touch event is the earliest ordered one of the touch events that are not determined to be input as the morse code long symbol or the morse code short symbol.
Optionally, the morse code input method further includes:
when the duration of the kth touch event is greater than or equal to N times the duration of the (k-1) th touch event and the kth touch event is the last of the ordering of the touch events, then causing the processing circuitry to input the ith to (k-1) th touch event decisions as the morse code shortsymbol, respectively, and the kth touch event decision as the morse code longsymbol;
when the duration of the kth touch event is less than or equal to M times the duration of the (k-1) th touch event and the kth touch event is the last of the ordering of the touch events, then the processing circuitry is caused to input the ith to (k-1) th touch event decisions as the morse code length symbol, respectively, and the kth touch event decision as the morse code short symbol.
Optionally, the morse code input method further includes:
when the duration of the kth touch event is not greater than or equal to N times the duration of the (k-1) th touch event and not less than or equal to M times the duration of the (k-1) th touch event, the processing circuitry is caused to input the ith to the kth touch event as the Moss code long symbol or the Moss code short symbol, respectively, opposite to the input of the (i-1) th touch event when the kth touch event is the last of the sequences of the touch events.
Optionally, the transmission circuit is included, and the morse code input method further includes:
the transmission circuit transmits the Moss code long symbol or the Moss code short symbol which are judged and input in sequence to a remote host and/or a cloud server in a wireless mode.
Optionally, the step of causing the processing circuit to record and compare the duration of each of the touch events further includes causing the processing circuit to record and compare an interval time between each of the touch events, and when the interval time between the (k-1) th touch event and the kth touch event is greater than or equal to a predetermined threshold value, causing the processing circuit to determine and record the (k-1) th touch event as a character interrupt node.
First, referring to fig. 1 and fig. 2, fig. 1 is a flow chart of a morse code input method according to an embodiment of the invention, and fig. 2 is a functional block diagram of a portable electronic device according to an embodiment of the invention. It should be noted that the morse code input method of fig. 1 can be executed in the portable electronic device 10 of fig. 2, but the present invention is not limited to the specific implementation of the portable electronic device 10 of fig. 2, and one skilled in the art should be able to perform the related design of the portable electronic device 10 according to the actual needs or applications. As shown in fig. 2, the portable electronic device 10 mainly includes a processing circuit 110 and a touch screen 120, wherein the processing circuit 110 and the touch screen 120 may be implemented by pure hardware circuits or by hardware circuits in combination with firmware or software, and in summary, the invention is not limited to the specific implementation of the processing circuit 110 and the touch screen 120. In addition, the processing circuit 110 and the touch screen 120 may be integrated or separately disposed, but the invention is not limited thereto.
As known in the art, the Morse code input method of FIG. 1 may be implemented by an application program (not shown) having a plurality of instructions, in other words, not shown, and the application program is stored in the storage device 130 for instructing the portable electronic device 10 to execute the Morse code input method of FIG. 1. That is, when the portable electronic device 10 installs the application program, the portable electronic device 10 can start the Morse code input method. It should be noted that the present invention is not limited to the specific implementation of the application program installed in the portable electronic device 10 and the method for starting and executing the morse code input method of fig. 1, and those skilled in the art should be able to perform the related design according to the actual requirements or applications. In addition, the storage device 130 may be directly integrated into the portable electronic device 10, as shown in fig. 2, or separately disposed outside the portable electronic device 10, which is not limited to the specific implementation of the storage device 130.
More specifically, after the portable electronic device 10 starts executing the morse code input method of fig. 1, as shown in fig. 1, in step S110, the present embodiment makes the touch screen 120 sequentially sense a plurality of touch events, i.e. each event when the touch screen 120 is touched, and makes the processing circuit 110 record and compare the duration of each touch event, i.e. the duration of each touch when the touch screen 120 is touched. For convenience of the following description, the present embodiment will be described with reference to only an example in which the total number of touch events is nine, but this is not intended to limit the present invention. For example, the first touch event is denoted as EN (1), the duration of the first touch event EN (1) is denoted as CT (1), the second touch event is denoted as EN (2), the duration of the second touch event EN (2) is denoted as CT (2), and so on, the ninth touch event is denoted as EN (9), and the duration of the ninth touch event EN (9) is denoted as CT (9). It should be noted that the present invention is not limited to the specific implementation manner in which the processing circuit 110 knows that the ninth touch event EN (9) is the last touch event, and those skilled in the art should be able to perform the related design according to the actual requirement or application.
Next, in step S120, the present embodiment determines whether the duration CT (k) of the kth touch event EN (k) is greater than or equal to N times the duration CT (k-1) of the (k-1) th touch event EN (k-1) (i.e., the duration CT (k) > N is equal to the duration CT (k-1)). If yes, go on to step S122; if not, step S130 is performed. In step S122, the present embodiment determines whether the kth touch event EN (k) is the last of the touch events EN (1) to EN (9) in the order (i.e., the last touch event EN (9)).
If not, go on to step S124 and step S150; if yes, go to step S126. In step S124, the present embodiment makes the processing circuit 110 determine that the i-th touch event EN (i) to the (k-1) -th touch event EN (k-1) are respectively inputted as a morse code short symbol, i.e. dot (·), or referred to as "drop" (dit), and in step S150, the processing circuit returns to step S120 after adding 1 to the value of k.
Similarly, in step S130, the present embodiment determines whether the duration CT (k) of the kth touch event EN (k) is less than or equal to M times the duration CT (k-1) of the (k-1) th touch event EN (k-1) (i.e., the duration CT (k) +.M is the duration CT (k-1)). If yes, go on to step S132; if not, step S140 is performed. In step S132, the present embodiment also determines whether the kth touch event EN (k) is the last of the sequences of the touch events EN (1) to EN (9). If not, go on to step S134 and step S150; if yes, go to step S136. In step S134, the processing circuit 110 determines that the i-th touch event EN (i) to the (k-1) -th touch event EN (k-1) are respectively inputted as a morse code long symbol, i.e. dash (-), or called as a "answer" (dah).
In step S140, the present embodiment also determines whether the kth touch event EN (k) is the last of the sequences of the touch events EN (1) to EN (9). If not, continuing to execute the step S150; if yes, go to step S160. In step S160, the present embodiment causes the processing circuit 110 to input the ith touch event EN (i) through the kth touch event EN (k) as a Morse code long symbol or Morse code short symbol, respectively, opposite to the input of the (i-1) th touch event EN (i-1). It should be understood that, in the present embodiment, N and M are both positive numbers, k and i are both positive integers less than or equal to the total number of touch events, and k is greater than or equal to i, and the i-th touch event EN (i) is the earliest of the touch events EN (1) to EN (9) that are not determined to be inputted as a morse code long symbol or a morse code short symbol.
For convenience of description below, this embodiment will be described with reference to an example where N is 2 and M is 0.5, but it is not intended to limit the present invention. For example, in the case where the morse code to be input by the user is "- - - - - - - - - -, the first to third touch events EN (1) to EN (3) only have to be respectively performed for the shorter duration CT (1) to CT (3), for example, the duration CT (1) to CT (3) of the first to third touch events EN (1) to EN (3) are 1 second, so that the first to third touch events EN (1) to EN (3) are continuously performed in the case where k is 1 to 3, i.e., the loops of step S120, step S130, step S140 and step S150. Then, until the fourth touch event EN (4), the input of the intermediate first morse code length symbol must be completed by a longer duration CT (4), for example, the duration CT (4) of the fourth touch event EN (4) is 2 seconds. Therefore, in the case where k is 4, when the duration CT (4) of the fourth touch event EN (4) is 2 times or more the duration CT (3) of the third touch event EN (3) and the fourth touch event EN (4) is not the last of the sequences of the touch events EN (1) to EN (9), the present embodiment makes the processing circuit 110 determine that the first touch event EN (1) to the third touch event EN (3) are inputted as the morse code shortsymbol, respectively, and after adding 1 to the value of k, returns to step S120.
In addition, since the fifth and sixth touch events EN (5) and EN (6) also have to be inputted with the middle second and third morse code length symbols through the longer durations CT (5) and CT (6), respectively, for example, the durations CT (5) and CT (6) of the fifth and sixth touch events EN (5) and EN (6) are 2 seconds, respectively, in the case of k being 5 and 6, i.e., the fifth and sixth touch events EN (5) and EN (6), the embodiment continuously performs the loops of the steps S120, S130, S140 and S150 again, in other words, the embodiment continuously performs the steps S120, S130, S140 and S150 again. Then, until the seventh touch event EN (7) is completed by a shorter duration CT (7), the input of the first morse code short symbol later is completed, for example, the duration CT (7) of the seventh touch event EN (7) is restored to 1 second again. Therefore, in the case where k is 7, when the duration CT (7) of the seventh touch event EN (7) is 0.5 times or less of the duration CT (6) of the sixth touch event EN (6) and the seventh touch event EN (7) is not the last of the sequences of the touch events EN (1) to EN (9), the present embodiment makes the processing circuit 110 determine that the fourth touch event EN (4) to the sixth touch event EN (6) are respectively input as the morse code length symbol, and after adding 1 to the value of k, returns to step S120.
Similarly, since the eighth and ninth touch events EN (8), EN (9) also have to be completed by the shorter durations CT (8), CT (9), respectively, and the later second and third morse code shortsymbols are inputted, for example, the durations CT (8), CT (9) of the eighth and ninth touch events EN (8), EN (9) are also 1 second, respectively, in the case of k being 8, i.e., the eighth touch event EN (8), the present embodiment continues to execute the loops of step S120, step S130, step S140, and step S150 again, in other words, in the case of k being 9, when the ninth touch event EN (9) is the last of the sequences of the touch events EN (1) to EN (9), the present embodiment makes the processing circuit 110 determine the seventh touch event EN (7) to the ninth touch event EN (9) as the opposite to the sixth morse code shorthand input (6), respectively.
In addition, referring back to fig. 1, in step S126, the processing circuit 110 is configured to input the i-th touch event EN (i) to the (k-1) -th touch event EN (k-1) as the morse code short symbol and the k-th touch event EN (k) as the morse code long symbol. For example, the present embodiment can assume that in the case where the morse code to be input by the user is changed to "" - - - - "because the ninth touch event EN (9) also has to be changed to the last morse code symbol input by the longer duration CT (9), for example, the duration CT (9) of the ninth touch event EN (9) is further extended to 2 seconds, so in the case where k is 9, when the duration CT (9) of the ninth touch event EN (9) is greater than or equal to 2 times the duration CT (8) of the eighth touch event EN (8) and the ninth touch event EN (9) is the last of the sequences of the touch events EN (1) to EN (9), the processing circuit 110 determines the seventh to eighth touch events EN (7) to EN (8) to be respectively input as morse code symbols and determines the ninth touch event EN (9) to be input as morse code symbol.
Similarly, as shown in fig. 1, in step S136, the present embodiment causes the processing circuit 110 to input the i-th touch event EN (i) to the (k-1) -th touch event EN (k-1) decisions as morse code long symbols, respectively, and the k-th touch event EN (k) decisions as morse code short symbols. For example, in the case where the morse code to be input by the user is changed to "c" - - - - - - - -, since the fifth to eighth touch events EN (5) to EN (8) also have to be respectively inputted with the middle morse code length through the longer duration CT (5) to CT (8), the duration CT (5) to CT (8) of the fifth to eighth touch events EN (5) to EN (8) is the same as the duration CT (4) of the fourth touch event EN (4) for 2 seconds, so that in the case where k is 5 to 8, i.e., the fifth to eighth touch events EN (5) to EN (8), the embodiment continuously performs the loops of steps S120, S130, S140 and S150. Then, until the ninth touch event EN (9), the last morse code short symbol input must be completed by a shorter duration CT (9), for example, the duration CT (9) of the ninth touch event EN (9) is 1 second. Therefore, in the case where k is 9, when the duration CT (9) of the ninth touch event EN (9) is 0.5 times or less of the duration CT (8) of the eighth touch event EN (8) and the ninth touch event EN (9) is the last of the sequences of the touch events EN (1) to EN (9), the present embodiment causes the processing circuit 110 to determine that the fourth touch event EN (4) to the eighth touch event EN (8) are inputted as the morse code long symbol, respectively, and to determine that the ninth touch event EN (9) is inputted as the morse code short symbol. Since the details are also as described above, further description is omitted here.
It should be noted that the order of step S120, step S122, step S124, step S126, step S130, step S132, step S134, and step S136 in fig. 1 is merely for example, and is not intended to limit the present invention. In other embodiments, the processing circuit 110 may also exchange the sequence of step S120, step S122, step S124, step S126, step S130, step S132, step S134, and step S136, which does not affect the implementation of the present invention. In addition, as will be understood by those skilled in the art based on the above teachings, the present embodiment is modified to allow the processing circuit 110 to determine whether the input is a morse code short symbol or a morse code long symbol according to the relative time difference on the touch screen 120, so that the present embodiment can more effectively provide more intuitive operation convenience than the prior art.
On the other hand, as shown in fig. 2, the portable electronic device 10 may further include a transmission circuit 140, where the transmission circuit 140 may be implemented by a pure hardware circuit or implemented by a hardware circuit in combination with firmware or software, and in general, the present invention is not limited to the specific implementation of the transmission circuit 140. In addition, the transmission circuit 140 may be directly integrated into the portable electronic device 10, as shown in fig. 2, or separately disposed outside the portable electronic device 10, but the invention is not limited thereto. In contrast, the morse code input method of fig. 1 may further include: the transmission circuit 140 transmits the determined and inputted morse code long symbol or morse code short symbol to a remote host (host) and/or a cloud server (both not shown) in a wireless manner. That is, the remote host and/or the cloud server may also receive the entire set of morse codes inputted by the user to the portable electronic device 10 via the transmission circuit 140.
For example, if the entire set of Morse codes is "- - - -" because the Morse code corresponding to the character "S" is "-" and the Morse code corresponding to the character "O" is "-" according to the international Morse code protocol standard, therefore, after the remote host and/or the cloud server receives the entire set of morse code, the remote host and/or the cloud server can also decode the corresponding character of the entire set of morse code, i.e. "SOS", by searching (look-up) and intelligent word selection. It should be noted that, the present invention is not limited to the specific implementation manner of the entire set of morse code decoded by the remote host and/or the cloud server, and a person having ordinary skill in the art should be able to perform related design according to actual needs or applications. In addition, in other embodiments, the decoding process may be changed to be performed by the processing circuit 110 of the portable electronic device 10, and the transmitting circuit 140 is configured to transmit the decoded result to the remote host and/or the cloud server, which does not affect the implementation of the present invention.
Finally, if the decoding process is considered to be more accurate, in step S110, the present embodiment may further include enabling the processing circuit 110 to record and compare the interval time between each touch event, and enabling the processing circuit 110 to determine and record the (k-1) th touch event EN (k-1) as the character interrupt node when the interval time between the (k-1) th touch event EN (k-1) and the (k) th touch event EN (k) is greater than or equal to a predetermined threshold value. For example, if the predetermined threshold is 0.5 seconds and the entire set of morse codes is also "- - - - - - - -, the processing circuit 110 determines and records the third touch event EN (3) as the character interrupt node when the interval between the third touch event EN (3) and the fourth touch event EN (4) is greater than or equal to 0.5 seconds. That is, the first three Morse code shorthand symbols inputted by the first to third touch events EN (1) to EN (3) should be commonly used to decode the first character "S".
Similarly, when the interval between the sixth touch event EN (6) and the seventh touch event EN (7) is greater than or equal to 0.5 seconds, the processing circuit 110 determines and records the sixth touch event EN (6) as another character interrupt node. That is, the middle three Morse code length symbols inputted by the fourth to sixth touch events EN (4) to EN (6) should be commonly used to decode the second character "O". In addition, the last three Morse code shorthand symbols inputted by the seventh to ninth touch events EN (7) to EN (9) should be commonly used to decode the third character "S". Since the details are also as described above, further description is omitted here.
In summary, the morse code input method and the portable electronic device provided by the embodiments of the present invention may be modified to allow the processing circuit to determine whether the input is a morse code short symbol or a morse code long symbol according to the relative time difference on the touch screen, so that the embodiment can more effectively provide more intuitive operation convenience than the prior art.
The foregoing is merely exemplary of the present invention and is not intended to limit the scope of the present invention.
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (10)

1. A Morse code input method is implemented in a portable electronic device, the portable electronic device comprises a processing circuit and a touch screen, and is characterized in that the Morse code input method comprises the following steps:
the touch screen is enabled to sense a plurality of touch events in sequence, and the processing circuit is enabled to record and compare the duration time of each touch event;
when the duration of the kth one of the touch events is greater than or equal to N times the duration of the (k-1) th touch event and the kth one of the touch events is not the last one of the touch events, causing the processing circuitry to input the ith to (k-1) th touch event decisions as a morse code short symbol, respectively;
When the duration of the kth touch event is less than or equal to M times the duration of the (k-1) th touch event and the kth touch event is not the last of the sequences of the touch events, causing the processing circuitry to input the ith to (k-1) th touch event decisions as a morse code length, respectively;
wherein N and M are positive numbers, k and i are positive integers, and k is equal to or greater than i, and the ith touch event is the earliest ordered one of the touch events which are not judged to be input as the morse code long symbol or the morse code short symbol;
further comprises:
when the duration of the kth touch event is greater than or equal to N times the duration of the (k-1) th touch event and the kth touch event is the last of the ordering of the touch events, then causing the processing circuitry to input the ith to (k-1) th touch event decisions as the morse code shortsymbol, respectively, and the kth touch event decision as the morse code longsymbol; and
when the duration of the kth touch event is less than or equal to M times the duration of the (k-1) th touch event and the kth touch event is the last of the ordering of the touch events, then the processing circuitry is caused to input the ith to (k-1) th touch event decisions as the morse code length symbol, respectively, and the kth touch event decision as the morse code short symbol.
2. The morse code input method of claim 1, further comprising:
when the duration of the kth touch event is not greater than or equal to N times the duration of the (k-1) th touch event and not less than or equal to M times the duration of the (k-1) th touch event, the processing circuitry is caused to input the ith to the kth touch event as the Moss code long symbol or the Moss code short symbol, respectively, opposite to the input of the (i-1) th touch event when the kth touch event is the last of the sequences of the touch events.
3. The method of claim 2, wherein the portable electronic device comprises a transmission circuit, and the method further comprises:
the transmission circuit transmits the Moss code long symbol or the Moss code short symbol which are judged and input in sequence to a remote host and/or a cloud server in a wireless mode.
4. The method of claim 2, further comprising the step of causing the processing circuit to record and compare the duration of each of the touch events, and wherein when the interval between the (k-1) th touch event and the kth touch event is greater than or equal to a predetermined threshold, causing the processing circuit to determine and record the (k-1) th touch event as a character interrupt node.
5. A portable electronic device, comprising:
a processing circuit;
a touch screen;
the storage device stores an application program for instructing the portable electronic device to execute a Morse code input method, wherein the Morse code input method comprises the following steps:
the touch screen is enabled to sense a plurality of touch events in sequence, and the processing circuit is enabled to record and compare the duration time of each touch event;
when the duration of the kth one of the touch events is greater than or equal to N times the duration of the (k-1) th touch event and the kth one of the touch events is not the last one of the touch events, causing the processing circuitry to input the ith to (k-1) th touch event decisions as a morse code short symbol, respectively;
when the duration of the kth touch event is less than or equal to M times the duration of the (k-1) th touch event and the kth touch event is not the last of the sequences of the touch events, causing the processing circuitry to input the ith to (k-1) th touch event decisions as a morse code length, respectively;
wherein N and M are natural numbers, k and i are positive integers, and k is equal to or greater than i, and the ith touch event is the earliest ordered one of the touch events which are not judged to be input as the morse code long symbol or the morse code short symbol;
The Morse code input method further comprises the following steps:
when the duration of the kth touch event is greater than or equal to N times the duration of the (k-1) th touch event and the kth touch event is the last of the ordering of the touch events, then causing the processing circuitry to input the ith to (k-1) th touch event decisions as the morse code shortsymbol, respectively, and the kth touch event decision as the morse code longsymbol;
when the duration of the kth touch event is less than or equal to M times the duration of the (k-1) th touch event and the kth touch event is the last of the ordering of the touch events, then the processing circuitry is caused to input the ith to (k-1) th touch event decisions as the morse code length symbol, respectively, and the kth touch event decision as the morse code short symbol.
6. The portable electronic device of claim 5, wherein the morse code input method further comprises:
when the duration of the kth touch event is not greater than or equal to N times the duration of the (k-1) th touch event and not less than or equal to M times the duration of the (k-1) th touch event, the processing circuitry is caused to input the ith to the kth touch event as the Moss code long symbol or the Moss code short symbol, respectively, opposite to the input of the (i-1) th touch event when the kth touch event is the last of the sequences of the touch events.
7. The portable electronic device of claim 5, comprising a transmission circuit, and the morse code input method further comprises:
the transmission circuit transmits the Moss code long symbol or the Moss code short symbol which are judged and input in sequence to a remote host and/or a cloud server in a wireless mode.
8. The portable electronic device of claim 5, wherein in the step of causing the processing circuit to record and compare the duration of each of the touch events, further comprising causing the processing circuit to record and compare an interval time between each of the touch events, and when the interval time between the (k-1) th touch event and the kth touch event is greater than or equal to a predetermined threshold, causing the processing circuit to determine and record the (k-1) th touch event as a character interrupt node.
9. A computer device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements:
the touch screen is enabled to sense a plurality of touch events in sequence, and the processing circuit is enabled to record and compare a duration time of each touch event;
When the duration of the kth one of the touch events is greater than or equal to N times the duration of the (k-1) th touch event and the kth one of the touch events is not the last one of the touch events, causing the processing circuitry to input the ith to (k-1) th touch event decisions as a morse code short symbol, respectively;
when the duration of the kth touch event is less than or equal to M times the duration of the (k-1) th touch event and the kth touch event is not the last of the sequences of the touch events, causing the processing circuitry to input the ith to (k-1) th touch event decisions as a morse code length, respectively;
wherein N and M are positive numbers, k and i are positive integers, and k is equal to or greater than i, and the ith touch event is the earliest ordered one of the touch events which are not judged to be input as the morse code long symbol or the morse code short symbol;
further comprises:
when the duration of the kth touch event is greater than or equal to N times the duration of the (k-1) th touch event and the kth touch event is the last of the ordering of the touch events, then causing the processing circuitry to input the ith to (k-1) th touch event decisions as the morse code shortsymbol, respectively, and the kth touch event decision as the morse code longsymbol; and
When the duration of the kth touch event is less than or equal to M times the duration of the (k-1) th touch event and the kth touch event is the last of the ordering of the touch events, then the processing circuitry is caused to input the ith to (k-1) th touch event decisions as the morse code length symbol, respectively, and the kth touch event decision as the morse code short symbol.
10. A computer readable storage medium having stored thereon a computer program, characterized in that the program when executed by a processor realizes:
the touch screen is enabled to sense a plurality of touch events in sequence, and the processing circuit is enabled to record and compare a duration time of each touch event;
when the duration of the kth one of the touch events is greater than or equal to N times the duration of the (k-1) th touch event and the kth one of the touch events is not the last one of the touch events, causing the processing circuitry to input the ith to (k-1) th touch event decisions as a morse code short symbol, respectively;
when the duration of the kth touch event is less than or equal to M times the duration of the (k-1) th touch event and the kth touch event is not the last of the sequences of the touch events, causing the processing circuitry to input the ith to (k-1) th touch event decisions as a morse code length, respectively;
Wherein N and M are positive numbers, k and i are positive integers, and k is equal to or greater than i, and the ith touch event is the earliest ordered one of the touch events which are not judged to be input as the morse code long symbol or the morse code short symbol;
further comprises:
when the duration of the kth touch event is greater than or equal to N times the duration of the (k-1) th touch event and the kth touch event is the last of the ordering of the touch events, then causing the processing circuitry to input the ith to (k-1) th touch event decisions as the morse code shortsymbol, respectively, and the kth touch event decision as the morse code longsymbol; and
when the duration of the kth touch event is less than or equal to M times the duration of the (k-1) th touch event and the kth touch event is the last of the ordering of the touch events, then the processing circuitry is caused to input the ith to (k-1) th touch event decisions as the morse code length symbol, respectively, and the kth touch event decision as the morse code short symbol.
CN202110547994.9A 2018-08-01 2018-08-01 Moss code input method and portable electronic device thereof Active CN113407041B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110547994.9A CN113407041B (en) 2018-08-01 2018-08-01 Moss code input method and portable electronic device thereof

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110547994.9A CN113407041B (en) 2018-08-01 2018-08-01 Moss code input method and portable electronic device thereof
CN201810859762.5A CN110794974A (en) 2018-08-01 2018-08-01 Moss code input method and portable electronic device thereof

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201810859762.5A Division CN110794974A (en) 2018-08-01 2018-08-01 Moss code input method and portable electronic device thereof

Publications (2)

Publication Number Publication Date
CN113407041A CN113407041A (en) 2021-09-17
CN113407041B true CN113407041B (en) 2023-09-05

Family

ID=69425074

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202110547994.9A Active CN113407041B (en) 2018-08-01 2018-08-01 Moss code input method and portable electronic device thereof
CN201810859762.5A Withdrawn CN110794974A (en) 2018-08-01 2018-08-01 Moss code input method and portable electronic device thereof

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201810859762.5A Withdrawn CN110794974A (en) 2018-08-01 2018-08-01 Moss code input method and portable electronic device thereof

Country Status (1)

Country Link
CN (2) CN113407041B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201830288U (en) * 2010-10-18 2011-05-11 南京陶朱公智能电子技术有限公司 Mobile terminal capable of realizing flashing communication based on Morse codes
CN102478656A (en) * 2010-11-26 2012-05-30 精工爱普生株式会社 Cross correlation determination method and cross correlation determination device
DE102013214882A1 (en) * 2012-07-31 2014-02-06 Denso Corporation Decoder for PWM code decoding and communication system
TW201409345A (en) * 2012-08-31 2014-03-01 Inst Information Industry Screen unlocking method with time information, unlocking system, and recording medium
CN105204611A (en) * 2014-06-24 2015-12-30 北京创思博德科技有限公司 Finger movement mode based Morse code character inputting system and method
CN105320418A (en) * 2014-07-25 2016-02-10 南京瀚宇彩欣科技有限责任公司 Handheld electronic device, outer touch cover and computer executing method
CN105447025A (en) * 2014-08-26 2016-03-30 宏达国际电子股份有限公司 Portable electronic apparatus and information processing method thereof
KR20160080777A (en) * 2014-12-30 2016-07-08 엘지전자 주식회사 Mobile terminal and method for controlling the same
CN106095315A (en) * 2016-06-12 2016-11-09 合肥联宝信息技术有限公司 The unlocking method of touch screen and system for unlocking
TW201738817A (en) * 2016-04-25 2017-11-01 Gash Pay Company Ltd Method for electronic payment with Morse code and a computer program product thereof rapidly, conveniently and correctly transferring payment information between different electronic devices

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201830288U (en) * 2010-10-18 2011-05-11 南京陶朱公智能电子技术有限公司 Mobile terminal capable of realizing flashing communication based on Morse codes
CN102478656A (en) * 2010-11-26 2012-05-30 精工爱普生株式会社 Cross correlation determination method and cross correlation determination device
DE102013214882A1 (en) * 2012-07-31 2014-02-06 Denso Corporation Decoder for PWM code decoding and communication system
TW201409345A (en) * 2012-08-31 2014-03-01 Inst Information Industry Screen unlocking method with time information, unlocking system, and recording medium
CN105204611A (en) * 2014-06-24 2015-12-30 北京创思博德科技有限公司 Finger movement mode based Morse code character inputting system and method
CN105320418A (en) * 2014-07-25 2016-02-10 南京瀚宇彩欣科技有限责任公司 Handheld electronic device, outer touch cover and computer executing method
CN105447025A (en) * 2014-08-26 2016-03-30 宏达国际电子股份有限公司 Portable electronic apparatus and information processing method thereof
KR20160080777A (en) * 2014-12-30 2016-07-08 엘지전자 주식회사 Mobile terminal and method for controlling the same
TW201738817A (en) * 2016-04-25 2017-11-01 Gash Pay Company Ltd Method for electronic payment with Morse code and a computer program product thereof rapidly, conveniently and correctly transferring payment information between different electronic devices
CN106095315A (en) * 2016-06-12 2016-11-09 合肥联宝信息技术有限公司 The unlocking method of touch screen and system for unlocking

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
The Morse code effect: A crystal–crystal transformation observed in gel-grown lead (II) oxalate crystals;J.N.Lisgarten;Journal of Crystal Growth;第490卷;35-40 *

Also Published As

Publication number Publication date
CN113407041A (en) 2021-09-17
CN110794974A (en) 2020-02-14

Similar Documents

Publication Publication Date Title
KR100438724B1 (en) Home network System for driving user interface remotely and method thereof
JP2005504370A5 (en)
KR20000062737A (en) Application launcher for a two-way mobile communications device
US20190057072A1 (en) Method, device and electronic equipment for switching name of desktop icon folder
US20140025219A1 (en) Home energy management system with sabbath compliant functionality
US10938633B2 (en) Facilitating resilient and fault tolerant asynchronous messaging
US7675435B2 (en) Smart filtering with multiple simultaneous keyboard inputs
CN113407041B (en) Moss code input method and portable electronic device thereof
CN103986830A (en) Contact-person searching method and portable terminal
CN106020701B (en) Letter index bar display method and device and electronic equipment
CN102339240A (en) Detecting state lost on device
US11188360B2 (en) Information processing apparatus and hint provision method
MX2010012339A (en) Off-line smartphone file system snapshots.
JP5120215B2 (en) Pairing apparatus, system, method, and program
US10764090B2 (en) Morse code input method and portable electronic device for performing same
US20190319740A1 (en) Blind detection of preempted resources in orthogonal frequency division multiplexing (ofdm) systems
US10826640B1 (en) Base spreading code determination for a wireless communication protocol
KR20070063654A (en) A portable mobile apparatus and method for updating firmware using syncml
CN107256170B (en) Method and device for activating input method setting items of terminal equipment
CN110794975A (en) Starting method for inputting Moss code and portable electronic device thereof
KR101835396B1 (en) METHOD FOR DISPLAYING AUTOMOBILE UNITS PlUG-IN INFORMATION
WO2018203510A1 (en) Question inference device
CN107535013A (en) A kind of method for processing business and terminal
JP4602180B2 (en) Communication terminal device and communication program
US11880538B2 (en) Routing actions to appropriate scenes

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
GR01 Patent grant
GR01 Patent grant