CN104242880B - Signal generating method and device and electronic device - Google Patents

Signal generating method and device and electronic device Download PDF

Info

Publication number
CN104242880B
CN104242880B CN201410470026.2A CN201410470026A CN104242880B CN 104242880 B CN104242880 B CN 104242880B CN 201410470026 A CN201410470026 A CN 201410470026A CN 104242880 B CN104242880 B CN 104242880B
Authority
CN
China
Prior art keywords
pulsewidth
information
pulse
message segment
segment
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
CN201410470026.2A
Other languages
Chinese (zh)
Other versions
CN104242880A (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.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201410470026.2A priority Critical patent/CN104242880B/en
Publication of CN104242880A publication Critical patent/CN104242880A/en
Application granted granted Critical
Publication of CN104242880B publication Critical patent/CN104242880B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a signal generating method and device and an electronic device. The method includes the steps of determining the triggered control function, obtaining preset pulse width modulation description data corresponding to the triggered control function, and generating a pulse width modulation signal according to the pulse width modulation description data, wherein the pulse width modulation description data are used for describing the corresponding pulse width modulation signal, and the pulse width modulation description data comprise parameter information of all waveform segments of the pulse width modulation signal, and combination relation information among all the waveform segments of the pulse width modulation signal. According to the technical scheme, bottom layer parameters can be separated from upper layer codes, and the universality of the pulse width modulation description data can be easily improved.

Description

Signal creating method and device, electronic equipment
Technical field
The present invention relates to communication technical field, more particularly, to signal creating method and device, electronic equipment.
Background technology
Pulsewidth modulation coding (PWC, Pulse Width Codec) can carry out serialization to parallel signal, to generate phase PWM (Pulse Width Modulation, the pulse width modulation/pulsewidth modulation) control signal answered, and and then to PWM control The wireless transmission of signal, it is possible to achieve corresponding remote control application.
Content of the invention
The disclosure provides information generating method and device, electronic equipment, can mutually divide bottom parameter with upper strata coding From contributing to lifting pulsewidth modulation and describe the versatility of data.
According to the embodiment of the present disclosure in a first aspect, provide a kind of information generating method, including:
Determine the control function being triggered;
Obtain the corresponding pulsewidth modulation of control function that is default and being triggered and describe data, described pulsewidth modulation description Data is used for describing corresponding pulse-width signal, and wherein said pulsewidth modulation describes data and includes constituting described pulsewidth modulation letter Number the parameter information of each waveform segment and constitute described pulse-width signal all waveform segments between syntagmatic Information;
Data is described according to described pulsewidth modulation, generates described pulse-width signal.
Optionally, described pulsewidth modulation describes data and includes multiple message segments, constitutes described pulse-width signal each The parameter information of waveform segment and described syntagmatic information are located in corresponding message segment respectively.
Optionally, described syntagmatic information is located in the message segment of predeterminated position, and constitutes described pulse-width signal Each waveform segment parameter information respectively be located at remaining message segment in.
Optionally, the message segment of described predeterminated position is last message segment in the plurality of message segment.
Optionally, each described information section includes at least one of information of following types:
The persistent period of each pulse in pulsewidth sequence and this pulsewidth sequence and instruction level;
Reference information to remaining message segment;
Pulsewidth Delay, including decay time, described decay time calculates when corresponding pulsewidth sequence starts, and if Described decay time is more than the total duration of this pulsewidth sequence, then after this pulsewidth EOS, according to this pulsewidth sequence knot Level maintenance pulse during bundle exports and terminates to described decay time.
Optionally, described pulsewidth Delay also includes:
Time delay level, after being used for making corresponding pulsewidth EOS, maintains pulse to export to described according to this time delay level Decay time terminates.
Optionally, also include the information of following types in each described information section:
Loop computation information, for the arbitrarily described pulsewidth sequence in affiliated message segment, described reference information and/or institute State pulsewidth Delay and be circulated computing.
According to the second aspect of the embodiment of the present disclosure, provide a kind of information generation device, including:
Determining unit, for determining the control function being triggered;
Acquiring unit, describes data for obtaining the corresponding pulsewidth modulation of control function that is default and being triggered, institute State pulsewidth modulation and describe data and be used for describing corresponding pulse-width signal, wherein said pulsewidth modulation describes data and includes constituting The parameter information of each waveform segment of described pulse-width signal and all waveform segments constituting described pulse-width signal Between syntagmatic information;
Signal generating unit, for describing data according to described pulsewidth modulation, generates described pulse-width signal.
Optionally, described pulsewidth modulation describes data and includes multiple message segments, constitutes described pulse-width signal each The parameter information of waveform segment and described syntagmatic information are located in corresponding message segment respectively.
Optionally, described syntagmatic information is located in the message segment of predeterminated position, and constitutes described pulse-width signal Each waveform segment parameter information respectively be located at remaining message segment in.
Optionally, the message segment of described predeterminated position is last message segment in the plurality of message segment.
Optionally, each described information section includes at least one of information of following types:
The persistent period of each pulse in pulsewidth sequence and this pulsewidth sequence and instruction level;
Reference information to remaining message segment;
Pulsewidth Delay, including decay time, described decay time calculates when corresponding pulsewidth sequence starts, and if Described decay time is more than the total duration of this pulsewidth sequence, then after this pulsewidth EOS, according to this pulsewidth sequence knot Level maintenance pulse during bundle exports and terminates to described decay time.
Optionally, described pulsewidth Delay also includes:
Time delay level, after being used for making corresponding pulsewidth EOS, maintains pulse to export to described according to this time delay level Decay time terminates.
Optionally, also include the information of following types in each described information section:
Loop computation information, for the arbitrarily described pulsewidth sequence in affiliated message segment, described reference information and/or institute State pulsewidth Delay and be circulated computing.
According to the third aspect of the embodiment of the present disclosure, provide a kind of electronic equipment, including:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to:
Determine the control function being triggered;
Obtain the corresponding pulsewidth modulation of control function that is default and being triggered and describe data, described pulsewidth modulation description Data is used for describing corresponding pulse-width signal, and wherein said pulsewidth modulation describes data and includes constituting described pulsewidth modulation letter Number the parameter information of each waveform segment and constitute described pulse-width signal all waveform segments between syntagmatic Information;
Data is described according to described pulsewidth modulation, generates described pulse-width signal.
The technical scheme that embodiment of the disclosure provides can include following beneficial effect:
The disclosure, by pulsewidth modulation is described parameter information and the syntagmatic information that data is divided into waveform segment, is realized Bottom parameter being separated with upper strata coding, thus contributing to lifting the versatility that pulsewidth modulation describes data, that is, different using Family individually can be adjusted to either one in bottom parameter or upper strata coding according to self-demand, without making to the opposing party Become impact, and data need not be described to whole pulsewidth modulation to recompile.
The disclosure can also be by leaving the parameter information of waveform segment and syntagmatic information in different letters respectively Breath section in, consequently facilitating user individually the parameter information to waveform segment or syntagmatic information are adjusted.
The disclosure can also be pre- accordingly by being separately positioned on the parameter information of waveform segment and syntagmatic information If position, on the one hand can distinguish corresponding information type according to the situation of message segment, on the other hand make to arteries and veins When wide modulation description data is encoded, contribute to, according to the corresponding positional information of each message segment, realizing the phase between message segment Mutually quote.
It should be appreciated that above general description and detailed description hereinafter are only exemplary and explanatory, not The disclosure can be limited.
Brief description
Accompanying drawing herein is merged in description and constitutes the part of this specification, shows the enforcement meeting the present invention Example, and be used for explaining the principle of the present invention together with description.
Fig. 1 is a kind of flow chart of the information generating method according to an exemplary embodiment.
Fig. 2 is a kind of flow chart of the information generating method implementing to exemplify according to another exemplary.
Fig. 3 is the structural representation that a kind of pulsewidth modulation according to an exemplary embodiment describes data.
Fig. 4 is the schematic diagram of the corresponding waveform segment of pulsewidth sequence according to an exemplary embodiment.
Fig. 5 is the schematic diagram of the corresponding waveform segment of reference information according to an exemplary embodiment.
Fig. 6 is the schematic diagram of the corresponding waveform segment of pulsewidth Delay according to an exemplary embodiment.
Fig. 7 is the schematic diagram of the corresponding waveform segment of pulsewidth Delay implementing to exemplify according to another exemplary.
Fig. 8 is the schematic diagram of the corresponding waveform segment of loop computation information according to an exemplary embodiment.
Fig. 9 is a kind of block diagram of the information generation device according to an exemplary embodiment.
Figure 10 is a kind of block diagram of the device for information generation according to an exemplary embodiment.
Specific embodiment
Here will in detail exemplary embodiment be illustrated, its example is illustrated in the accompanying drawings.Explained below is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the present invention.On the contrary, they be only with such as appended The example of the consistent apparatus and method of some aspects being described in detail in claims, the present invention.
Fig. 1 is a kind of flow chart of the information generating method according to an exemplary embodiment, as shown in figure 1, this letter Breath generation method is used in terminal, comprises the following steps:
In a step 102, determine the control function being triggered;
In the present embodiment, the triggering of control function can be accomplished in several ways, the physical button in such as terminal It is pressed, knob is rotated, touch controlled key is clicked etc.;Wherein, terminal can be the electronic equipment being exclusively used in distant control function, Can be for being provided with the non-dedicated electronic equipment in distant control function such as mobile phone, panel computer of signal projector.
At step 104, obtain the corresponding pulsewidth modulation of control function that is default and being triggered and describe data, described Pulsewidth modulation describes data and is used for describing corresponding pulse-width signal, and wherein said pulsewidth modulation describes data and includes constituting institute State pulse-width signal the parameter information of each waveform segment and constitute described pulse-width signal all waveform segments it Between syntagmatic information;
In the present embodiment, by pulsewidth modulation is described with the parsing of data, corresponding pulse-width signal can be generated, After this pulse-width signal is received by receiver equipment, for realizing the control function being triggered in step 102.Wherein, pass through In advance control function and pulsewidth modulation are described data to be associated storing, then the arbitrary control work(selecting based on user and triggering Can, all can accurately obtain corresponding pulsewidth modulation and describe data.
In the present embodiment, pulsewidth modulation is described data and be divided into the parameter information of each waveform segment and each waveform segment Between syntagmatic information, wherein waveform segment can be understood as constitute pulse-width signal each bit, such as represent " 0 ", " 1 ", " start bit ", " stop bit " etc., and syntagmatic information can be understood as to above-mentioned various types of bits it Between combination, to constitute corresponding pulse-width signal.
Therefore, the combination that the parameter information of each waveform segment may be considered between bottom parameter, each waveform segment is closed It is that information may be considered upper strata coding.For bottom parameter, that is, each user or producer all can be arranged according to self-demand Representing same bit, such as user A can be come different parameter informations using " 200 μ s high level+100 μ s low level " Represent " 0 ", and user B then can represent " 0 " using " 200 μ s low level+100 μ s high level ", but any change of this parameter Change the implication representing " 0 " all without the corresponding bit of impact, thus also upper strata coding (i.e. syntagmatic information) will not be made Become impact;Similarly, in order to realize different control functions, user (such as " 0 ", " 1 ", " can rise to different bottom parameter Beginning position ", " stop bit " etc.) it is combined, but each bottom parameter corresponding actual parameter information will not be impacted.
In step 106, data is described according to described pulsewidth modulation, generate described pulse-width signal.
In the present embodiment, by reading syntagmatic information, such as " Start010101Stop ", then can determine arteries and veins Each bit in wide modulated signal;Meanwhile, according to each bit in combinations thereof relation information, transfer corresponding expression The parameter information of each bit such as " Start (start bit) ", " 0 ", " 1 ", " Stop (stop bit) ", then pass through by transfer each The parameter information of bit is expressed as the pulse-width modulation waveform of reality, you can group merges the complete pulsewidth modulation letter of generation successively Number, i.e. above-mentioned control signal.
From above-described embodiment, the disclosure is believed with syntagmatic by pulsewidth modulation describes the parameter information in data Breath carries out separating, and eliminates the strong incidence relation between bottom parameter and upper strata coding, can be individually to bottom parameter and upper strata Either one between coding is configured or adjusts, and without impacting to the opposing party, contributes to lifting pulsewidth modulation description The versatility of data, thus reduce describe the data volume that data is adjusted to pulsewidth modulation.
Refer to Fig. 2, Fig. 2 shows and implements, according to another exemplary, a kind of information generating method of exemplifying, including with Lower step:
In step 202., the control function being pre-configured with and the pulsewidth modulation previously generating are described data to be closed Connection storage;
In the present embodiment, pulsewidth modulation describes and comprises detached bottom parameter and upper strata coding in data.Wherein, bottom Parameter constitutes the corrugated sheet that this pulsewidth modulation describes the corresponding control signal of data (this control signal is pulse-width signal) The parameter information of section, the parameter information of bit " 0 " in such as this control signal, " 1 " etc.;Upper strata coding is in bottom data Each waveform segment between syntagmatic information, thus by control signal final for each waveform segment combination producing.
For realizing separating between bottom parameter and upper strata coding, pulsewidth modulation can be described data configuration is multiple letters Breath section, then constitute the parameter information of each waveform segment of control signal and described syntagmatic information is located at corresponding letter respectively In breath section.Refer to Fig. 3, such as pulsewidth modulation describes and comprises each message segment of n, respectively message segment 1, message segment in data 2 ... message segments n.
So that terminal, when parsing pulsewidth modulation describes data, can accurately distinguish bottom parameter therein and upper strata Coding, syntagmatic information can be located in the message segment of predeterminated position, and constitute each ripple of described pulse-width signal The parameter information of shape fragment is located in remaining message segment respectively.For example as illustrative embodiments, can be by syntagmatic Information is placed in last message segment that pulsewidth modulation describes in data, i.e. message segment n shown in Fig. 3, and by parameter information It is placed in remaining message segment 1 to message segment n-1.Wherein, because the corresponding bit of parameter information has certain versatility, Such as bit " 0 ", " 1 " etc., thus can also be the fixing message segment of these parameter informations setting, such as make first letter Breath section (i.e. message segment 1 shown in Fig. 3) corresponds to bit " 0 ", second message segment (i.e. message segment 2 shown in Fig. 3) corresponds to In bit " 1 " etc..
In fact, although the content that pulsewidth modulation describes each message segment in data is different, each message segment can be adopted Use identical data structure.At least one of information of following types is all included in such as each message segment:
1) pulsewidth sequence
As illustrative embodiments, pulsewidth sequence specifically can include persistent period and the instruction electricity of each pulse Flat, can adopt from syntactic description:
width::[+|-]integer
width_seq::/(width(,width)*/)
Than as shown in figure 4, the pulsewidth sequence (+200, -100) in message segment describes one by 200 μ s high level and 100 The waveform segment that μ s low level is constituted.Certainly, it is not limiting as the number of pulses that device comprises, such as (+300) description in pulsewidth sequence The waveform segment of one 300 μ s high level, and (+200, -100 ,+300) describe one low by 200 μ s high level, 100 μ s Level and the waveform segment of 300 μ s high level composition.
Wherein, multiple pulsewidth sequences can be superimposed, such as (+200, -100) (+300) and (+200, -100 ,+300) phase Same, all describe a waveform segment being made up of 200 μ s high level, 100 μ s low levels and 300 μ s high level.Meanwhile, if There are multiple pulses, then posterior pulse can not comprise to indicate level, represents the level continuing a pulse before it, such as (+200,100) describe the waveform segment of 300 μ s (100 μ s high level of 200 μ s high level and continuity) high level, (+200, -100) (300) describe one by 200 μ s high level and 400 μ s low levels (the 300 of 100 μ s low levels and continuity μ s low level constitute) waveform segment.
2) reference information
As illustrative embodiments, can mutually quote between each message segment, to reduce repeated data amount.Wherein, Can be quoted based on unique ID of different message segments, then corresponding syntactic description can adopt:
seg_ref::/[integer/]
In above-mentioned syntactic description, pulsewidth sequence " () " is distinguished over using " [] ", the message segment being wherein cited is only One ID can describe putting in order in data for this message segment in pulsewidth modulation.Than as shown in Figure 5 it is assumed that pulsewidth modulation describes Comprise three message segments in data, message segment 1, message segment 2 and the message segment 3 being respectively arranged in order, then message segment 1 correspond to Arrangement position 0, message segment 1 correspond to arrangement position 1, message segment 2 corresponds to arrangement position 2.It is assumed that comprising pulsewidth in message segment 1 Sequence (+200, -100), describes a waveform segment being made up of 200 μ s high level and 100 μ s low levels, and message segment 2 In comprise pulsewidth sequence (- 200 ,+100), describe a waveform segment being made up of 200 μ s low levels and 100 μ s high level, And in message segment 3, comprise reference information [0] [1] [0], represent to the message segment 1 of arrangement position 0 and the message segment 2 of arrangement position 1 Quote successively, then corresponding pulse-width signal is:(+200, -100) (- 200 ,+100) (+200, -100), that is, high by 200 μ s The waveform segment that level, 300 μ s low levels, 300 μ s high level and 100 μ s low levels are constituted.
It should be noted that:" pulsewidth sequence " and " reference information " can be used in combination, than message segment 1 as shown in Figure 5 In the case of constant with message segment 2, message segment 3 can be [0] [1] [0] (+200, -100), then to message segment 1 and message segment On the basis of 2 are quoted, also continue a waveform segment being made up of 200 μ s high level and 100 μ s low levels.
3) pulsewidth Delay
As illustrative embodiments, pulsewidth Delay can using "<>" distinguishing over pulsewidth sequence " () " and to draw With information " [] ", and the syntactic description of pulsewidth Delay can adopt:
width_until::/<width/>
As illustrative embodiments, pulsewidth Delay only can include decay time, and this decay time is from corresponding Pulsewidth sequence calculate when starting, and if decay time is more than the total duration of this pulsewidth sequence, in this pulsewidth sequence knot Shu Hou, maintains pulse to export according to level during this pulsewidth EOS and terminates to decay time.Than as shown in Figure 6 it is assumed that believing Parameter information in breath section is (+200, -100)<500>, then describe one by 200 μ s high level, 100 μ s low levels and 200 μ s low level (the instruction level at the end of 500-200-100=200, and (+200, -100) be low level, therefore (+200, - 100) one 200 μ s low level of time delay after) waveform segment that constitutes.
As another exemplary embodiment, pulsewidth Delay can also include:Time delay level, is used for making corresponding arteries and veins After wide EOS, maintain pulse to export according to this time delay level and terminate to decay time.Than as shown in Figure 7 it is assumed that message segment In parameter information be (+200, -100)<+500>, then describe one by 200 μ s high level, 100 μ s low levels and 500 μ s The waveform segment that high level is constituted.
It should be noted that:
First, based on the definition of pulsewidth Delay, if then the decay time length of pulsewidth Delay is less than front Pulsewidth sequence total duration, such as (+200, -100)<+200>Or (+200, -100)<+300>, then due to front pulsewidth sequence The total duration of row is 300 μ s so that during this pulsewidth EOS, decay time is also over, then above-mentioned two parameter information Only describe a waveform segment being made up of 200 μ s high level and 100 μ s low levels, that is, pulsewidth Delay is practically without Work.
Second although in Fig. 6 and Fig. 7, comprise pulsewidth sequence and pulsewidth Delay simultaneously in message segment, but pulsewidth time delay Information can also be used alone, and such as passes through only to arrange<0>Length of a game is zeroed out operate to represent.
3rd, pulsewidth Delay can also be used in combination with reference information, or by pulsewidth sequence, reference information and pulsewidth Delay is used in combination, and is extended with the waveform realized based on length of a game and controls.Such as in the embodiment shown in fig. 5, false Determine message segment 1 and message segment 2 constant in the case of, message segment 3 can be [0] [1] [0]<1000>, then to message segment 1 and letter Breath section 2 quoted on the basis of, due to " [0] [1] [0] " total duration be 900 μ s, and at the end of be low level, thus knot Remain a need for after bundle continuing the low level of 100 μ s (1000-900=100);Or, such as in the embodiment shown in fig. 5 it is assumed that Message segment 1 and message segment 2 constant in the case of, message segment 3 can be [0] [1] [0] (+200, -100)<1000>, then to letter Breath section 1 and on the basis of message segment 2 quoted, has also continued the high level of 200 μ s and the low level of 100 μ s, then due to The total duration of " [0] [1] [0] (+200, -100) " is 1200 μ s, beyond "<1000>" the time delay duration of 1000 μ s that limits, Thus "<1000>" actually will not work.
4) loop computation information
As illustrative embodiments, the syntactic description of loop computation information can adopt:
op_exp::integer'*'width_seq|integer'*'seg_ref|integer'*'width_until
As illustrative embodiments, loop computation information can to any pulsewidth sequence in affiliated message segment, draw It is circulated computing with information and/or pulsewidth Delay.Than as shown in Figure 8 it is assumed that parameter information in message segment be 2* (+ 200, -100), then describe one to be made up of 200 μ s high level, 100 μ s low levels, 200 μ s high level and 100 μ s low levels Waveform segment, actually 2 times have been calculated to " 200 μ s high level and 100 μ s low levels " circulating.
Meanwhile, loop computation information can also be circulated computing to reference information, than message segment 1 as shown in fig. 5 In the case of constant with message segment 2, message segment 3 can comprise " 2* [0] ", then indicated to message segment 1 circular reference 2 times, Be equivalent to " 2* (+200, -100) ".
Similarly, loop computation information can also be circulated computing, such as 2* to pulsewidth Delay<+100>Of equal value In<+100><+100>It is equivalent to<+200>.
In step 204, when user's trigger event is detected, determine that default control function is triggered, and proceed to step Rapid 206;
In step 206, " control function-pulsewidth modulation describes data " data pair based on associated storage in advance, searches The pulsewidth modulation corresponding with the control function being triggered describes data;
In a step 208, read pulsewidth modulation and describe the syntagmatic information in data;
In this embodiment it is assumed that signal transmitting chip is mounted with terminal, the oscillation frequency of the oscillation resistance in this chip Rate is 1.2MHz, then about T=37.5 μ s of corresponding clock cycle.It is assumed that needing the control signal of transmitting by " 0 ", " 1 " and " z " Constitute, then the parameter information constituting the waveform segment of corresponding control signal can be as shown in table 1 below:
Arrangement position Parameter information Implication
[0] 2*[4] Bit " 0 "
[1] 2*[5] Bit " 1 "
[2] [4][5] “z”
[3] (+150, -4650) Synchronous code
[4] (+150, -450) (+4T, -12T)
[5] (+450, -150) (+12T, -4T)
[6] [2][2][2][1][2][2][1][2] Address code
[7] [6][2][1][2][2][3] Code word
Table 1
In which it is assumed that numeric data code is " [2] [1] [2] [2] in [7].If control signal need by " address code+numeric data code+ Synchronous code " constitutes one group of code word, and needs 4 groups of code words during each transmitting, then corresponding syntagmatic information can be:4* [7], I.e. complete pulsewidth modulation describes data and includes:
2*[4];2*[5];[4][5];(+150, -4650);(+150, -450);(+450, -150);[2][2][2][1] [2][2][1][2];[6][2][1][2][2][3];4*[7];
Therefore, terminal pass through read " 4* [7] ", and and then other information section is parsed, and by (+150, -4650), (+150, -450) and (+450, -150) combine to constitute final control signal.
In above-described embodiment, so that the frequency of oscillation of oscillation resistance is as 1.2MHz as a example, give above-mentioned pulsewidth modulation description Data;And when frequency of oscillation changes, such as frequency of vibration is 4.3MHz, then only corresponding clock cycle T changes, I.e. arrangement position [3], arrangement position [4] and arrangement position [5] change, and remaining message segment all need not change.
In step 210, generate corresponding control signal.
Corresponding with the embodiment of aforesaid signal creating method, the disclosure additionally provides the enforcement of signal generating apparatus Example.
Fig. 9 is a kind of signal generating apparatus block diagram according to an exemplary embodiment.Refer to Fig. 9, this device bag Include determining unit 91, acquiring unit 92 and signal generating unit 93.
Wherein it is determined that unit 91 is configurable for determining the control function being triggered;
Acquiring unit 92 is configurable for obtaining the corresponding pulsewidth modulation of control function that is default and being triggered to be retouched State data, described pulsewidth modulation describes data and is used for describing corresponding pulse-width signal, and wherein said pulsewidth modulation describes number According to the parameter information including each waveform segment constituting described pulse-width signal and the institute constituting described pulse-width signal There is the syntagmatic information between waveform segment;
Signal generating unit 93 is configurable for describing data according to described pulsewidth modulation, generates described pulse-width signal.
In the present embodiment, by pulsewidth modulation is described parameter information and the syntagmatic letter that data is divided into waveform segment Breath is it is achieved that separate with upper strata coding to bottom parameter, thus contributing to lifting the versatility that pulsewidth modulation describes data, that is, Different user individually can be adjusted to either one in bottom parameter or upper strata coding according to self-demand, without to another One side impacts, and need not describe data to whole pulsewidth modulation and recompile.
Optionally, described pulsewidth modulation describes data and includes multiple message segments, constitutes described pulse-width signal each The parameter information of waveform segment and described syntagmatic information are located in corresponding message segment respectively.
Optionally, described syntagmatic information is located in the message segment of predeterminated position, and constitutes described pulse-width signal Each waveform segment parameter information respectively be located at remaining message segment in.
Optionally, the message segment of described predeterminated position is last message segment in the plurality of message segment.
Optionally, each described information section includes at least one of information of following types:
The persistent period of each pulse in pulsewidth sequence and this pulsewidth sequence and instruction level;
Reference information to remaining message segment;
Pulsewidth Delay, including decay time, described decay time calculates when corresponding pulsewidth sequence starts, and if Described decay time is more than the total duration of this pulsewidth sequence, then after this pulsewidth EOS, according to this pulsewidth sequence knot Level maintenance pulse during bundle exports and terminates to described decay time.
Optionally, described pulsewidth Delay also includes:
Time delay level, after being used for making corresponding pulsewidth EOS, maintains pulse to export to described according to this time delay level Decay time terminates.
Optionally, also include the information of following types in each described information section:
Loop computation information, for the arbitrarily described pulsewidth sequence in affiliated message segment, described reference information and/or institute State pulsewidth Delay and be circulated computing.
With regard to the device in above-described embodiment, wherein the concrete mode of modules execution operation is in relevant the method Embodiment in be described in detail, explanation will be not set forth in detail herein.
Figure 10 is a kind of block diagram of the device 1000 for information generation according to an exemplary embodiment.For example, Device 1000 can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, tablet device, Armarium, body-building equipment, personal digital assistant etc..
With reference to Figure 10, device 1000 can include following one or more assemblies:Process assembly 1002, memorizer 1004, Power supply module 1006, multimedia groupware 1008, audio-frequency assembly 1010, the interface 1012 of input/output (I/O), sensor cluster 1014, and communication component 1016.
The integrated operation of the usual control device 1000 of process assembly 1002, such as with display, call, data communication, Camera operation and record operate associated operation.Treatment element 1002 can include one or more processors 1020 to execute Instruction, to complete all or part of step of above-mentioned method.Additionally, process assembly 1002 can include one or more moulds Block, is easy to the interaction between process assembly 1002 and other assemblies.For example, process assembly 1002 can include multi-media module, To facilitate the interaction between multimedia groupware 10010 and process assembly 1002.
Memorizer 1004 is configured to store various types of data to support the operation in device 1000.These data Example include on device 1000 operation any application program or method instruction, contact data, telephone book data, Message, picture, video etc..Memorizer 1004 can by any kind of volatibility or non-volatile memory device or they Combination is realized, such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), erasable can Program read-only memory (EPROM), programmable read only memory (PROM), read only memory (ROM), magnetic memory, flash memory Reservoir, disk or CD.
Power supply module 1006 provides electric power for the various assemblies of device 1000.Power supply module 1006 can include power management System, one or more power supplys, and other generate, manage and distribute, with for device 1000, the assembly that electric power is associated.
Multimedia groupware 1008 includes the screen of one output interface of offer between described device 1000 and user.? In some embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, Screen may be implemented as touch screen, to receive the input signal from user.Touch panel includes one or more touch and passes Sensor is with the gesture on sensing touch, slip and touch panel.Described touch sensor can not only sensing touch or slip be dynamic The border made, but also the detection persistent period related to described touch or slide and pressure.In certain embodiments, many Media component 1008 includes a front-facing camera and/or post-positioned pick-up head.When device 1000 is in operator scheme, such as shoot mould When formula or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each preposition shooting Head and post-positioned pick-up head can be the optical lens system of a fixation or have focusing and optical zoom capabilities.
Audio-frequency assembly 1010 is configured to output and/or input audio signal.For example, audio-frequency assembly 1010 includes a wheat Gram wind (MIC), when device 1000 is in operator scheme, such as call model, logging mode and speech recognition mode when, mike quilt It is configured to receive external audio signal.The audio signal being received can be further stored in memorizer 1004 or via communication Assembly 1016 sends.In certain embodiments, audio-frequency assembly 1010 also includes a speaker, for exports audio signal.
I/O interface 1012 is for providing interface, above-mentioned peripheral interface module between process assembly 1002 and peripheral interface module Can be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and Locking press button.
Sensor cluster 1014 includes one or more sensors, for providing the state of various aspects to comment for device 1000 Estimate.For example, sensor cluster 1014 can detect/the closed mode of opening of device 1000, the relative localization of assembly, such as institute State the display that assembly is device 1000 and keypad, sensor cluster 1014 can be with detection means 1000 or device 1,000 1 The position change of individual assembly, user is presence or absence of with what device 1000 contacted, device 1000 orientation or acceleration/deceleration and dress Put 1000 temperature change.Sensor cluster 1014 can include proximity transducer, is configured to do not having any physics The presence of object nearby is detected during contact.Sensor cluster 1014 can also include optical sensor, and such as CMOS or ccd image sense Device, for using in imaging applications.In certain embodiments, this sensor cluster 1014 can also include acceleration sensing Device, gyro sensor, Magnetic Sensor, pressure transducer or temperature sensor.
Communication component 1016 is configured to facilitate the communication of wired or wireless way between device 1000 and other equipment.Dress Put 1000 and can access wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.Exemplary at one In embodiment, communication component 1016 receives related from the broadcast singal of external broadcasting management system or broadcast via broadcast channel Information.In one exemplary embodiment, described communication component 1016 also includes near-field communication (NFC) module, to promote short distance Communication.For example, RF identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra broadband can be based in NFC module (UWB) technology, bluetooth (BT) technology and other technologies are realizing.
In the exemplary embodiment, device 1000 can be by one or more application specific integrated circuits (ASIC), numeral Signal processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing above-mentioned signal creating method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided As included the memorizer 1004 instructing, above-mentioned instruction can be executed by the processor 1020 of device 1000 to complete said method.Example If, described non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, soft Disk and optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in described storage medium is by the process of mobile terminal So that mobile terminal is able to carry out a kind of signal creating method during device execution, methods described includes:
Determine the control function being triggered;
Obtain the corresponding pulsewidth modulation of control function that is default and being triggered and describe data, described pulsewidth modulation description Data is used for describing corresponding pulse-width signal, and wherein said pulsewidth modulation describes data and includes constituting described pulsewidth modulation letter Number the parameter information of each waveform segment and constitute described pulse-width signal all waveform segments between syntagmatic Information;
Data is described according to described pulsewidth modulation, generates described pulse-width signal.
Those skilled in the art, after considering description and putting into practice invention disclosed herein, will readily occur to its of the present invention Its embodiment.The application is intended to any modification, purposes or the adaptations of the present invention, these modifications, purposes or Person's adaptations are followed the general principle of the present invention and are included the undocumented common knowledge in the art of the disclosure Or conventional techniques.Description and embodiments are considered only as exemplary, and true scope and spirit of the invention are by following Claim is pointed out.
It is described above and precision architecture illustrated in the accompanying drawings it should be appreciated that the invention is not limited in, and And various modifications and changes can carried out without departing from the scope.The scope of the present invention only to be limited by appended claim.

Claims (13)

1. a kind of signal creating method is it is characterised in that include:
Determine the control function being triggered;
Obtain the corresponding pulsewidth modulation of control function that is default and being triggered and describe data, described pulsewidth modulation describes data For describing corresponding pulse-width signal, wherein said pulsewidth modulation describes data and includes constituting described pulse-width signal Syntagmatic information between the parameter information of each waveform segment and all waveform segments constituting described pulse-width signal; Described pulsewidth modulation describes data and includes multiple message segments, constitutes the parameter letter of each waveform segment of described pulse-width signal Breath and described syntagmatic information are located in corresponding message segment respectively, and are quoted based on unique ID between message segment When, unique ID of the message segment being cited describes in data in pulsewidth modulation for this message segment and puts in order;
Data is described according to described pulsewidth modulation, generates described pulse-width signal.
2. method according to claim 1 is it is characterised in that described syntagmatic information is located at the message segment of predeterminated position In, and the parameter information of each waveform segment of the described pulse-width signal of composition is respectively in remaining message segment.
3. method according to claim 2 is it is characterised in that the message segment of described predeterminated position is the plurality of message segment In last message segment.
4. method according to claim 1 is it is characterised in that each described information section is included in the information of following types At least one:
The persistent period of each pulse in pulsewidth sequence and this pulsewidth sequence and instruction level;
Reference information to remaining message segment;
Pulsewidth Delay, including decay time, described decay time calculates when corresponding pulsewidth sequence starts, and if described Decay time is more than the total duration of this pulsewidth sequence, then after this pulsewidth EOS, during according to this pulsewidth EOS Level maintain pulse to export and terminate to described decay time.
5. method according to claim 4 is it is characterised in that described pulsewidth Delay also includes:
Time delay level, after being used for making corresponding pulsewidth EOS, maintains pulse to export to described time delay according to this time delay level Time terminates.
6. method according to claim 4 is it is characterised in that also include the letter of following types in each described information section Breath:
Loop computation information, for the arbitrarily described pulsewidth sequence in affiliated message segment, described reference information and/or described arteries and veins Wide Delay is circulated computing.
7. a kind of signal generating apparatus are it is characterised in that include:
Determining unit, for determining the control function being triggered;
Acquiring unit, describes data for obtaining the corresponding pulsewidth modulation of control function that is default and being triggered, described arteries and veins Wide modulation description data is used for describing corresponding pulse-width signal, and wherein said pulsewidth modulation describes data and includes described in composition Between the parameter information of each waveform segment of pulse-width signal and all waveform segments constituting described pulse-width signal Syntagmatic information;
Signal generating unit, for describing data according to described pulsewidth modulation, generates described pulse-width signal;Wherein, described pulsewidth Modulation description data includes multiple message segments, constitutes the parameter information of each waveform segment of described pulse-width signal and described Syntagmatic information is located in corresponding message segment respectively.
8. device according to claim 7 is it is characterised in that described syntagmatic information is located at the message segment of predeterminated position In, and the parameter information of each waveform segment of the described pulse-width signal of composition is respectively in remaining message segment.
9. device according to claim 8 is it is characterised in that the message segment of described predeterminated position is the plurality of message segment In last message segment.
10. device according to claim 7 is it is characterised in that each described information section includes the information of following types At least one of:
The persistent period of each pulse in pulsewidth sequence and this pulsewidth sequence and instruction level;
Reference information to remaining message segment;
Pulsewidth Delay, including decay time, described decay time calculates when corresponding pulsewidth sequence starts, and if described Decay time is more than the total duration of this pulsewidth sequence, then after this pulsewidth EOS, during according to this pulsewidth EOS Level maintain pulse to export and terminate to described decay time.
11. devices according to claim 10 are it is characterised in that described pulsewidth Delay also includes:
Time delay level, after being used for making corresponding pulsewidth EOS, maintains pulse to export to described time delay according to this time delay level Time terminates.
12. devices according to claim 10 are it is characterised in that also include the letter of following types in each described information section Breath:
Loop computation information, for the arbitrarily described pulsewidth sequence in affiliated message segment, described reference information and/or described arteries and veins Wide Delay is circulated computing.
13. a kind of electronic equipments are it is characterised in that include:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to:
Determine the control function being triggered;
Obtain the corresponding pulsewidth modulation of control function that is default and being triggered and describe data, described pulsewidth modulation describes data For describing corresponding pulse-width signal, wherein said pulsewidth modulation describes data and includes constituting described pulse-width signal Syntagmatic information between the parameter information of each waveform segment and all waveform segments constituting described pulse-width signal;
Data is described according to described pulsewidth modulation, generates described pulse-width signal;Wherein, described pulsewidth modulation describes packet Include multiple message segments, constitute the parameter information of each waveform segment of described pulse-width signal and described syntagmatic information is divided Wei Yu not be in corresponding message segment.
CN201410470026.2A 2014-09-15 2014-09-15 Signal generating method and device and electronic device Active CN104242880B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410470026.2A CN104242880B (en) 2014-09-15 2014-09-15 Signal generating method and device and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410470026.2A CN104242880B (en) 2014-09-15 2014-09-15 Signal generating method and device and electronic device

Publications (2)

Publication Number Publication Date
CN104242880A CN104242880A (en) 2014-12-24
CN104242880B true CN104242880B (en) 2017-02-15

Family

ID=52230355

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410470026.2A Active CN104242880B (en) 2014-09-15 2014-09-15 Signal generating method and device and electronic device

Country Status (1)

Country Link
CN (1) CN104242880B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108877185B (en) * 2018-08-24 2021-06-22 深圳和而泰小家电智能科技有限公司 Bluetooth remote control method and circuit

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6526094B1 (en) * 1997-12-01 2003-02-25 Nec Corporation PWM Circuit
KR20040051635A (en) * 2002-12-11 2004-06-19 명지대학교 A remote control device
CN1862565A (en) * 2005-05-11 2006-11-15 盛群半导体股份有限公司 Coding format for passive RF identifying system
CN101127156A (en) * 2006-08-17 2008-02-20 晨星半导体股份有限公司 Universal method for identifying remote control instruction and the related device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6526094B1 (en) * 1997-12-01 2003-02-25 Nec Corporation PWM Circuit
KR20040051635A (en) * 2002-12-11 2004-06-19 명지대학교 A remote control device
CN1862565A (en) * 2005-05-11 2006-11-15 盛群半导体股份有限公司 Coding format for passive RF identifying system
CN101127156A (en) * 2006-08-17 2008-02-20 晨星半导体股份有限公司 Universal method for identifying remote control instruction and the related device

Also Published As

Publication number Publication date
CN104242880A (en) 2014-12-24

Similar Documents

Publication Publication Date Title
CN105426200A (en) Communication module firmware and plug-in generation method and apparatus
CN106131792B (en) User movement state monitoring method and device
RU2656693C2 (en) Event prompting method and device
CN104699248A (en) Electronic equipment, device and method for control of audio play
CN105511631A (en) Gesture recognition method and device
CN104867506A (en) Music automatic control method and device
CN104484045A (en) Audio play control method and device
CN104133851A (en) Audio similarity detecting method, audio similarity detecting device and electronic equipment
CN108156026A (en) Intercom configuration method and device
CN104866140A (en) Screen calibration method and screen calibration apparatus
CN104462418A (en) Page displaying method and device and electronic device
CN105205494A (en) Similar picture identification method and device
CN105337839A (en) Exchange group control method and device
CN106034170A (en) Group generation method and apparatus
CN104331228A (en) Screen locking method and device
EP2988458A1 (en) Method and device for sending message
CN105426878A (en) Method and device for face clustering
CN104835516A (en) Music playing method and apparatus, and intelligent terminal
CN105979465A (en) Method and device for determining maximum output power value of earphone equipment
CN104463047A (en) Device and method for control modules to work
CN104503762A (en) Device and method for identifying electronic accessory
CN104539497B (en) Method for connecting network and device
CN104242880B (en) Signal generating method and device and electronic device
CN105120082A (en) State notification method and device
CN103970831B (en) Recommend the method and apparatus of icon

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant