A kind of fsk signal demodulation method, device, embedded system and storage medium

文档序号:1758666 发布日期:2019-11-29 浏览:23次 中文

阅读说明:本技术 一种fsk信号解调方法、装置、嵌入式系统及存储介质 (A kind of fsk signal demodulation method, device, embedded system and storage medium ) 是由 李宁 于 2019-08-23 设计创作,主要内容包括:本申请公开了一种FSK信号解调方法、装置、嵌入式系统及存储介质,该方法包括:按照预设采样频率对频移键控FSK信号进行采样,得到信号采样数据;利用预设解调方法对所述信号采样数据进行解调,得到所述FSK信号对应的解调数据。其中,由于该FSK信号解调方法可以利用软代码实现,无需利用电路结构实现,从而无需使用FSK专用解调芯片解调FSK信号,降低了FSK信号的解调成本。(This application discloses a kind of fsk signal demodulation method, device, embedded system and storage mediums, this method comprises: sampling according to preset sample frequency to frequency shift keying fsk signal, obtain signal sample data;The signal sample data is demodulated using default demodulation method, obtains the corresponding solution adjusting data of the fsk signal.Wherein, it is realized since the fsk signal demodulation method can use soft code, is realized without using circuit structure, without using FSK special demodulating chip FSK signal demodulation, reduce the demodulation cost of fsk signal.)

1. a kind of fsk signal demodulation method characterized by comprising

Frequency shift keying fsk signal is sampled according to preset sample frequency, obtains signal sample data;

The signal sample data is demodulated using default demodulation method, obtains the corresponding solution adjusting data of the fsk signal.

2. the method according to claim 1, wherein described believe frequency shift keying fsk according to preset sample frequency It number is sampled, obtains signal sample data, specifically include:

When detecting signal origin identification, frequency shift keying fsk signal is sampled according to preset sample frequency, until examining Terminate to sample when measuring signal end of identification, obtains the signal sample data in sampling process.

3. according to the method described in claim 2, it is characterized in that, the signal origin identification includes the lasting height of the first duration The lasting low level of level and/or the second duration;

And/or

The signal end of identification includes the permanent High level of third duration and/or the lasting low level of the 4th duration.

4. the method according to claim 1, wherein further include:

According to destination sample precision, the preset sample frequency is determined.

5. a kind of fsk signal demodulating equipment characterized by comprising

Sampling unit obtains signal sample data for sampling according to preset sample frequency to frequency shift keying fsk signal;

Demodulating unit obtains the fsk signal pair for demodulating using default demodulation method to the signal sample data The solution adjusting data answered.

6. device according to claim 5, which is characterized in that the sampling unit is specifically used for:

When detecting signal origin identification, frequency shift keying fsk signal is sampled according to preset sample frequency, until examining Terminate to sample when measuring signal end of identification, obtains the signal sample data in sampling process.

7. device according to claim 6, which is characterized in that the signal origin identification includes the lasting height of the first duration The lasting low level of level and/or the second duration;

And/or

The signal end of identification includes the permanent High level of third duration and/or the lasting low level of the 4th duration.

8. device according to claim 5, which is characterized in that further include:

Determination unit, for determining the preset sample frequency according to destination sample precision.

9. a kind of embedded system, which is characterized in that the system comprises processor and memories;

The memory is for storing computer program;

The processor is used for the method according to any one of computer program perform claim requirement 1-4.

10. a kind of computer readable storage medium, which is characterized in that the computer readable storage medium is for storing computer Program, the computer program require method described in any one of 1-4 for perform claim.

Technical field

This application involves field of communication technology more particularly to a kind of fsk signal demodulation method, device, embedded system and Storage medium.

Background technique

Frequency shift keying (Frequency-shift keying, FSK) is the message transmitting procedure in cable communicating technology field In common modulation system, and be to implement to be easier to the advantages of FSK, the better performances of antinoise and anti-attenuation.

In the prior art, usually fsk signal is demodulated using FSK special demodulating chip, still, because with circuit knot The FSK special demodulating chip cost that structure is realized is higher, increases the demodulation cost of fsk signal.

Summary of the invention

In order to solve the above technical problem existing in the prior art, the application provides a kind of fsk signal demodulation method, dress It sets, embedded system and storage medium, can reduce the demodulation cost of fsk signal.

To achieve the goals above, technical solution provided by the embodiments of the present application is as follows:

The embodiment of the present application provides a kind of fsk signal demodulation method, comprising:

Frequency shift keying fsk signal is sampled according to preset sample frequency, obtains signal sample data;

The signal sample data is demodulated using default demodulation method, obtains the corresponding demodulation of the fsk signal Data.

Optionally, described that frequency shift keying fsk signal is sampled according to preset sample frequency, obtain signal sampling number According to specifically including:

When detecting signal origin identification, frequency shift keying fsk signal is sampled according to preset sample frequency, until Terminate to sample when detecting signal end of identification, obtains the signal sample data in sampling process.

Optionally, the signal origin identification include the first duration permanent High level and/or the second duration continue it is low Level;

And/or

The signal end of identification includes the permanent High level of third duration and/or the lasting low level of the 4th duration.

Optionally, the method also includes:

According to destination sample precision, the preset sample frequency is determined.

The embodiment of the present application also provides a kind of fsk signal demodulating equipments, comprising:

Sampling unit obtains signal sampling number for sampling according to preset sample frequency to frequency shift keying fsk signal According to;

Demodulating unit obtains the FSK letter for demodulating using default demodulation method to the signal sample data Number corresponding solution adjusting data.

Optionally, the sampling unit, is specifically used for:

When detecting signal origin identification, frequency shift keying fsk signal is sampled according to preset sample frequency, until Terminate to sample when detecting signal end of identification, obtains the signal sample data in sampling process.

Optionally, the signal origin identification include the first duration permanent High level and/or the second duration continue it is low Level;

And/or

The signal end of identification includes the permanent High level of third duration and/or the lasting low level of the 4th duration.

Optionally, described device further include:

Determination unit, for determining the preset sample frequency according to destination sample precision.

The embodiment of the present application also provides a kind of embedded systems, and the system comprises processor and memories;

The memory is for storing computer program;

The processor is used to execute any reality of the fsk signal demodulation method of above-mentioned offer according to the computer program Apply mode.

The embodiment of the present application also provides a kind of computer readable storage medium, the computer readable storage medium is used for Computer program is stored, the computer program is used to execute any embodiment of the fsk signal demodulation method of above-mentioned offer.

Compared with prior art, the embodiment of the present application has at least the following advantages:

In fsk signal demodulation method provided by the embodiments of the present application, according to preset sample frequency to frequency shift keying fsk signal It is sampled, obtains signal sample data;The signal sample data is demodulated using default demodulation method, is obtained described The corresponding solution adjusting data of fsk signal.Wherein, it is realized since the fsk signal demodulation method can use soft code, without using electricity Line structure is realized, without using FSK special demodulating chip FSK signal demodulation, reduces the demodulation cost of fsk signal.

Detailed description of the invention

In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The some embodiments recorded in application, for those of ordinary skill in the art, without creative efforts, It can also be obtained according to these attached drawings other attached drawings.

Fig. 1 is the flow chart of fsk signal demodulation method provided by the embodiments of the present application;

Fig. 2 is the structural schematic diagram of fsk signal demodulating equipment provided by the embodiments of the present application;

Fig. 3 is the structural schematic diagram of embedded system provided by the embodiments of the present application.

Specific embodiment

Currently, usually being demodulated using FSK special demodulating chip to fsk signal.However, inventor pass through it is special to FSK Research discovery is carried out with demodulation chip: since FSK special demodulating chip is realized with circuit structure, so that in the dedicated solution of FSK The circuit structure of the FSK special demodulating chip can not be changed after the factory of aligning piece, thus, after the factory of FSK special demodulating chip The FSK special demodulating chip can only carry out signal acquisition with fixed sample frequency, cause the demodulation of fsk signal to lack flexible Property, thus the limit value use scope of FSK special demodulating chip.In addition, the FSK special demodulating core also because being realized with circuit structure Piece higher cost increases the demodulation cost of fsk signal.

To solve the above-mentioned problems, the embodiment of the present application provides a kind of fsk signal demodulation method, and this method is according to default Sample frequency samples frequency shift keying fsk signal, obtains signal sample data;Using default demodulation method to the signal Sampled data is demodulated, and the corresponding solution adjusting data of the fsk signal is obtained.Wherein, since the fsk signal demodulation method can be with It is realized using soft code, is realized without using circuit structure, without using FSK special demodulating chip FSK signal demodulation, dropped The low demodulation cost of fsk signal.In addition, due also to the preset sample frequency in fsk signal demodulation method be it is adjustable, Be not it is fixed, thus, using fsk signal demodulation method carry out fsk signal demodulation when, only preset sample frequency need to be set For different numerical value, it just can be realized and signal acquisition carried out using different sample frequencys, demodulation hardware device (example that no replacement is required Such as, demodulation chip), the demodulation cost of fsk signal is further saved, the flexible demodulation of fsk signal is also achieved.

In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application Attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is only this Apply for a part of the embodiment, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art exist Every other embodiment obtained under the premise of creative work is not made, shall fall in the protection scope of this application.

Embodiment of the method

Referring to Fig. 1, which is the flow chart of fsk signal demodulation method provided by the embodiments of the present application.

Fsk signal demodulation method provided by the embodiments of the present application, including step S1-S2:

S1: fsk signal is sampled according to preset sample frequency, obtains signal sample data.

Used frequency when being sampled to fsk signal that preset sample frequency refers to;Moreover, in the embodiment of the present application The acquisition modes of preset sample frequency are not limited, for example, preset sample frequency can be preset, it is particularly possible to according to applied field Scape setting;Preset sample frequency can also be read from memory space;Preset sample frequency can also from other equipment (such as eventually End equipment) in obtain;Preset sample frequency can also be determined according to other sampling parameters (for example, sampling precision).

It in order to facilitate understanding and explains, is explained and illustrated below with reference to four examples.

As the first example, preset sample frequency can be redefined for fixed value;And the fixed value is according to application Scene settings.For example, preset sample frequency can be redefined for 12 times of fsk signal frequency.

As the second example: assuming that the first equipment is used to execute fsk signal demodulation method provided by the embodiments of the present application, the One equipment has the first memory space, and the second equipment has the second memory space, then at this point, the first equipment is executing FSK letter When number demodulation method, preset sample frequency can be read from the first memory space, can also be read from the second memory space Preset sample frequency.

It should be noted that the embodiment of the present application does not limit the second equipment, the second equipment can be any existing or not Come the equipment including the second memory space occurred, and the second memory space in the equipment can be accessed by the first equipment.

As third example, it is assumed that the first equipment is used to execute fsk signal demodulation method provided by the embodiments of the present application, and Third equipment is used to receive the preset sample frequency of user's input, then at this point, the first equipment is executing fsk signal demodulation method When, preset sample frequency can be obtained from third equipment, also can receive the preset sample frequency of third equipment transmission.

It should be noted that the embodiment of the present application does not limit third equipment, third equipment can be any existing or not Come the equipment of the preset sample frequency that can receive user's input occurred, and the equipment can send information to the first equipment, And/or first equipment can obtain information from the equipment.

As the 4th example: according to destination sample precision, determining preset sample frequency.

Wherein, destination sample precision refers to the sampling precision of fsk signal;Moreover, unlimited set the goal of the embodiment of the present application is adopted The acquisition modes of sample precision can use any acquisition modes that can obtain sampling precision of the existing or following appearance, For example, destination sample precision can be by executing the execution equipment of fsk signal demodulation method provided by the embodiments of the present application from default It is read in storage equipment, it can also be received by the execution equipment for executing fsk signal demodulation method provided by the embodiments of the present application The destination sample precision of destination sample precision or user's input that his equipment is sent, can also be provided by executing the embodiment of the present application The execution equipment of fsk signal demodulation method determine what method determined according to default precision.

In the fourth example, after getting destination sample precision, according to destination sample precision and preset sample frequency Between transformational relation, preset sample frequency can be accurately determined so that it is subsequent using preset sample frequency sampling obtain Fsk signal can reach destination sample precision.

It should be noted that above-mentioned be explained and say to the acquisition modes of default sampling precision by taking four examples as an example It is bright.However, the embodiment of the present application does not limit the acquisition modes of default sampling precision, default adopt can be obtained using any The acquisition modes of sample precision.

The related content of default sampling precision based on above-mentioned offer, the embodiment of the present application also provides a kind of the specific of S1 Embodiment, in this embodiment, S1 are specifically as follows: when detecting signal origin identification, according to preset sample frequency Fsk signal is sampled, until terminating to sample when detecting signal end of identification, obtains the signal sampling in sampling process Data.

Signal origin identification is to refer to the mark of the starting position of flag F SK signal;Moreover, the embodiment of the present application is unlimited Determine signal origin identification, as an example, signal origin identification may include the permanent High level of the first duration, it also may include The lasting low level of two durations can also include the permanent High level of the first duration and the lasting low level of the second duration.

Wherein, the first duration is for characterizing the lasting duration of high level, and the first duration can be preset, and especially may be used To be set according to application scenarios.For example, the first duration can be 10 seconds.

Second duration is for characterizing the lasting duration of low level, and the second duration can be preset, it is particularly possible to root It is set according to application scenarios.For example, the second duration can be 13 seconds.

Related content based on above-mentioned signal origin identification is it is found that the embodiment of the present application also provides movements " to detect Four kinds of embodiments of signal origin identification " introduce four kinds of embodiments in turn below.

As the first embodiment, when signal origin identification includes the permanent High level of the first duration, then " inspection is acted Measure signal origin identification ", it is specifically as follows: when initially receiving high level from the first moment, persistently receives high electricity later It is flat, high level is not received (it is, receiving low level or the second moment when the second moment when to the second moment Shi Wei receives any signal) when, however, it is determined that when a length of first duration between the first moment and the second moment, it is determined that detection To signal origin identification.

As second of embodiment, when signal origin identification includes the lasting low level of the second duration, then " inspection is acted Measure signal origin identification ", it is specifically as follows: when initially receiving low level from the first moment, persistently receives low electricity later It is flat, low level is not received (it is, receiving high level or the second moment when the second moment when to the second moment Shi Wei receives any signal) when, however, it is determined that when a length of second duration between the first moment and the second moment, it is determined that detection To signal origin identification.

As the third embodiment, when signal origin identification includes the permanent High level and the second duration of the first duration Continue low level, and the permanent High level of the first duration earlier than the second duration lasting low level when, then act and " detect signal Origin identification " is specifically as follows: when initially receiving high level from the first moment, high level is persistently received later, until arriving Low level is initially received when the second moment, persistently receives low level later, does not receive low level when the third moment When (not receiving any signal when it is, receiving high level or third moment when the third moment), however, it is determined that when first When a length of first duration and when a length of second duration between the second moment and third moment between the second moment is carved, then really Regular inspection measures signal origin identification.

As the 4th kind of embodiment, when signal origin identification includes the permanent High level and the second duration of the first duration Continue low level, and the lasting low level of the second duration earlier than the first duration permanent High level when, then act and " detect signal Origin identification " is specifically as follows: when initially receiving low level from the first moment, low level is persistently received later, until arriving High level is initially received when the second moment, persistently receives high level later, does not receive high level when the third moment When (not receiving any signal when it is, receiving low level or third moment when the third moment), however, it is determined that when first When a length of second duration and when a length of first duration between the second moment and third moment between the second moment is carved, then really Regular inspection measures signal origin identification.

The above are the related embodiments of movement " detecting signal origin identification " provided by the embodiments of the present application.

Signal end of identification refers to the mark for capableing of the end position of flag F SK signal;Moreover, the embodiment of the present application is unlimited Determine signal end of identification, as an example, signal end of identification may include the permanent High level of third duration, it also may include The lasting low level of four durations can also include the permanent High level of third duration and the lasting low level of the 4th duration.

Wherein, third duration is for characterizing high level duration, and third duration can be preset, especially It can be set according to application scenarios.For example, third duration can be 11 seconds.

4th duration is for characterizing low level duration, and the 4th duration can be preset, it is particularly possible to It is set according to application scenarios.For example, the 4th duration can be 12 seconds.

Related content based on above-mentioned signal end of identification is it is found that the embodiment of the present application also provides movements " to detect Four kinds of embodiments of signal end of identification " introduce four kinds of embodiments in turn below.

As the first embodiment, when signal end of identification includes the permanent High level of third duration, then " inspection is acted Measure signal end of identification ", it is specifically as follows: when initially receiving high level from the first moment, persistently receives high electricity later It is flat, high level is not received (it is, receiving low level or the second moment when the second moment when to the second moment Shi Wei receives any signal) when, however, it is determined that the when a length of third duration between the first moment and the second moment, it is determined that detection To signal end of identification.

As second of embodiment, when signal end of identification includes the lasting low level of the 4th duration, then " inspection is acted Measure signal end of identification ", it is specifically as follows: when initially receiving low level from the first moment, persistently receives low electricity later It is flat, low level is not received (it is, receiving high level or the second moment when the second moment when to the second moment Shi Wei receives any signal) when, however, it is determined that when a length of 4th duration between the first moment and the second moment, it is determined that detection To signal end of identification.

As the third embodiment, when signal end of identification includes the permanent High level and the 4th duration of third duration Continue low level, and the permanent High level of third duration earlier than the 4th duration lasting low level when, then act and " detect signal End of identification " is specifically as follows: when initially receiving high level from the first moment, high level is persistently received later, until arriving Low level is initially received when the second moment, persistently receives low level later, does not receive low level when the third moment When (not receiving any signal when it is, receiving high level or third moment when the third moment), however, it is determined that when first The when a length of third duration and when a length of 4th duration between the second moment and third moment between the second moment is carved, then really Regular inspection measures signal end of identification.

As the 4th kind of embodiment, when signal end of identification includes the permanent High level and the 4th duration of third duration Continue low level, and the lasting low level of the 4th duration earlier than third duration permanent High level when, then act and " detect signal End of identification " is specifically as follows: when initially receiving low level from the first moment, low level is persistently received later, until arriving High level is initially received when the second moment, persistently receives high level later, does not receive high level when the third moment When (not receiving any signal when it is, receiving low level or third moment when the third moment), however, it is determined that when first The when a length of 4th duration and when a length of third duration between the second moment and third moment between the second moment is carved, then really Regular inspection measures signal end of identification.

The above are the related embodiments of movement " detecting signal end of identification " provided by the embodiments of the present application.

Based on the related content of above-mentioned signal origin identification and signal end of identification, in order to accurately distinguish FSK letter Number starting position and end position, can with setting signal origin identification be different from signal end of identification.In order to facilitate understanding And explanation, it is illustrated below with reference to five examples.

As the first example, when signal origin identification includes the permanent High level of the first duration, and signal end of identification packet When including the lasting low level of the 4th duration, it is identical as the 4th duration to set the first duration, can also set the first duration with 4th duration is different, it is subsequent at this time can be in the detection process by being distinguished according to lasting high level or lasting low level Determine signal origin identification and signal end of identification.

As the second example, when signal origin identification includes the lasting low level of the second duration, and signal end of identification packet When including the permanent High level of third duration, it is identical as third duration to set the second duration, can also set the second duration with Third duration is different, it is subsequent at this time can be in the detection process by being distinguished according to lasting low level or lasting high level Determine signal origin identification and signal end of identification.

As third example, when signal origin identification includes the permanent High level of the first duration, and signal end of identification packet When including the permanent High level of third duration, then the duration for setting the first duration is different from the duration of third duration, with Continuing after an action of the bowels can be in the detection process by distinguishing signal origin identification and signal end of identification according to high level duration. For example, the first duration can be 10 seconds, and third duration can be 11 seconds.

As the 4th example: when signal end of identification includes the lasting low level of the second duration, and signal end of identification packet When including the lasting low level of the 4th duration, then the duration for setting the second duration is different from the duration of the 4th duration, with Continuing after an action of the bowels can be in the detection process by distinguishing signal end of identification and signal end of identification according to low level duration. For example, the second duration can be 10 seconds, and the 4th duration can be 11 seconds.

As the 5th example: when signal origin identification include the first duration permanent High level and the second duration continue it is low Level, and signal end of identification include third duration permanent High level and the 4th duration lasting low level when, then pass through benefit It is different from signal end of identification, three means at least one means in following three means come setting signal origin identification Specifically:

First means: the appearance sequence of low and high level is (it is, the first duration continues in setting signal origin identification Sequencing between high level and the lasting low level of the second duration) with signal end of identification in low and high level appearance sequence (it is, sequencing between the permanent High level of third duration and the lasting low level of the 4th duration) is different, with after an action of the bowels It is continuous signal origin identification and signal end of identification to be distinguished according to the appearance of low and high level sequence in the detection process.

Second means: high level duration in setting signal origin identification (it is, the first duration it is lasting when It is long) it is different from high level duration in signal end of identification (it is, duration of third duration), so as to it is subsequent can Signal origin identification and signal end of identification are distinguished according to high level duration in the detection process.

Third means: low level duration in setting signal origin identification (it is, the second duration it is lasting when It is long) it is different from low level duration in signal end of identification (it is, duration of the 4th duration), so as to it is subsequent can Signal origin identification and signal end of identification are distinguished according to low level duration in the detection process.

It should be noted that it is above-mentioned by taking five examples as an example to setting signal origin identification be different from signal end of identification into Row explanation.However, can also be terminated in the embodiment of the present application using other way setting signal origin identification different from signal Mark, for the sake of brevity, details are not described herein.

Related content based on above-mentioned signal origin identification and signal end of identification is it is found that in the embodiment of the present application, In When detecting signal origin identification, it is determined that start to receive fsk signal, start to believe FSK according to preset sample frequency at this time It number is sampled, and records and sample resulting data every time, until when detecting signal end of identification, it is determined that fsk signal It has been received that, no longer need to be sampled at this time, then terminated sampling process, and will be acquired in the sampling process it is resulting whole or Partial data, as the signal sample data in sampling process.It follows that in this embodiment, the embodiment of the present application mentions The fsk signal demodulation method of confession has execution condition, the execution condition specifically: is only detecting signal origin identification When, just execute fsk signal demodulation method provided by the embodiments of the present application.It so avoids executing always provided by the embodiments of the present application Fsk signal demodulation method has saved the fortune of the execution equipment for executing fsk signal demodulation method provided by the embodiments of the present application Row memory improves the execution efficiency of the execution equipment.

The above are the related contents of step S1.

S2: demodulating signal sample data using default demodulation method, obtains the corresponding solution adjusting data of fsk signal.

Default demodulation method can be preset, it is particularly possible to be set according to application scenarios;Moreover, the embodiment of the present application is not The specific embodiment of default demodulation method is limited, can use existing or following any of appearance can be to fsk signal The method demodulated executes step S2.

The above are the specific embodiments of the fsk signal demodulation method of embodiment of the method offer to press in this embodiment Frequency shift keying fsk signal is sampled according to preset sample frequency, obtains signal sample data;Using default demodulation method to institute It states signal sample data to be demodulated, obtains the corresponding solution adjusting data of the fsk signal.Wherein, due to the fsk signal demodulation side Method can use soft code and realize, realize without using circuit structure, without using FSK special demodulating chip to demodulate FSK Signal reduces the demodulation cost of fsk signal.In addition, due also to the preset sample frequency in fsk signal demodulation method is can be with Adjust, be not it is fixed, thus, using fsk signal demodulation method carry out fsk signal demodulation when, only need to be by default sampling Frequency is set as different numerical value, just can be realized and carries out signal acquisition using different sample frequencys, and no replacement is required demodulates hardware Equipment (for example, demodulation chip) further saves the demodulation cost of fsk signal, also achieves the flexible demodulation of fsk signal.

Based on the fsk signal demodulation method that above method embodiment provides, the embodiment of the present application also provides a kind of FSK letters Number demodulating equipment, is explained and illustrated with reference to the accompanying drawing.

Installation practice

The technology details for the fsk signal demodulating equipment that Installation practice provides, please refer to above method embodiment.

Referring to fig. 2, which is the structural schematic diagram of fsk signal demodulating equipment provided by the embodiments of the present application.

Fsk signal demodulating equipment 20 provided by the embodiments of the present application, comprising:

Sampling unit 21 obtains signal sampling for sampling according to preset sample frequency to frequency shift keying fsk signal Data;

Demodulating unit 22 obtains the FSK for demodulating using default demodulation method to the signal sample data The corresponding solution adjusting data of signal.

As an implementation, in order to improve demodulation accuracy, the sampling unit is specifically used for:

When detecting signal origin identification, frequency shift keying fsk signal is sampled according to preset sample frequency, until Terminate to sample when detecting signal end of identification, obtains the signal sample data in sampling process.

As an implementation, in order to improve demodulation accuracy, the signal origin identification includes holding for the first duration The lasting low level of continuous high level and/or the second duration;

And/or

The signal end of identification includes the permanent High level of third duration and/or the lasting low level of the 4th duration.

As an implementation, in order to improve demodulation accuracy, fsk signal demodulating equipment 20 further include:

Determination unit, for determining the preset sample frequency according to destination sample precision.

The above are the specific embodiments for the fsk signal demodulating equipment 20 that Installation practice provides, in this embodiment, Frequency shift keying fsk signal is sampled according to preset sample frequency, obtains signal sample data;Utilize default demodulation method pair The signal sample data is demodulated, and the corresponding solution adjusting data of the fsk signal is obtained.Wherein, since the fsk signal demodulates The function of device 20 can use soft code and realize, realize without using circuit structure, without using FSK special demodulating core Piece FSK signal demodulation reduces the demodulation cost of fsk signal.In addition, due also to used in the fsk signal demodulating equipment 20 Preset sample frequency be it is adjustable, be not it is fixed, thus, the fsk signal demodulating equipment 20 carry out fsk signal solution Preset sample frequency only need to be set as different numerical value by timing, just be can be realized and adopted using different sample frequency progress signals Collection, demodulation hardware device (for example, demodulation chip) that no replacement is required, further saves the demodulation cost of fsk signal, also achieves The flexible demodulation of fsk signal.

Based on the fsk signal demodulation method that above method embodiment provides, the embodiment of the present application also provides a kind of insertions Formula system, is explained and illustrated with reference to the accompanying drawing.

System embodiment

The technology details for the embedded system that system embodiment provides, please refer to embodiment of the method.

Referring to Fig. 3, which is the structural schematic diagram of embedded system provided by the embodiments of the present application.

Embedded system 30 provided by the embodiments of the present application, comprising: processor 31 and memory 32;

The memory 32 is for storing computer program;

The processor 31 is used to execute following steps according to the computer program:

Frequency shift keying fsk signal is sampled according to preset sample frequency, obtains signal sample data;

The signal sample data is demodulated using default demodulation method, obtains the corresponding demodulation of the fsk signal Data.

Optionally, described that frequency shift keying fsk signal is sampled according to preset sample frequency, obtain signal sampling number According to specifically including:

When detecting signal origin identification, frequency shift keying fsk signal is sampled according to preset sample frequency, until Terminate to sample when detecting signal end of identification, obtains the signal sample data in sampling process.

Optionally, the signal origin identification include the first duration permanent High level and/or the second duration continue it is low Level;

And/or

The signal end of identification includes the permanent High level of third duration and/or the lasting low level of the 4th duration.

Optionally, further includes:

According to destination sample precision, the preset sample frequency is determined.

It should be noted that the embodiment of the present application does not limit the specific structure of embedded system 30, can be it is existing or Any embedded system that future occurs.For example, embedded system can be microprocessor, arm processor, single-chip microcontroller etc..

It should be noted the unlimited author language for determining computer program of the embodiment of the present application, can use existing Or the following any computer language editor computer program occurred.For example, computer program can be obtained by C language editor It arrives, can also be obtained by assembler language editor.

It should also be noted that, the embodiment of the present application does not limit the type of processor 31, existing or future can be used Any any implementation of fsk signal demodulation method that above method embodiment offer can be provided according to computer program occurred The processor of mode.

It should also be noted that, the embodiment of the present application does not limit the type of memory 32, existing or future can be used Any memory that can store computer program occurred.For example, memory 32 can be flash memory, deposit at random Reservoir (Random Access Memory, RAM), read-only memory (Read-Only Memory, ROM) etc.

The above are the specific embodiments for the embedded system 30 that system embodiment provides, in this embodiment, processing Device 32 can be executed according to the computer program in memory 31 and be adopted according to preset sample frequency to frequency shift keying fsk signal Sample obtains signal sample data;The signal sample data is demodulated using default demodulation method, obtains the FSK letter Number corresponding solution adjusting data.In this way, due to being to realize the demodulated of fsk signal using soft code in the embedded system 30 Journey is realized without using circuit structure, without using FSK special demodulating chip FSK signal demodulation, reduces fsk signal Demodulation cost, to reduce the cost of embedded system.

Based on the fsk signal demodulation method that above method embodiment provides, the embodiment of the present application also provides a kind of calculating Machine readable storage medium storing program for executing, the computer readable storage medium for storing computer program, the computer program for execute with Lower step:

Frequency shift keying fsk signal is sampled according to preset sample frequency, obtains signal sample data;

The signal sample data is demodulated using default demodulation method, obtains the corresponding demodulation of the fsk signal Data.

Optionally, described that frequency shift keying fsk signal is sampled according to preset sample frequency, obtain signal sampling number According to specifically including:

When detecting signal origin identification, frequency shift keying fsk signal is sampled according to preset sample frequency, until Terminate to sample when detecting signal end of identification, obtains the signal sample data in sampling process.

Optionally, the signal origin identification include the first duration permanent High level and/or the second duration continue it is low Level;

And/or

The signal end of identification includes the permanent High level of third duration and/or the lasting low level of the 4th duration.

Optionally, further includes:

According to destination sample precision, the preset sample frequency is determined.

It should be noted that the embodiment of the present application is unlimited to determine computer readable storage medium, can use existing or future Any storage medium that can store computer program occurred.

It should be appreciated that in this application, " at least one (item) " refers to one or more, and " multiple " refer to two or two More than a."and/or" indicates may exist three kinds of relationships, for example, " A and/or B " for describing the incidence relation of affiliated partner It can indicate: only exist A, only exist B and exist simultaneously tri- kinds of situations of A and B, wherein A, B can be odd number or plural number.Word Symbol "/" typicallys represent the relationship that forward-backward correlation object is a kind of "or"." at least one of following (a) " or its similar expression, refers to Any combination in these, any combination including individual event (a) or complex item (a).At least one of for example, in a, b or c (a) can indicate: a, b, c, " a and b ", " a and c ", " b and c ", or " a and b and c ", and wherein a, b, c can be individually, can also To be multiple.

The above described is only a preferred embodiment of the present invention, being not intended to limit the present invention in any form.Though So the present invention has been disclosed as a preferred embodiment, and however, it is not intended to limit the invention.It is any to be familiar with those skilled in the art Member, without departing from the scope of the technical proposal of the invention, all using the methods and technical content of the disclosure above to the present invention Technical solution makes many possible changes and modifications or equivalent example modified to equivalent change.Therefore, it is all without departing from The content of technical solution of the present invention, according to the technical essence of the invention any simple modification made to the above embodiment, equivalent Variation and modification, all of which are still within the scope of protection of the technical scheme of the invention.

12页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:CE-OFDM相位解调系统及解调方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!