CN104113391B - Baud rate adjusts device and method and cooking apparatus - Google Patents

Baud rate adjusts device and method and cooking apparatus Download PDF

Info

Publication number
CN104113391B
CN104113391B CN201410329186.5A CN201410329186A CN104113391B CN 104113391 B CN104113391 B CN 104113391B CN 201410329186 A CN201410329186 A CN 201410329186A CN 104113391 B CN104113391 B CN 104113391B
Authority
CN
China
Prior art keywords
baud rate
cooking
rate
baud
communication
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
CN201410329186.5A
Other languages
Chinese (zh)
Other versions
CN104113391A (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.)
Midea Group Co Ltd
Foshan Shunde Midea Electrical Heating Appliances Manufacturing Co Ltd
Original Assignee
Midea Group Co Ltd
Foshan Shunde Midea Electrical Heating Appliances Manufacturing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Midea Group Co Ltd, Foshan Shunde Midea Electrical Heating Appliances Manufacturing Co Ltd filed Critical Midea Group Co Ltd
Priority to CN201410329186.5A priority Critical patent/CN104113391B/en
Publication of CN104113391A publication Critical patent/CN104113391A/en
Application granted granted Critical
Publication of CN104113391B publication Critical patent/CN104113391B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention proposes a kind of baud rate adjustment device and a kind of baud rate adjusting methods, are used for cooking apparatus, wherein it includes: monitoring unit that baud rate, which adjusts device, the communication data of monitoring cooking apparatus transmission;Judging unit judges whether the cooking apparatus communicates normally according to the communication data;Processing unit adjusts the baud rate of the cooking apparatus when determining the cooking apparatus communication abnormality, so that cooking apparatus communication is normal.According to the technical solution of the present invention, cooking apparatus generate larger clock jitter and can not normal communication when, can make cooking apparatus by adaptively adjustment baud rate and restore normal communication automatically, and guarantee the correctness of communication data.

Description

Baud rate adjusts device and method and cooking apparatus
Technical field
The present invention relates to baud rate technical fields, adjust device, a kind of baud rate tune in particular to a kind of baud rate Adjusting method and a kind of cooking apparatus.
Background technique
For save the cost and reduce peripheral electron element, many MCU (Micro Control Unit, microprocessing unit) All using can integrate internal RC (resistance capacitance) oscillator come substitute external clock occur circuit (such as ceramic resonator, Crystal oscillator etc.), and the clock frequency that this oscillator generates under normal circumstances can make system worked well.But when When use environment severe (such as high temperature, ultralow temperature), RC oscillator can generate biggish drift, cause the clock jitter of system to be more than The error tolerance of system, and then the baud rate of system is caused to deviate intrinsic baud rate, so that system transmission communication data generate very Mostly mistake.
And due to the baud rate of existing system be it is fixed, RC oscillator generate larger clock jitter when, can not be adaptive The baud rate of system should be adjusted, therefore, when use environment is severe, when the internal RC drift biggish clocking error of excessive generation, System can not just restore normal communication automatically or even occur out of control.
Therefore, system generate larger clock jitter and can not normal communication when, how to make system by adaptively adjusting The baud rate of system and restore normal communication automatically, guarantee communication data correctness become urgent problem to be solved.
Summary of the invention
The present invention is directed to solve at least one of the technical problems existing in the prior art or related technologies.
For this purpose, an object of the present invention is to provide a kind of baud rates to adjust device.
It is another object of the present invention to propose a kind of cooking apparatus.
Another object of the present invention is to propose a kind of baud rate adjusting method.
To achieve the above object, according to the embodiment of the first aspect of the invention, a kind of baud rate adjustment dress is proposed It sets, is used for cooking apparatus, comprising: monitoring unit, the communication data of monitoring cooking apparatus transmission;Judging unit, according to described logical News data judge whether the cooking apparatus communicates normally;Processing unit, when determining the cooking apparatus communication abnormality, adjustment The baud rate of the cooking apparatus, so that cooking apparatus communication is normal.
The baud rate of embodiment according to the present invention adjusts device, by judging whether normal (the i.e. cooking pot of communication data Whether the clock jitter of tool alreadys exceed System Fault Tolerance range), and that is to say cooking apparatus determining that communication data is abnormal When can not carry out normal communication, adjustment baud rate that can be adaptive is normal to make to communicate, and makes data communication not by clock jitter Influence, finally operate normally the system of cooking apparatus.The present invention can adjust automatically communication frequency, solve system Clock is affected by the external environment the problem of leading to communication abnormality.
According to one embodiment of present invention, the judging unit includes: statistic unit, counts the communication data pre- If the error rate in the time;Judging unit, judges whether the error rate is greater than the default error rate, big in the error rate When the default error rate, the cooking apparatus communication abnormality is determined, be less than or equal to the default mistake in the error rate Accidentally when rate, determine that the cooking apparatus communication is normal.
The baud rate of embodiment according to the present invention adjusts device, passes through the mistake using communication data within a certain period of time Rate, can the communication state current to cooking apparatus accurately judged, i.e., when error rate is greater than default error rate, explanation Cooking apparatus communication abnormality, can not work normally, and when error rate is less than or equal to default error rate, illustrate that cooking apparatus communicates Normally, it can work normally, and then decided whether to adjust baud rate according to judging result.
According to one embodiment of present invention, further includes: baud is arranged according to the setting command received in setting unit Rate compensates radix;The processing unit is specifically used for: in the cooking apparatus communication abnormality, to initialize preset baud rate On the basis of number, increase or reduce one or more baud rates compensation radixes, to adjust the baud rate of the cooking apparatus, and control The statistic unit counts the error rate in the preset time again after each adjustment.
The baud rate of embodiment according to the present invention adjusts device, can be with default when adjusting cooking apparatus baud rate On the basis of baud rate in cooking apparatus, it is compensation radix with a small baud rate, increases or reduces n radix every time (base value can be arranged according to the baud rate size of cooking apparatus), to adjust the current baud rate of cooking apparatus.
In the above-mentioned technical solutions, it is preferable that the number on the basis of initializing preset baud rate increases or reduces one A or multiple baud rates compensate radix, to adjust the baud rate of the cooking apparatus, specifically: on the basis of the base value On, increase the baud rate every time with the n baud rate compensation radixes, until reaching the preset maximum magnitude baud Rate reduces the baud rate every time then again on the basis of the base value with the n baud rate compensation radixes;Or
Multiple baud rate offsets are set, according to the sequence of the multiple baud rate offset, in the base of the base value On plinth, a baud rate offset is successively increased, when determining result for communication abnormality, on the basis of the base value, is subtracted Small last time increased baud rate offset, and when determining result is still communication abnormality, increase next baud rate offset, Described in multiple baud rate offsets be using n baud rate compensation radix as first term, n baud rate compensation radix for tolerance etc. Difference series.
Such as 1, increase M (that is to say and gradually increase M, 2M, 3M on the basis of base value ...) every time until cooking pot The baud rate of tool reaches the maximum magnitude of permission, then gradually decreases M every time again.Such as 2, using M as baud rate offset, adjusting When whole baud rate, increase M on the basis of base value for the first time, the accuracy of communication data does not reach normal model if detecting It encloses, M is reduced on the basis of base value, then increase 2M on the basis of base value, then reduce on the basis of base value 2M ... repeatedly, until the accuracy of communication data reaches normal range (NR).Wherein M is n times of baud rate compensation radix, n For the integer more than or equal to 1, then the baud rate offset increasedd or decreased every time is formed using M as the arithmetic progression of tolerance.
Certainly, the mode for adjusting communication baud rate includes but is not limited to aforesaid way, can also be user rule of thumb with Meaning increases or reduces a numerical value.
Meanwhile during adjusting baud rate, baud rate of every adjustment just counts the mistake of a communication data again Accidentally rate stops adjusting cooking apparatus if detecting that the error rate of communication data has been lower than the default error rate of cooking apparatus Baud rate and so that cooking apparatus is carried out normal communication with current baud rate, if the error rate of communication data be still higher than it is default Error rate then continues to adjust baud rate, until communication restores normal.
According to one embodiment of present invention, the judging unit is also used to: in the baud rate for adjusting the cooking apparatus When, judge whether the baud rate is greater than preset maximum magnitude baud rate;The processing unit is also used to: determining the wave When special rate is greater than preset maximum magnitude baud rate, stop adjusting and controlling the cooking apparatus entering protected mode.
The baud rate of embodiment according to the present invention adjusts device, during adjusting baud rate, if the wave of adjustment Special rate has exceeded the allowed band of cooking apparatus, and the accuracy of the communication data of cooking apparatus is still reached to less than normal model It encloses, then illustrates cooking apparatus exception, normal communication can not be restored, it should force cooking apparatus to enter protected mode, such as force to close Machine etc., to protect the cooking apparatus.
Embodiment according to the second aspect of the invention proposes a kind of baud rate adjusting method, comprising: monitoring cooking pot Has the communication data of transmission;Judge whether the cooking apparatus communicates normally according to the communication data;Determining the culinary art When utensil communication abnormality, the baud rate of the cooking apparatus is adjusted, so that cooking apparatus communication is normal.
The baud rate adjusting method of embodiment according to the present invention, by judging the whether normal (cooking apparatus of communication data Clock jitter whether already exceed System Fault Tolerance range), and determine communication data it is abnormal, that is to say cooking apparatus without When method carries out normal communication, baud rate has deviated excessive, and adjustment baud rate that can be adaptive keeps communication normal, keeps the data logical News are not influenced by clock jitter, finally operate normally the system of cooking apparatus.The present invention being capable of adjust automatically baud Rate, solving the problems, such as that system clock is affected by the external environment leads to communication abnormality.According to one embodiment of present invention, according to The communication data judges whether the cooking apparatus communicates normally, specifically includes: counting the communication data in preset time Interior error rate;Judge whether the error rate is greater than the default error rate, is greater than the default mistake in the error rate When rate, the cooking apparatus communication abnormality is determined, when the error rate is less than or equal to the default error rate, described in judgement Cooking apparatus communication is normal.
The baud rate adjusting method of embodiment according to the present invention passes through the mistake using communication data within a certain period of time Rate, can the communication state current to cooking apparatus accurately judged, i.e., when error rate is greater than default error rate, explanation Cooking apparatus communication abnormality, can not work normally, and when error rate is less than or equal to default error rate, illustrate that cooking apparatus communicates Normally, it can work normally, and then decided whether to adjust baud rate according to judging result.
According to one embodiment of present invention, further includes: according to the setting command received, baud rate is set and compensates base Number;In the cooking apparatus communication abnormality, number, increases or reduces one or more on the basis of initializing preset baud rate Baud rate compensates radix, to adjust the baud rate of the cooking apparatus, and counts the preset time again after each adjustment Interior error rate.
The baud rate adjusting method of embodiment according to the present invention can be with default when adjusting cooking apparatus baud rate On the basis of baud rate in cooking apparatus, it is compensation radix with a small baud rate, increases or reduces n radix every time (base value can be arranged according to the baud rate size of cooking apparatus), to adjust the current baud rate of cooking apparatus.
In the above-mentioned technical solutions, it is preferable that the number on the basis of initializing preset baud rate increases or reduces one A or multiple baud rates compensate radix, to adjust the baud rate of the cooking apparatus, specifically: on the basis of the base value On, increase the baud rate every time with the n baud rate compensation radixes, until reaching the preset maximum magnitude baud Rate reduces the baud rate every time then again on the basis of the base value with the n baud rate compensation radixes;Or
Multiple baud rate offsets are set, according to the sequence of the multiple baud rate offset, in the base of the base value On plinth, a baud rate offset is successively increased, when determining result for communication abnormality, on the basis of the base value, is subtracted Small last time increased baud rate offset, and when determining result is still communication abnormality, increase next baud rate offset, Described in multiple baud rate offsets be using n baud rate compensation radix as first term, n baud rate compensation radix for tolerance etc. Difference series.
Such as 1, increase M (that is to say and gradually increase M, 2M, 3M on the basis of base value ...) every time until cooking pot The baud rate of tool reaches the maximum magnitude of permission, then gradually decreases M every time again.Such as 2, using M as baud rate offset, adjusting When whole baud rate, increase M on the basis of base value for the first time, the accuracy of communication data does not reach normal model if detecting It encloses, M is reduced on the basis of base value, then increase 2M on the basis of base value, then reduce on the basis of base value 2M ... repeatedly, until the accuracy of communication data reaches normal range (NR).Wherein M is n times of baud rate compensation radix, n For the integer more than or equal to 1, then the baud rate offset increasedd or decreased every time is formed using M as the arithmetic progression of tolerance.
Certainly, the mode for adjusting baud rate includes but is not limited to aforesaid way, can also be that user rule of thumb arbitrarily increases Big or one numerical value of reduction.
Meanwhile during adjusting baud rate, baud rate of every adjustment just counts the mistake of a communication data again Accidentally rate stops adjusting cooking apparatus if detecting that the error rate of communication data has been lower than the default error rate of cooking apparatus Baud rate and so that cooking apparatus is carried out normal communication with current baud rate, if the error rate of communication data be still higher than it is default Error rate then continues to adjust baud rate, until communication restores normal.
According to one embodiment of present invention, when adjusting the baud rate of the cooking apparatus, judge that the baud rate is It is no to be greater than preset maximum magnitude baud rate;When determining that the baud rate is greater than preset maximum magnitude baud rate, stop adjusting It is whole and control the cooking apparatus and enter protected mode.
The baud rate of the baud rate adjusting method of embodiment according to the present invention, embodiment according to the present invention adjusts dress It sets, during adjusting baud rate, if the baud rate of adjustment has exceeded the allowed band of cooking apparatus, and cooking apparatus The accuracy of communication data still reach to less than normal range (NR), then illustrate cooking apparatus exception, normal communication can not be restored, it should Cooking apparatus is forced to enter protected mode, such as forced shutdown, to protect the cooking apparatus.
Through the invention, system generate larger clock jitter and can not normal communication when, system may be implemented by from It adapts to adjustment baud rate and restores normal communication automatically, guarantee the correctness of communication data.
Detailed description of the invention
Above-mentioned and/or additional aspect of the invention and advantage will become from the description of the embodiment in conjunction with the following figures Obviously and it is readily appreciated that, in which:
Fig. 1 shows the structural schematic diagram of baud rate adjustment device according to an embodiment of the invention;
Fig. 2 shows the flow charts of baud rate adjusting method according to an embodiment of the invention;
Fig. 3 shows the flow chart of baud rate adjusting method according to another embodiment of the invention.
Specific embodiment
To better understand the objects, features and advantages of the present invention, with reference to the accompanying drawing and specific real Applying mode, the present invention is further described in detail.It should be noted that in the absence of conflict, the implementation of the application Feature in example and embodiment can be combined with each other.
In the following description, numerous specific details are set forth in order to facilitate a full understanding of the present invention, still, the present invention may be used also To be implemented using other than the one described here other modes, therefore, protection scope of the present invention is not by described below Specific embodiment limitation.
Fig. 1 shows the structural schematic diagram of baud rate adjustment device according to an embodiment of the invention.
As shown in Figure 1, baud rate according to an embodiment of the invention adjusts device 100, it to be used for cooking apparatus, packet It includes: monitoring unit 102, the communication data of monitoring cooking apparatus transmission;Judging unit 104 judges institute according to the communication data State whether cooking apparatus communicates normally;Processing unit 106 adjusts the culinary art when determining the cooking apparatus communication abnormality The baud rate of utensil, so that cooking apparatus communication is normal.
The baud rate of embodiment according to the present invention adjusts device 100, by judging the whether normal (cooking pot of communication data Whether the clock jitter of tool alreadys exceed System Fault Tolerance range), and determining that communication data is abnormal, it that is to say cooking apparatus When can not carry out normal communication, adjustment baud rate that can be adaptive is normal to make to communicate, and makes data communication not by clock jitter Influence, finally operate normally the system of cooking apparatus.The present invention can adjust automatically baud rate, when solving system Clock is affected by the external environment the problem of leading to communication abnormality.
According to one embodiment of present invention, the judging unit 104 includes: statistic unit 1042, counts the communication The error rate of data within a preset time;Judging unit 1044, judges whether the error rate is greater than the default error rate, When the error rate is greater than the default error rate, determines the cooking apparatus communication abnormality, be less than or wait in the error rate When the default error rate, determine that the cooking apparatus communication is normal.
The baud rate of embodiment according to the present invention adjusts device 100, within a certain period of time by utilization communication data Error rate, can the communication state current to cooking apparatus accurately judged, i.e., when error rate is greater than default error rate, Illustrate cooking apparatus communication abnormality, can not work normally, when error rate is less than or equal to default error rate, illustrates cooking apparatus Communication is normal, can work normally, and then is decided whether to adjust baud rate according to judging result.
According to one embodiment of present invention, further includes: wave is arranged according to the setting command received in setting unit 108 Special rate compensates radix;The processing unit 106 is specifically used for: preset to initialize in the cooking apparatus communication abnormality Number on the basis of baud rate increases or reduces one or more baud rate compensation radixes, to adjust the baud rate of the cooking apparatus, And it controls the statistic unit 1042 and counts error rate in the preset time again after each adjustment.
The baud rate of embodiment according to the present invention adjusts device 100, can be with default when adjusting cooking apparatus frequency On the basis of baud rate in cooking apparatus, it is compensation radix with a small baud rate, increases or reduces n radix every time (base value can be arranged according to the baud rate size of cooking apparatus), to adjust the current baud rate of cooking apparatus.
In the above-mentioned technical solutions, it is preferable that the number on the basis of initializing preset baud rate increases or reduces one A or multiple baud rates compensate radix, to adjust the baud rate of the cooking apparatus, specifically: on the basis of the base value, Increase the baud rate every time with the n baud rate compensation radixes, until reaching the preset maximum magnitude baud rate, so Afterwards again on the basis of the base value, reduce the baud rate every time with the n baud rate compensation radixes.For example, increasing every time Big M (that is to say and gradually increase M, 2M, 3M on the basis of base value ...) is until the baud rate of cooking apparatus reaches permission Then maximum magnitude gradually decreases M every time again, wherein M is n times of baud rate compensation radix, and n is the integer more than or equal to 1.
In the above-mentioned technical solutions, another preferred embodiment are as follows: multiple baud rate offsets are set, according to the multiple wave The sequence of special rate offset successively increases a baud rate offset on the basis of base value, is determining result for communication When abnormal, on the basis of the base value, reduce last time increased baud rate offset, and determining that result is still communication abnormality When, increase next baud rate offset, wherein the multiple baud rate offset is headed by n baud rate compensation radix , n baud rate compensation radix is the arithmetic progression of tolerance.Such as: using M as baud rate offset, when adjusting baud rate, the Once increase M on the basis of base value, in base value if detecting that the accuracy of communication data does not reach normal range (NR) On the basis of reduce M, it is so anti-then to increase 2M on the basis of base value, then reduce 2M on the basis of base value ... Multiple, until the accuracy of communication data reaches normal range (NR), wherein M is n times of baud rate compensation radix, and n is more than or equal to 1 Integer, then the baud rate offset increasedd or decreased every time are formed using M as the arithmetic progression of tolerance.
Certainly, the mode for adjusting baud rate includes but is not limited to aforesaid way, can also be that user rule of thumb arbitrarily increases Big or one numerical value of reduction.
Meanwhile during adjusting baud rate, baud rate of every adjustment just counts the mistake of a communication data again Accidentally rate stops adjusting cooking apparatus if detecting that the error rate of communication data has been lower than the default error rate of cooking apparatus Baud rate and so that cooking apparatus is carried out normal communication with current baud rate, if the error rate of communication data be still higher than it is default Error rate then continues to adjust baud rate, until communication restores normal.
According to one embodiment of present invention, the judging unit 104 is also used to: in the baud for adjusting the cooking apparatus When rate, judge whether the baud rate is greater than preset maximum magnitude baud rate;The processing unit 106 is also used to: being determined When the baud rate is greater than preset maximum magnitude baud rate, stop adjusting and controlling the cooking apparatus entering protected mode.
The baud rate of embodiment according to the present invention adjusts device 100, during adjusting baud rate, if adjustment Baud rate has exceeded the allowed band of cooking apparatus, and the accuracy of the communication data of cooking apparatus is still reached to less than normal model It encloses, then illustrates cooking apparatus exception, normal communication can not be restored, it should force cooking apparatus to enter protected mode, such as force to close Machine etc., to protect the cooking apparatus.
Fig. 2 shows the flow charts of baud rate adjusting method according to an embodiment of the invention.
As shown in Fig. 2, baud rate adjusting method according to an embodiment of the invention, comprising: step 202, monitoring is cooked The communication data of utensil of preparing food transmission;Step 204, judge whether the cooking apparatus communicates normally according to the communication data;Step Rapid 206, when determining the cooking apparatus communication abnormality, the baud rate of the cooking apparatus is adjusted, so that the cooking apparatus Communication is normal.
The baud rate adjusting method of embodiment according to the present invention, by judging the whether normal (cooking apparatus of communication data Clock jitter whether already exceed System Fault Tolerance range), and determine communication data it is abnormal, that is to say cooking apparatus without When method carries out normal communication, baud rate has deviated excessive, and adjustment baud rate that can be adaptive keeps communication normal, keeps the data logical News are not influenced by clock jitter, finally operate normally the system of cooking apparatus.The present invention being capable of adjust automatically baud Rate, solving the problems, such as that system clock is affected by the external environment leads to communication abnormality.According to one embodiment of present invention, according to The communication data judges whether the cooking apparatus communicates normally, specifically includes: counting the communication data in preset time Interior error rate;Judge whether the error rate is greater than the default error rate, is greater than the default mistake in the error rate When rate, the cooking apparatus communication abnormality is determined, when the error rate is less than or equal to the default error rate, described in judgement Cooking apparatus communication is normal.
The baud rate adjusting method of embodiment according to the present invention passes through the mistake using communication data within a certain period of time Rate, can the communication state current to cooking apparatus accurately judged, i.e., when error rate is greater than default error rate, explanation Cooking apparatus communication abnormality, can not work normally, and when error rate is less than or equal to default error rate, illustrate that cooking apparatus communicates Normally, it can work normally, and then decided whether to adjust baud rate according to judging result.
According to one embodiment of present invention, further includes: according to the setting command received, baud rate is set and compensates base Number;In the cooking apparatus communication abnormality, number, increases or reduces one or more on the basis of initializing preset baud rate Baud rate compensates radix, to adjust the baud rate of the cooking apparatus, and counts the preset time again after each adjustment Interior error rate.
The baud rate adjusting method of embodiment according to the present invention can be with default when adjusting cooking apparatus baud rate On the basis of baud rate in cooking apparatus, it is compensation radix with a small baud rate, increases or reduces n radix every time (base value can be arranged according to the baud rate size of cooking apparatus), to adjust the current baud rate of cooking apparatus.
In the above-mentioned technical solutions, it is preferable that the number on the basis of initializing preset baud rate increases or reduces one A or multiple baud rates compensate radix, to adjust the baud rate of the cooking apparatus, specifically: on the basis of the base value, Increase the baud rate every time with the n baud rate compensation radixes, until reaching the preset maximum magnitude baud rate, so Afterwards again on the basis of the base value, reduce the baud rate every time with the n baud rate compensation radixes.For example, increasing every time Big M (that is to say and gradually increase M, 2M, 3M on the basis of base value ...) is until the baud rate of cooking apparatus reaches permission Then maximum magnitude gradually decreases M every time again, wherein M is n times of baud rate compensation radix, and n is the integer more than or equal to 1.
In the above-mentioned technical solutions, another preferred embodiment are as follows: multiple baud rate offsets are set, according to the multiple wave The sequence of special rate offset successively increases a baud rate offset on the basis of base value, is determining result for communication When abnormal, on the basis of the base value, reduce last time increased baud rate offset, and determining that result is still communication abnormality When, increase next baud rate offset, wherein the multiple baud rate offset is headed by n baud rate compensation radix , n baud rate compensation radix is the arithmetic progression of tolerance.Such as: using M as baud rate offset, when adjusting baud rate, the Once increase M on the basis of base value, in base value if detecting that the accuracy of communication data does not reach normal range (NR) On the basis of reduce M, it is so anti-then to increase 2M on the basis of base value, then reduce 2M on the basis of base value ... Multiple, until the accuracy of communication data reaches normal range (NR), wherein M is n times of baud rate compensation radix, and n is more than or equal to 1 Integer, then the baud rate offset increasedd or decreased every time are formed using M as the arithmetic progression of tolerance.
Certainly, the mode for adjusting baud rate includes but is not limited to aforesaid way, can also be that user rule of thumb arbitrarily increases Big or one numerical value of reduction.
Meanwhile during adjusting baud rate, baud rate of every adjustment just counts the mistake of a communication data again Accidentally rate stops adjusting cooking apparatus if detecting that the error rate of communication data has been lower than the default error rate of cooking apparatus Baud rate and so that cooking apparatus is carried out normal communication with current baud rate, if the error rate of communication data be still higher than it is default Error rate then continues to adjust baud rate, until communication restores normal.
According to one embodiment of present invention, when adjusting the baud rate of the cooking apparatus, judge that the baud rate is It is no to be greater than preset maximum magnitude baud rate;When determining that the baud rate is greater than preset maximum magnitude baud rate, stop adjusting It is whole and control the cooking apparatus and enter protected mode.
The baud rate adjusting method of embodiment according to the present invention, during adjusting baud rate, if adjustment baud Rate has exceeded the allowed band of cooking apparatus, and the accuracy of the communication data of cooking apparatus is still reached to less than normal range (NR), Then illustrate cooking apparatus exception, normal communication can not be restored, it should cooking apparatus be forced to enter protected mode, such as forced shutdown Deng to protect the cooking apparatus.
Fig. 3 shows the flow chart of baud rate adjusting method according to another embodiment of the invention.
As shown in figure 3, baud rate adjusting method according to another embodiment of the invention, comprising:
Step 302, the error rate of the communication data transmitted in cooking apparatus within a preset time is counted.
Step 304, the error rate is compared with the default error rate in preset time, if the error rate is less than Default error rate in preset time, thens follow the steps 306;Otherwise, step 308 is executed.
Step 306, when the error rate is less than the default error rate in preset time, control cooking apparatus, which is pressed, works as prewave Special rate carries out normal communication.
Step 308, when the error rate is greater than or equal to the default error rate in preset time, determine the cooking pot Have communication abnormality, can not work normally.
Step 310, the baud rate of the cooking apparatus is adjusted, and re-execute the steps 302.
The technical scheme of the present invention has been explained in detail above with reference to the attached drawings, through the invention, generates in cooking apparatus larger Clock jitter and can not normal communication when, can make cooking apparatus by adaptively adjust baud rate and restore positive normal open automatically News, and guarantee the correctness of communication data.
Term " connection " shall be understood in a broad sense, for example, it may be being fixedly connected, may be a detachable connection, or one Ground connection;It can be directly connected, it can also be indirectly connected through an intermediary.For those of ordinary skill in the art and Speech, the specific meanings of the above terms in the present invention can be understood according to specific conditions.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repair Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.

Claims (7)

1. a kind of baud rate adjusts device, it to be used for cooking apparatus characterized by comprising
Monitoring unit, the communication data of monitoring cooking apparatus transmission;
Judging unit judges whether the cooking apparatus communicates normally according to the communication data;
Processing unit adjusts the baud rate of the cooking apparatus, so that described cook when determining the cooking apparatus communication abnormality Utensil of preparing food communication is normal;
When adjusting the baud rate of the cooking apparatus, judge whether the baud rate is greater than preset maximum magnitude baud rate;
The processing unit is also used to:
When determining that the baud rate is greater than the preset maximum magnitude baud rate, stops adjusting and control the cooking apparatus Into protected mode;
Statistic unit counts the error rate of the communication data within a preset time;
Judging unit, judges whether the error rate is greater than default error rate, is greater than the default error rate in the error rate When, determine the cooking apparatus communication abnormality, when the error rate is less than or equal to the default error rate, is cooked described in judgement Utensil of preparing food communication is normal.
2. baud rate according to claim 1 adjusts device, which is characterized in that further include:
Setting unit is arranged baud rate and compensates radix according to the setting command received;
The processing unit is specifically used for:
In the cooking apparatus communication abnormality, number, increases or reduces one or more on the basis of initializing preset baud rate A baud rate compensates radix, to adjust the baud rate of the cooking apparatus, and controls the statistic unit and weighs after each adjustment Newly count the error rate in the preset time.
3. baud rate according to claim 2 adjusts device, which is characterized in that described to be to initialize preset baud rate Base value increases or reduces one or more baud rate compensation radixes, to adjust the baud rate of the cooking apparatus, specifically: Increase the baud rate every time on the basis of the base value with the n baud rate compensation radixes, until reaching described pre- If maximum magnitude baud rate, then reduce institutes every time on the basis of the base value with the described baud rates compensation radixes of n State baud rate;Or
Multiple baud rate offsets are set, according to the sequence of the multiple baud rate offset, on the basis of the base value A baud rate offset is successively increased, when determining result for communication abnormality, reduces last time on the basis of the base value Increased baud rate offset, and when determining result is still communication abnormality, increase next baud rate offset, it is plurality of The baud rate offset be using n baud rate compensation radix as first term, n baud rate compensation radix for tolerance equal differences Column;
Wherein, n is the integer more than or equal to 1.
4. a kind of cooking apparatus characterized by comprising baud rate adjustment dress as claimed any one in claims 1 to 3 It sets.
5. a kind of baud rate adjusting method is used for cooking apparatus characterized by comprising
Monitor the communication data of cooking apparatus transmission;
Judge whether the cooking apparatus communicates normally according to the communication data;
When determining the cooking apparatus communication abnormality, the baud rate of the cooking apparatus is adjusted, so that the cooking apparatus is logical News are normal;
When adjusting the baud rate of the cooking apparatus, judge whether the baud rate is greater than preset maximum magnitude baud rate;
When determining that the baud rate is greater than the preset maximum magnitude baud rate, stops adjusting and control the cooking apparatus Into protected mode;
Count the error rate of the communication data within a preset time;
Judge whether the error rate is greater than default error rate, when the error rate is greater than the default error rate, determines institute Cooking apparatus communication abnormality is stated, when the error rate is less than or equal to the default error rate, determines that the cooking apparatus is logical News are normal.
6. baud rate adjusting method according to claim 5, which is characterized in that further include:
According to the setting command received, baud rate is set and compensates radix;
In the cooking apparatus communication abnormality, number, increases or reduces one or more on the basis of initializing preset baud rate A baud rate compensates radix, to adjust the baud rate of the cooking apparatus, and when counting described default again after each adjustment Interior error rate.
7. baud rate adjusting method according to claim 6, which is characterized in that described to be to initialize preset baud rate Base value increases or reduces one or more baud rate compensation radixes, to adjust the baud rate of the cooking apparatus, specifically: Increase the baud rate every time on the basis of the base value with the n baud rate compensation radixes, until reaching described pre- If maximum magnitude baud rate, then reduce institutes every time on the basis of the base value with the described baud rates compensation radixes of n State baud rate;Or
Multiple baud rate offsets are set, according to the sequence of the multiple baud rate offset, on the basis of the base value A baud rate offset is successively increased, when determining result for communication abnormality, reduces last time on the basis of the base value Increased baud rate offset, and when determining result is still communication abnormality, increase next baud rate offset, it is plurality of The baud rate offset be using n baud rate compensation radix as first term, n baud rate compensation radix for tolerance equal differences Column;
Wherein, n is the integer more than or equal to 1.
CN201410329186.5A 2014-07-10 2014-07-10 Baud rate adjusts device and method and cooking apparatus Active CN104113391B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410329186.5A CN104113391B (en) 2014-07-10 2014-07-10 Baud rate adjusts device and method and cooking apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410329186.5A CN104113391B (en) 2014-07-10 2014-07-10 Baud rate adjusts device and method and cooking apparatus

Publications (2)

Publication Number Publication Date
CN104113391A CN104113391A (en) 2014-10-22
CN104113391B true CN104113391B (en) 2019-03-08

Family

ID=51710033

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410329186.5A Active CN104113391B (en) 2014-07-10 2014-07-10 Baud rate adjusts device and method and cooking apparatus

Country Status (1)

Country Link
CN (1) CN104113391B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110250919B (en) * 2019-07-23 2021-03-30 珠海格力电器股份有限公司 Cooking appliance control method and device and cooking appliance
CN111314018B (en) * 2019-11-01 2021-07-13 珠海格力电器股份有限公司 Baud rate self-adaptive adjustment processing system and method and information data processing terminal
CN112202528B (en) * 2020-08-17 2021-06-29 北京海泰方圆科技股份有限公司 Communication baud rate correction method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102324927A (en) * 2011-05-04 2012-01-18 中颖电子股份有限公司 Baud rate generator
CN102904688A (en) * 2012-10-12 2013-01-30 北京新雷能科技股份有限公司 Method and device for regulating baud rate
CN103199942A (en) * 2013-03-04 2013-07-10 福建联迪商用设备有限公司 Audio communication method and terminal utilizing same

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102324927A (en) * 2011-05-04 2012-01-18 中颖电子股份有限公司 Baud rate generator
CN102904688A (en) * 2012-10-12 2013-01-30 北京新雷能科技股份有限公司 Method and device for regulating baud rate
CN103199942A (en) * 2013-03-04 2013-07-10 福建联迪商用设备有限公司 Audio communication method and terminal utilizing same

Also Published As

Publication number Publication date
CN104113391A (en) 2014-10-22

Similar Documents

Publication Publication Date Title
CN104113391B (en) Baud rate adjusts device and method and cooking apparatus
EP2639704B1 (en) Modbus repeater with self-adaptive baud rate and self-adaptive baud rate system and method
US10075336B2 (en) Parameter adjustment method and apparatus
CN105277820A (en) Electric appliance monitor method and electric appliance monitor system
CN104168080A (en) Method and apparatus for baud rate self adaption, and equipment
EP2291916A1 (en) Automatic synchronization of an internal oscillator to an external frequency reference
US9088399B1 (en) Circuit and method for testing jitter tolerance
CN104214804A (en) Electromagnetic heating device and cookware detecting method thereof
CN104951026A (en) Automatic chip over-temperature control method and system based on embedded type temperature sensor
JP6588763B2 (en) Control system, support device, control device, and control method
CN105116985B (en) A kind of DDR clock frequency control method thereofs and system
EP3182544A1 (en) Digital power supply protection circuit and device
CN108278713A (en) A kind of compress control method and device
CN104634472A (en) Terminal battery temperature detection device, terminal, and terminal battery over-temperature protection method
CN103149970A (en) Clock calibration method and system
CN107367633B (en) Zero-cross processing method, device and equipment for voltage zero-crossing detection circuit
US20200195300A1 (en) Method and Device for Controlling Frequency Hopping, Transmitter and Receiver
CN105634640B (en) The implementation method and device of TDD synchro switches
CN105573854A (en) Terminal application processing method and device
CN110581814A (en) Baud rate adjusting method of communication equipment and communication equipment
EP3043493B1 (en) Frequency shift detection method and device
CN104771066A (en) Electric pressure cooker exhaust control method and device and electric pressure cooker
CN105305932A (en) Motor speed regulation control method and apparatus, and smoke ventilator
CN109644123B (en) Method for acquiring phase demodulation signal in clock recovery circuit and phase discriminator
CN109121240A (en) Cookware self-adaptive electromagnetic heating system, electromagnetic heater, method for heating and controlling

Legal Events

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