CN107196701A - Infrared communication method, apparatus and system - Google Patents
Infrared communication method, apparatus and system Download PDFInfo
- Publication number
- CN107196701A CN107196701A CN201610145841.0A CN201610145841A CN107196701A CN 107196701 A CN107196701 A CN 107196701A CN 201610145841 A CN201610145841 A CN 201610145841A CN 107196701 A CN107196701 A CN 107196701A
- Authority
- CN
- China
- Prior art keywords
- card module
- care facility
- custodial care
- traffic rate
- infrared 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B10/00—Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
- H04B10/11—Arrangements specific to free-space transmission, i.e. transmission through air or vacuum
- H04B10/114—Indoor or close-range type systems
- H04B10/1143—Bidirectional transmission
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/0001—Systems modifying transmission characteristics according to link quality, e.g. power backoff
- H04L1/0002—Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the transmission rate
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- Electromagnetism (AREA)
- Optical Communication System (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a kind of infrared communication method, apparatus and system, the infrared communication method includes:Whether custodial care facility detection card module connects;If it has, then being powered to the card module, and start infrared communication according to present communications speed;Shaken hands according to the present communications speed and the card module, the infrared communication successfully then set up between the custodial care facility and card module of shaking hands;Wherein, if it is unsuccessful to be shaken hands described in preset time, then the first traffic rate that the mode of operation that the custodial care facility is supported is allowed is polled, handshake request is sent using the first traffic rate for being polled to as the present communications speed to the card module, until the card module carries out response to the handshake request.The present invention disclosure satisfy that the requirement of infrared communication compatibility.The infrared communication method of the present invention, apparatus and system being capable of automatic adjusument traffic rates.
Description
Technical field
The present invention relates to communication application, more particularly to a kind of infrared communication method, device and it is
System.
Background technology
Fig. 1 is the application environment schematic diagram of infrared communication method.As shown in figure 1, the application environment includes
Custodial care facility 110 and card module 120.
Wherein, custodial care facility 110 is a kind of to measure and control human body physiological parameter, and can be set with known
Definite value is compared, if there is the exceeded equipment for sending alarm.The custodial care facility 110 is according to structure
It can be categorized as:Portable monitor, plug-in type monitor, remote measurement patient monitor, ECG monitor etc..
Card module 120 is then the plug-in type monitor acted in the custodial care facility 110.
If custodial care facility 110 is identical with the mode of operation that card module 120 is supported, and to be mutually matched
Traffic rate shaken hands, you can success of shaking hands, so as to set up infrared communication, carry out infrared data
Transmission.
However, the model of card module 120 is numerous on the market, the mode of operation that it is supported is different,
For example, mode of operation can be FIR mode, MIR patterns, SIR patterns etc., these mode of operation institutes
The traffic rate of permission is also not quite similar, for example, the traffic rate of FIR mode is usually 4Mb/s, MIR
The traffic rate that pattern allows is 0.576Mb/s-1.152Mb/s, and the traffic rate that SIR patterns allow is then
9600b/s-115.2Kb/s.Further, since itself functional requirement of card module 120 or production batch
It is different, it is also possible to even causing the card module 120 of same model, its traffic rate allowed
The problem of still suffering from difference.
At present, the custodial care facility 110 of single hardware configuration is generally difficult to meet different from traffic rate insert
Part module 120 carries out the requirement of infrared communication, i.e., existing infrared communication method still suffers from custodial care facility 110
The defect mutually incompatible from different card modules 120.
The content of the invention
Based on this, it is necessary to provide a kind of infrared communication method for being capable of automatic adjusument traffic rate, with
Make custodial care facility and different card modules compatible.
In addition, there is a need to, offer is a kind of to be capable of the infrared communications set of automatic adjusument traffic rate and is
System.
In order to solve the above-mentioned technical problem, the technical solution adopted in the present invention is:
A kind of infrared communication method, including:Whether custodial care facility detection card module connects;If it is,
Then powered to the card module, and start infrared communication according to present communications speed;According to described current
Traffic rate is shaken hands with the card module, and described shake hands successfully then sets up the custodial care facility with inserting
Infrared communication between part module;Wherein, if in preset time it is described shake hands it is unsuccessful, to the prison
The first traffic rate that the mode of operation that shield equipment is supported is allowed is polled, and is led to be polled to first
Speed is believed as the present communications speed and sends handshake request to the card module, until the plug-in unit
Module carries out response to the handshake request.
Further, it is described to set up after the infrared communication between the custodial care facility and card module, institute
Stating method also includes:Speed governing inquiry request is sent to the card module, to obtain the card module root
The response for asking to carry out is inquired to the speed governing according to the version information of storage;The version information includes described
The second traffic rate that the mode of operation that card module is supported is allowed;According to carried in the response
The present communications speed is adjusted two traffic rates, with according to the present communications speed of regulation and institute
State card module and carry out infrared communication.
Further, methods described also includes:If acquisition is inquired less than the card module to the speed governing
The response of request, then keep infrared communication with the present communications speed and the card module shaken hands when successfully.
Further, it is described fast to the present communications according to the second traffic rate carried in the response
Rate is adjusted, and is included with carrying out infrared communication according to the present communications speed of regulation and the card module:
Serial port baud rate is adjusted to preset value according to the second traffic rate carried in the response, the preset value
Match with second traffic rate;Signal is reconfigured according to the output of the serial port baud rate of regulation, passes through institute
State reconfigure signal carry out present communications speed reconfigure;Selected according to the serial port baud rate output control of regulation
Signal is selected, with according to control selections signal output infrared data corresponding with second traffic rate,
And then send the infrared data to the card module according to the present communications speed reconfigured.
A kind of infrared communication method, including:On card module after electricity, the version information loaded to it is carried out
Detection, to be stored to the version information detected;The version information includes the card module branch
The second traffic rate that the mode of operation held is allowed;With the maximum communication speed in second traffic rate
Rate is shaken hands with custodial care facility, and described shake hands successfully then is set up between the card module and custodial care facility
Infrared communication;Wherein, if described in preset time shake hands unsuccessful, the custodial care facility will be to it
The first traffic rate that the mode of operation of support is allowed is polled, with according to the first communication being polled to
Speed sends handshake request to the card module, until the card module is carried out to the handshake request
Response.
Further, it is described to set up after the infrared communication between the card module and custodial care facility, institute
Stating method also includes:The speed governing inquiry request that the custodial care facility is sent is received, and according to described in storage
Version information carries out response to speed governing inquiry request;According to the second communication speed carried in the response
Rate carries out present communications rate adaptation, to be carried out according to the present communications speed of regulation and the custodial care facility
Infrared communication.
Further, it is described that present communications speed is carried out according to the second traffic rate carried in the response
Regulation, is included with carrying out infrared communication according to the present communications speed of regulation and the custodial care facility:According to
The second traffic rate carried in the response adjusts serial port baud rate to preset value, and the preset value is with being somebody's turn to do
Second traffic rate matches;Signal is reconfigured according to the output of the serial port baud rate of regulation, by described heavy
Configuration signal is reconfigured to present communications speed;Selected according to the serial port baud rate output control of regulation
Signal, with according to control selections signal output infrared data corresponding with second traffic rate,
And then send the infrared data to the custodial care facility according to the present communications speed reconfigured.
A kind of infrared communications set, including:Connection detection module, card module is detected for custodial care facility
Whether connect;If it has, then powered to the card module, and it is infrared according to the startup of present communications speed
Communication;Communication handshake module, for being shaken hands according to the present communications speed and the card module,
The infrared communication successfully then set up between the custodial care facility and card module of shaking hands;Mode polling mould
Block, if for unsuccessful, the mode of operation supported the custodial care facility of shaking hands in preset time
The first traffic rate allowed is polled, using the first traffic rate for being polled to as described current logical
Believe that speed sends handshake request to the card module, until the card module enters to the handshake request
Row response.
Further, described device also includes:Request sending module, for sending speed governing inquiry request extremely
The card module, please to speed governing inquiry according to the version information of storage to obtain the card module
Ask the response of progress;The version information includes that the mode of operation that the card module supports is allowed
Two traffic rates;First rate adjustment module, for according to the second traffic rate carried in the response
The present communications speed is adjusted, with according to the present communications speed of regulation and the card module
Carry out infrared communication.
Further, described device also includes:Speed keeps module, if for obtaining less than the plug-in unit
Module inquires the response of request to the speed governing, then is inserted with the present communications speed shaken hands when successfully with described
Part module keeps infrared communication.
Further, the first rate adjustment module includes:First baud rate adjustment unit, for by
Adjust serial port baud rate to preset value according to the second traffic rate for being carried in the response, the preset value with
Second traffic rate matches;First reconfigures unit, for being exported according to the serial port baud rate of regulation
Signal is reconfigured, is reconfigured by the signal progress present communications speed that reconfigures;First choice is exported
Unit, for the serial port baud rate output control selection signal according to regulation, with according to the control selections
Signal output infrared data corresponding with second traffic rate, and then by the infrared data according to weight
The present communications speed of configuration is sent to the card module.
A kind of infrared communications set, including:Version detection module, on card module after electricity, to it
The version information of loading is detected, to be stored to the version information detected;The version information
The second traffic rate that the mode of operation supported including the card module is allowed;Communication building block,
It is described to shake hands for being shaken hands with the maximum communication rate in second traffic rate with custodial care facility
The successful then infrared communication set up between the card module and custodial care facility;Wherein, if in preset time
It is described shake hands it is unsuccessful, then the custodial care facility by the mode of operation that it is supported is allowed first communication
Speed is polled, to send handshake request to the card module according to the first traffic rate being polled to,
Until the card module carries out response to the handshake request.
Further, described device also includes:Request-reply module, for receiving the custodial care facility hair
The speed governing inquiry request sent, and speed governing inquiry request is answered according to the version information of storage
Answer;Second rate adaptation module, it is current for being carried out according to the second traffic rate carried in the response
Traffic rate is adjusted, to carry out infrared communication according to the present communications speed of regulation and the custodial care facility.
Further, the second rate adaptation module includes:Second baud rate adjustment unit, for by
Adjust serial port baud rate to preset value according to the second traffic rate for being carried in the response, the preset value with
Second traffic rate matches;Second reconfigures unit, for being exported according to the serial port baud rate of regulation
Signal is reconfigured, present communications speed is reconfigured by the signal that reconfigures;Second selection is defeated
Go out unit, for the serial port baud rate output control selection signal according to regulation, to be selected according to the control
Select signal output infrared data corresponding with second traffic rate, so by the infrared data according to
The present communications speed reconfigured is sent to the custodial care facility.
A kind of infrared communication system includes custodial care facility and the card module being connected with the custodial care facility, its
In, the custodial care facility includes:Whether connection detection module, connect for custodial care facility detection card module
Connect;If it has, then being powered to the card module, and start infrared communication according to present communications speed;
Communication handshake module, it is described for being shaken hands according to the present communications speed and the card module
Shake hands the infrared communication successfully then set up between the custodial care facility and card module;Mode polling module,
If shaking hands unsuccessful for described in preset time, the mode of operation that the custodial care facility is supported is permitted
Perhaps the first traffic rate is polled, and present communications speed is used as using the first traffic rate for being polled to
Rate sends handshake request to the card module, until the card module is answered the handshake request
Answer;The card module includes:Version detection module, on card module after electricity, is loaded to it
Version information is detected, to be stored to the version information detected;The version information includes institute
State the second traffic rate that the mode of operation of card module support is allowed;Communication building block, for
Maximum communication rate in second traffic rate is shaken hands with custodial care facility, described to shake hands successfully then
The infrared communication set up between the card module and custodial care facility;Wherein, if described in preset time hold
Hand is unsuccessful, then the custodial care facility enters the first traffic rate allowed the mode of operation that it is supported
Road wheel is ask, to send handshake request to the card module according to the first traffic rate being polled to, until
The card module carries out response to the handshake request.
Compared with prior art, the invention has the advantages that:
Custodial care facility is powered for the card module of connection, and starts infrared communication according to present communications speed,
And then handshake request is sent by the card module of the upward electricity of present communications speed, if card module is held to this
Hand request carries out response and then shaken hands success, if conversely, shake hands unsuccessful in preset time, being set to monitoring
The first traffic rate that the standby mode of operation supported is allowed is polled, until its holding with card module
Hand success, so as to set up infrared communication therebetween.That is, be connected with custodial care facility
The traffic rate of card module, the first communication that custodial care facility can all be allowed the mode of operation that it is supported
Speed carries out searching loop, to be attempted and traffic rate by way of automatic adjusument present communications speed
The successful handshake of different card modules, so as to solve custodial care facility in the prior art and different plug-in units
The problem of module is mutually incompatible.
Brief description of the drawings
Fig. 1 is the application environment schematic diagram of infrared communication method;
Fig. 2 is the flow chart of the infrared communication method of an embodiment;
Fig. 3 is the flow chart of the infrared communication method of another embodiment;
Fig. 4 be Fig. 3 in present communications speed is adjusted according to the second traffic rate carried in response
Method flow diagram;
Fig. 5 is the flow chart of the infrared communication method of one embodiment;
Fig. 6 is the flow chart of the infrared communication method of another embodiment;
Fig. 7 is the flow chart of the infrared communication method of another embodiment;
Fig. 8 is the structured flowchart of the infrared communications set of an embodiment;
Fig. 9 is the structured flowchart of the infrared communications set of another embodiment;
Figure 10 is the structured flowchart of first rate adjustment module in Fig. 9;
Figure 11 is the structured flowchart of the infrared communications set of an embodiment;
Figure 12 is the structured flowchart of the infrared communications set of another embodiment;
Figure 13 is the structured flowchart of the second rate adaptation module in Figure 12;
Figure 14 is the structured flowchart of the infrared communication system of an embodiment;
Figure 15 is the hardware architecture diagram of the infrared communication system of the embodiment of the present invention.
Embodiment
Embodying the exemplary embodiment of feature of present invention and advantage will describe in detail in the following description.Should
What is understood is that the present invention can have various changes in different embodiments, and it does not all depart from this hair
Bright scope, and explanation therein and diagram are treated as purposes of discussion in itself, and it is not used to limitation originally
Invention.
It is well known that infrared ray be wavelength in 750nm to the electromagnetic wave between 1mm, its frequency is higher than
Microwave and less than visible ray, be the light that a kind of human eye be can't see.Because ultrared wavelength is relatively short,
It is poor to the diffracting power of barrier, so being generally used for the one-to-one matching of short-distance wireless communication
In scene.
In existing custodial care facility, for example, plug-in type monitor, infrared communication technique is as a kind of normal
Communication mode is widely used in the infrared communication between custodial care facility and card module, and this kind leads to
Letter mode plug and play, it is ensured that higher stability, and manufacturing cost is relatively low.
However, because the model of card module is different so that the communication that its mode of operation supported is allowed
Speed is not quite similar, and the custodial care facility of single hardware configuration is difficult the different card module of compatible communication speed.
Based on this, compatible for custodial care facility and different card modules, spy proposes a kind of infrared
Communication means.
Referring to Fig. 2, in one embodiment, a kind of infrared communication method comprises the following steps:
Step 210, whether custodial care facility detection card module connects.
Custodial care facility is set up before infrared communication with card module, and custodial care facility needs the company to card module
The state of connecing is detected, and then is confirmed whether to need to enter mode of operation, sets up custodial care facility and plug-in unit mould
The infrared communication of block.
For example, custodial care facility is electrically connected with card module by infrared interface, card module will pass through this
Infrared interface sends connection enabling signal to custodial care facility, and custodial care facility is judged by the connection enabling signal
Card module is connected thereto.
Further, if card module is connected, into step 220, conversely, custodial care facility continues
Constantly the connection status to card module is detected, until detecting in card module connection, is entered
Step 220.
Step 220, custodial care facility is powered to card module, and starts infrared lead to according to present communications speed
Letter.
In the present embodiment, on card module after electricity, the mode of operation that card module will be supported according to it
The maximum communication rate allowed enters mode of operation, and wait sets up infrared communication with custodial care facility.
Table 1
Numbering | The mode of operation of card module | Traffic rate |
1 | FIR mode | Maximum communication rate |
2 | FIR mode | Traffic rate after maximum communication rate, reduction of speed |
3 | MIR patterns | Maximum communication rate |
4 | MIR patterns | Traffic rate after maximum communication rate, reduction of speed |
5 | SIR patterns | Maximum communication rate |
As shown in table 1, the mode of operation that card module is supported includes FIR mode, MIR patterns, SIR
The traffic rate allowed under pattern, each mode of operation then includes the communication after maximum communication rate and reduction of speed
Speed.Wherein, maximum communication rate is shaken hands to card module with custodial care facility, logical after reduction of speed
Believe that speed can be then used under card module ideal case, or, after plug-in module execution is stable.
Matched in order to the traffic rate with card module, it is current during custodial care facility startup infrared communication
Traffic rate can be any one in the inner all traffic rates of table 1.The current traffic rate can be
What the mode of operation that the card module that is connected by custodial care facility according to it is supported was pre-set, can also be by
Custodial care facility is randomly choosed when starting infrared communication.For example, the mode of operation of card module is FIR moulds
Formula, then custodial care facility detect card module connection after, present communications speed is preset as FIR moulds first
The maximum communication rate that formula is allowed.
Step 230, shaken hands according to present communications speed and card module.
So-called shake hands refers to that custodial care facility sends handshake request according to present communications speed to card module,
If the current traffic rate is matched with the maximum communication rate that the mode of operation that card module is supported is allowed,
Then card module carries out response, that is, success of shaking hands, so as to set up custodial care facility and plug-in unit to the handshake request
Infrared communication between module.
Specifically, step 231, judge to shake hands in preset time and whether succeed.
Preset time can be pre-set according to the maximum tolerance degree of user, for example, preset time is
5 minutes, then the transmission time of each handshake request is to be spaced 5 minutes.
If shaking hands success in preset time, into step 232, set up custodial care facility and card module it
Between infrared communication.
If conversely, it is unsuccessful to be shaken hands in preset time, into step 233, supporting custodial care facility
The first traffic rate that mode of operation is allowed is polled, using the first traffic rate for being polled to as working as
Preceding traffic rate, and return to step 230, proceed to shake hands with card module, until card module pair
Handshake request has carried out response.
In the present embodiment, the mode of operation that custodial care facility is supported is all working mould that card module is supported
Formula, it includes FIR mode, MIR patterns, SIR patterns, and the first traffic rate is then these pattern institutes
Whole traffic rates of permission, including card module support mode of operation allowed maximum communication rate,
Traffic rate after reduction of speed etc., the success rate that custodial care facility is shaken hands from different card modules is improved with this.
By process as described above, custodial care facility the mode of operation supported it is allowed first
Traffic rate carries out searching loop, is attempted by way of automatic adjusument present communications speed and communication speed
The successful handshake of the different card module of rate, custodial care facility and different card modules are realized with this
It is compatible.
Further, since only by communication protocol type or traffic rate card module not easy to identify, for example,
The high speed card module of FIR mode and the high speed card module of SIR patterns all use IRDA agreements, or
The maximum communication speed phase of person, the high speed card module of SIR patterns and the low speed card module of MIR patterns
Closely, and by custodial care facility the poll of the whole traffic rates allowed all working pattern, it is to avoid
Card module it is not easy to identify and can not be compatible the problem of, infrared data is done while clutter can also be reduced
Disturb, so as to improve the antijamming capability of infrared communication.
Referring to Fig. 3, in one embodiment, after step 232, method as described above also include with
Lower step:
Step 310, speed governing inquiry request is sent to card module, to obtain card module according to storage
Version information inquires the response for asking to carry out to speed governing.
Version information includes the second traffic rate that the mode of operation of card module support is allowed.The work
Pattern can be any one in FIR mode, MIR patterns or SIR patterns, correspondingly, second
Traffic rate can then include maximum communication rate, the traffic rate after reduction of speed that mode of operation be allowed,
The maximum communication rate that mode of operation is allowed can also only be included.
If it is appreciated that the second communication speed in version information is included after maximum communication rate and reduction of speed
Traffic rate, then being loaded with the card module of the corresponding version of the version information allows reduction of speed, i.e. plug-in unit mould
Block is set up after infrared communication with custodial care facility, can be logical from maximum by the present communications speed of card module
Believe the traffic rate after rate adaptation to reduction of speed, accordingly, the present communications speed of custodial care facility is also required to
It is adjusted in synchronism to the traffic rate after reduction of speed, to ensure that the traffic rate after the two reduction of speed remains able to matching.
Based on this, custodial care facility is set up after infrared communication with card module, and card module will receive prison
The speed governing inquiry request that equipment is sent is protected, if card module learns that it allows drop according to the version information of storage
Speed, then carry out response to speed governing inquiry request.Sent out for example, answering is card module to custodial care facility
Response message is sent, the response message is generated by the traffic rate after reduction of speed.
If conversely, card module does not allow reduction of speed, speed governing inquiry request can not be replied.
Step 330, present communications speed is adjusted according to the second traffic rate carried in response,
To carry out infrared communication according to the present communications speed of regulation and card module.
As described above, the second traffic rate carried in response is the traffic rate after card module reduction of speed,
In order to ensure custodial care facility and card module after reduction of speed can traffic rate match, custodial care facility is got
Traffic rate after the reduction of speed, will adjust the traffic rate after present communications speed to the reduction of speed of itself.
Allowed it should be noted that the traffic rate after reduction of speed is the mode of operation that custodial care facility is supported
One kind in first traffic rate.That is, custodial care facility is also to allow reduction of speed.
By process as described above, custodial care facility is set up after infrared communication with card module, if plug-in unit
Module allows reduction of speed, and custodial care facility also will adaptively be dropped by sending speed governing inquiry request to its own
Speed, so that ensure to continue therebetween to carry out infrared communication with the traffic rate after reduction of speed, it is further real
The compatible of card module and custodial care facility is showed.
In addition, when card module is standby, interacting for a large amount of infrared datas can't be carried out with custodial care facility,
And only need to interact a small amount of channel holding instruction, to keep what is set up between card module and custodial care facility
Infrared communication, by reduction of speed while card module and custodial care facility, not only reduces the two operation required
Power consumption, improve the service life of the two, and ensure that the security of data interaction, improve number
According to interactive stability.
In one embodiment, method as described above is further comprising the steps of:
It is current logical when successfully to shake hands if obtaining the response for inquiring request to speed governing less than card module
Believe that speed keeps infrared communication with card module.
If as described above, card module does not allow reduction of speed, response can not be carried out to speed governing inquiry request,
Now, card module continues maximum communication rate and the custodial care facility allowed with the mode of operation of its support
Carry out infrared communication.
When being shaken hands successfully due to custodial care facility and card module, the present communications speed of custodial care facility is slotting
The maximum communication rate that the mode of operation that part module is supported is allowed, so, if card module does not allow drop
Speed, then custodial care facility will remain at the present communications speed shaken hands when successfully and card module progress is red
Outer communication, ensures that traffic rate therebetween is matched with this.
Referring to Fig. 4, in one embodiment, step 330 comprises the following steps:
Step 331, serial port baud rate is adjusted to preset value according to the second traffic rate carried in response,
Preset value matches with second traffic rate.
The second traffic rate carried in response is the traffic rate after card module reduction of speed, and preset value is with being somebody's turn to do
Traffic rate matching after reduction of speed, then adjust the communication corresponded to the serial port baud rate of preset value after reduction of speed
Speed.That is, in speed regulation process, serial port baud rate is with the second traffic rate carried in response
Change and change.
Step 333, signal is reconfigured according to the output of the serial port baud rate of regulation, entered by reconfiguring signal
Traffic rate is reconfigured before the trade.
In the present embodiment, it is to connect custodial care facility and card module that present communications speed, which is reconfigured,
Infrared interface resetted.
When custodial care facility according to the serial port baud rate of regulation knows that serial port baud rate is changed, it will export
Signal is reconfigured, the infrared interface is resetted by reconfiguring signal so that infrared after reset connects
Traffic rate after the reduction of speed that mouth can be matched according to the serial port baud rate with regulation carries out the receipts of infrared data
Hair, that is, the present communications speed reconfigured is the traffic rate after reduction of speed.
Step 335, according to the serial port baud rate output control selection signal of regulation, with according to control selections
Signal output infrared data corresponding with the second traffic rate, and then by infrared data according to working as reconfiguring
Preceding traffic rate is sent to card module.
As described above, custodial care facility will set up infrared communication except needing traffic rate to match with card module,
Also need to the two and be in identical mode of operation, therefore, after present communications speed is reconfigured, monitoring
Equipment can enter and regulation also by the serial port baud rate output control selection signal according to regulation
The corresponding mode of operation of traffic rate after the reduction of speed of serial port baud rate matching, with defeated in the mode of operation
Go out corresponding infrared data, so as to ensure after reduction of speed, custodial care facility can be with identical work with card module
Operation mode and the traffic rate of matching keep infrared communication.
Similarly, the down speeding procedure of card module and the down speeding procedure of custodial care facility are consistent, herein no longer one by one
Repeat.
Referring to Fig. 5, in one embodiment, a kind of infrared communication method comprises the following steps:
Step 410, on card module after electricity, the version information that it is loaded is detected, with to detection
To version information stored;Version information includes that the mode of operation that card module supports is allowed
Two traffic rates.
Step 430, shaken hands, held with the maximum communication rate in the second traffic rate and custodial care facility
The infrared communication that hand success is then set up between card module and custodial care facility.
Wherein, if shaking hands unsuccessful in preset time, custodial care facility is by the mode of operation institute supported it
The first traffic rate allowed is polled, to be sent out according to the first traffic rate being polled to card module
Handshake request is sent, until card module carries out response to handshake request.
Referring to Fig. 6, in one embodiment, the infrared communication set up between card module and custodial care facility
Afterwards, method as described above is further comprising the steps of:
Step 510, the speed governing inquiry request that custodial care facility is sent is received, and according to the version information of storage
Response is carried out to speed governing inquiry request.
Step 530, present communications rate adaptation is carried out according to the second traffic rate carried in response, with
Infrared communication is carried out according to the present communications speed and custodial care facility of regulation.
Referring to Fig. 7, in one embodiment, step 530 comprises the following steps:
Step 531, serial port baud rate is adjusted to preset value according to the second traffic rate carried in response,
Preset value matches with second traffic rate.
Step 533, signal is reconfigured according to the output of the serial port baud rate of regulation, by reconfiguring signal pair
Present communications speed is reconfigured.
Step 535, according to the serial port baud rate output control selection signal of regulation, with according to control selections
Signal output infrared data corresponding with the second traffic rate, and then by infrared data according to working as reconfiguring
Preceding traffic rate is sent to custodial care facility.
Referring to Fig. 8, in one embodiment, a kind of infrared communications set includes:
Whether connection detection module 610, connect for custodial care facility detection card module;If it has, then
Powered to card module, and start infrared communication according to present communications speed.
Communication handshake module 630, for being shaken hands according to present communications speed and card module, shakes hands
The successful then infrared communication set up between custodial care facility and card module.
Mode polling module 650, if unsuccessful for being shaken hands in preset time, is supported custodial care facility
The first traffic rate for being allowed of mode of operation be polled, using the first traffic rate for being polled to as
Present communications speed sends handshake request to card module, until card module carries out response to handshake request.
Referring to Fig. 9, in one embodiment, device as described above also includes:
Request sending module 710, for sending speed governing inquiry request to card module, to obtain plug-in unit mould
Root tuber inquires the response for asking to carry out according to the version information of storage to speed governing;Version information includes card module
The second traffic rate that the mode of operation of support is allowed.
First rate adjustment module 730, for being led to according to the second traffic rate carried in response to current
Letter speed is adjusted, to carry out infrared communication according to the present communications speed of regulation and card module.
Further, in one embodiment, device as described above also includes:Speed keeps module, uses
If the response asked is inquired to speed governing less than card module in obtaining, with the present communications shaken hands when successfully
Speed keeps infrared communication with card module.
Referring to Fig. 10, in one embodiment, first rate adjustment module 730 includes:
First baud rate adjustment unit 731, goes here and there for being adjusted according to the second traffic rate carried in response
Mouth baud rate is to preset value, and preset value matches with second traffic rate.
First reconfigures unit 733, for reconfiguring signal according to the output of the serial port baud rate of regulation, leads to
Cross reconfigure signal carry out present communications speed reconfigure.
First choice output unit 735, for the serial port baud rate output control selection signal according to regulation,
With according to control selections signal output infrared data corresponding with the second traffic rate, and then by infrared data
Present communications speed according to reconfiguring is sent to card module.
Figure 11 is referred to, in one embodiment, a kind of infrared communications set includes:
Version detection module 810, on card module after electricity, is examined to the version information that it is loaded
Survey, to be stored to the version information detected;Version information includes the Working mould that card module is supported
The second traffic rate that formula is allowed.
Communication building block 830, for the maximum communication rate and custodial care facility in the second traffic rate
Shaken hands, the infrared communication successfully then set up between card module and custodial care facility of shaking hands.
Wherein, if shaking hands unsuccessful in preset time, custodial care facility is by the mode of operation institute supported it
The first traffic rate allowed is polled, to be sent out according to the first traffic rate being polled to card module
Handshake request is sent, until card module carries out response to handshake request.
Figure 12 is referred to, in one embodiment, device as described above also includes:
Request is inquired in request-reply module 910, the speed governing for receiving custodial care facility transmission, and according to depositing
The version information of storage carries out response to speed governing inquiry request.
Rate adaptation module 930, for carrying out present communications according to the second traffic rate carried in response
Rate adaptation, to carry out infrared communication according to the present communications speed of regulation and custodial care facility.
Figure 13 is referred to, in one embodiment, the second rate adaptation module 930 includes:
Second baud rate adjustment unit 931, goes here and there for being adjusted according to the second traffic rate carried in response
Mouth baud rate is to preset value, and preset value matches with second traffic rate.
Second reconfigures unit 933, for reconfiguring signal according to the output of the serial port baud rate of regulation, leads to
Cross and reconfigure signal present communications speed is reconfigured.
Second selection output unit 935, for the serial port baud rate output control selection signal according to regulation,
With according to control selections signal output infrared data corresponding with the second traffic rate, and then by infrared data
Present communications speed according to reconfiguring is sent to custodial care facility.
Figure 14 is referred to, in one embodiment, a kind of infrared communication system 1000 includes custodial care facility 1010
With the card module 1030 being connected with custodial care facility 1010.
Wherein, custodial care facility 1010 includes:
Whether connection detection module 1011, connect for custodial care facility detection card module;If it has, then
Powered to card module, and start infrared communication according to present communications speed.
Communication handshake module 1013, for being shaken hands according to present communications speed and card module, shakes hands
The successful then infrared communication set up between custodial care facility and card module.
Mode polling module 1015, if unsuccessful for being shaken hands in preset time, is supported custodial care facility
The first traffic rate for being allowed of mode of operation be polled, using the first traffic rate for being polled to as
Present communications speed sends handshake request to card module, until card module carries out response to handshake request.
Card module 1030 includes:
Version detection module 1031, on card module after electricity, is examined to the version information that it is loaded
Survey, to be stored to the version information detected;Version information includes the Working mould that card module is supported
The second traffic rate that formula is allowed.
Communication building block 1033, for the maximum communication rate and custodial care facility in the second traffic rate
Shaken hands, the infrared communication successfully then set up between card module and custodial care facility of shaking hands.
Wherein, if shaking hands unsuccessful in preset time, custodial care facility is by the mode of operation institute supported it
The first traffic rate allowed is polled, to be sent out according to the first traffic rate being polled to card module
Handshake request is sent, until card module carries out response to handshake request.
Figure 15 is referred to, Figure 15 shows for the hardware configuration of the infrared communication system 1000 of the embodiment of the present invention
It is intended to.The step performed by custodial care facility and card module involved by the various embodiments described above can be with base
In the hardware configuration of custodial care facility and card module shown in this Fig.
The infrared communication system 1000 includes the card module of custodial care facility 1100 and different working modes,
For example, the card module 1230 and SIR patterns of the card module 1210 of FIR mode, MIR patterns
Card module 1250.
In the infrared communication system 1000, custodial care facility 1100 can be while these different operatings of mixed insertion
The card module of pattern, can individually carry out adaptation rate regulation to set up infrared communication each other,
Each other and Lothrus apterus.
Wherein, custodial care facility 1100 includes micro-control unit 1110, PLD 1130 and red
External tapping 1150.
No matter mode of operation, card module include infrared interface 1211, PLD 1213
With micro-control unit 1215.
Specifically, standard serial port of the micro-control unit 1110,1215 needed for produce practical application scene
Signal, meanwhile, also as the main control unit of custodial care facility 1100, carry out the connection status of card module
Detection, the automatic adjusument of traffic rate, the regulation of serial port baud rate, control infrared interface 1150 are answered
Position, control custodial care facility 1100 select accordingly coding/decoding module etc., or, it is used as the master of card module
Unit is controlled, the detection of version information, the regulation of serial port baud rate, control infrared interface 1211 is carried out and answers
Position etc..
PLD 1130,1213 is to realize standard serial port signal and meet different working modes
Electric signal between mutual conversion.
Further, three kinds of different works are included in the PLD 1130 of monitoring device 1100
Coding/decoding module corresponding to operation mode, the PLD of card module only includes the work of its support
Coding/decoding module corresponding to operation mode.For example, only being included in the card module 1210 of FIR mode of operations
FIR coding/decoding modules.
For example, if the selection FIR coding/decoding modules of custodial care facility 1100 carry out standard serial port signal
Conversion, then the electric signal for changing output is the FIR mode of operations for meeting card module, the i.e. electric signal
It can be parsed by the FIR coding/decoding modules in card module 1210, now, custodial care facility 1100 can
Infrared communication is carried out with the card module 1210 of FIR mode of operations.
Infrared interface 1150,1211 is to realize the mutual conversion between optical signal and electric signal, Yi Jiguang
The transmitting-receiving of signal.
Certainly, power supply, storage medium etc. are all also provided with custodial care facility 1100 and card module.
Wherein, power supply is used to provide operating voltage for each hardware device of custodial care facility 1100 and card module.Deposit
The carrier that storage media is stored as resource, can be random storage medium, read-only storage medium etc., thereon
The resource stored can be version information, electric signal, various instructions (keeping instructing such as channel),
Storage mode can be of short duration storage or permanently store.
Infrared communication system 1000 is applied to by various embodiments of the present invention, it is possible to achieve in medicine equipment,
Even the custodial care facility of single hardware configuration can also the various mode of operations of mixed insertion are different, traffic rate not
With card module, be effectively guaranteed it is compatible between different card modules and custodial care facility,
Realize the infrared communication between custodial care facility and different card modules.
The above, only presently preferred embodiments of the present invention, are not intended to limit embodiment of the present invention,
Those of ordinary skill in the art can very easily carry out phase according to the central scope and spirit of the present invention
Answer accommodation or modification, therefore protection scope of the present invention should using the protection domain required by claims as
It is accurate.
Claims (10)
1. a kind of infrared communication method, it is characterised in that including:
Whether custodial care facility detection card module connects;If it has, then being powered to the card module, and start infrared communication according to present communications speed;
Shaken hands according to the present communications speed and the card module, the infrared communication successfully then set up between the custodial care facility and card module of shaking hands;
Wherein, if it is unsuccessful to be shaken hands described in preset time, then the first traffic rate that the mode of operation that the custodial care facility is supported is allowed is polled, handshake request is sent using the first traffic rate for being polled to as the present communications speed to the card module, until the card module carries out response to the handshake request.
2. the method as described in claim 1, it is characterised in that described to set up after the infrared communication between the custodial care facility and card module, methods described also includes:
Speed governing inquiry request is sent to the card module, the response for asking to carry out is inquired to the speed governing according to the version information of storage to obtain the card module;The version information includes the second traffic rate that the mode of operation of card module support is allowed;
The present communications speed is adjusted according to the second traffic rate carried in the response, to carry out infrared communication according to the present communications speed of regulation and the card module.
3. method as claimed in claim 2, it is characterised in that methods described also includes:
If obtaining the response for inquiring request to the speed governing less than the card module, infrared communication is kept with the present communications speed and the card module shaken hands when successfully.
4. method as claimed in claim 2, it is characterised in that described that the present communications speed is adjusted according to the second traffic rate carried in the response, is included with carrying out infrared communication according to the present communications speed of regulation and the card module:
Serial port baud rate is adjusted to preset value according to the second traffic rate carried in the response, and the preset value matches with second traffic rate;
Signal is reconfigured according to the output of the serial port baud rate of regulation, reconfigured by the signal progress present communications speed that reconfigures;
According to the serial port baud rate output control selection signal of regulation, with according to control selections signal output infrared data corresponding with second traffic rate, and then the infrared data is sent according to the present communications speed reconfigured to the card module.
5. a kind of infrared communication method, it is characterised in that including:
On card module after electricity, the version information that it is loaded is detected, to be stored to the version information detected;The version information includes the second traffic rate that the mode of operation of card module support is allowed;
Shaken hands with the maximum communication rate in second traffic rate with custodial care facility, the infrared communication successfully then set up between the card module and custodial care facility of shaking hands;
Wherein, if it is unsuccessful to be shaken hands described in preset time, then the first traffic rate allowed the mode of operation that it is supported is polled by the custodial care facility, to send handshake request to the card module according to the first traffic rate being polled to, until the card module carries out response to the handshake request.
6. method as stated in claim 5, it is characterised in that described to set up after the infrared communication between the card module and custodial care facility, methods described also includes:
The speed governing inquiry request that the custodial care facility is sent is received, and response is carried out to speed governing inquiry request according to the version information of storage;
Present communications rate adaptation is carried out according to the second traffic rate carried in the response, to carry out infrared communication according to the present communications speed of regulation and the custodial care facility.
7. method as claimed in claim 6, it is characterised in that described to carry out present communications rate adaptation according to the second traffic rate carried in the response, is included with carrying out infrared communication according to the present communications speed of regulation and the custodial care facility:
Serial port baud rate is adjusted to preset value according to the second traffic rate carried in the response, and the preset value matches with second traffic rate;
Signal is reconfigured according to the output of the serial port baud rate of regulation, present communications speed reconfigured by the signal that reconfigures;
According to the serial port baud rate output control selection signal of regulation, with according to control selections signal output infrared data corresponding with second traffic rate, and then the infrared data is sent according to the present communications speed reconfigured to the custodial care facility.
8. a kind of infrared communications set, it is characterised in that including:
Whether connection detection module, connect for custodial care facility detection card module;If it has, then being powered to the card module, and start infrared communication according to present communications speed;
Communication handshake module, for being shaken hands according to the present communications speed and the card module, the infrared communication successfully then set up between the custodial care facility and card module of shaking hands;
Mode polling module, if in preset time it is described shake hands it is unsuccessful, then the first traffic rate that the mode of operation that the custodial care facility is supported is allowed is polled, handshake request is sent using the first traffic rate for being polled to as the present communications speed to the card module, until the card module carries out response to the handshake request.
9. a kind of infrared communications set, it is characterised in that including:
Version detection module, on card module after electricity, is detected to the version information that it is loaded, to be stored to the version information detected;The version information includes the second traffic rate that the mode of operation of card module support is allowed;
Communication building block, for being shaken hands with the maximum communication rate in second traffic rate with custodial care facility, the infrared communication successfully then set up between the card module and custodial care facility of shaking hands;
Wherein, if it is unsuccessful to be shaken hands described in preset time, then the first traffic rate allowed the mode of operation that it is supported is polled by the custodial care facility, to send handshake request to the card module according to the first traffic rate being polled to, until the card module carries out response to the handshake request.
10. a kind of infrared communication system, it is characterised in that the card module being connected including custodial care facility and with the custodial care facility, wherein,
The custodial care facility includes:
Whether connection detection module, connect for custodial care facility detection card module;If it has, then being powered to the card module, and start infrared communication according to present communications speed;
Communication handshake module, for being shaken hands according to the present communications speed and the card module, the infrared communication successfully then set up between the custodial care facility and card module of shaking hands;
Mode polling module, if in preset time it is described shake hands it is unsuccessful, then the first traffic rate that the mode of operation that the custodial care facility is supported is allowed is polled, handshake request is sent using the first traffic rate for being polled to as the present communications speed to the card module, until the card module carries out response to the handshake request;
The card module includes:
Version detection module, on card module after electricity, is detected to the version information that it is loaded, to be stored to the version information detected;The version information includes the second traffic rate that the mode of operation of card module support is allowed;
Communication building block, for being shaken hands with the maximum communication rate in second traffic rate with custodial care facility, the infrared communication successfully then set up between the card module and custodial care facility of shaking hands;
Wherein, if it is unsuccessful to be shaken hands described in preset time, then the first traffic rate allowed the mode of operation that it is supported is polled by the custodial care facility, to send handshake request to the card module according to the first traffic rate being polled to, until the card module carries out response to the handshake request.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610145841.0A CN107196701A (en) | 2016-03-15 | 2016-03-15 | Infrared communication method, apparatus and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610145841.0A CN107196701A (en) | 2016-03-15 | 2016-03-15 | Infrared communication method, apparatus and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107196701A true CN107196701A (en) | 2017-09-22 |
Family
ID=59871840
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610145841.0A Pending CN107196701A (en) | 2016-03-15 | 2016-03-15 | Infrared communication method, apparatus and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107196701A (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050271062A1 (en) * | 2004-06-08 | 2005-12-08 | Canon Kabushiki Kaisha | Communication terminal and method for controlling the same |
CN1921529A (en) * | 2005-08-27 | 2007-02-28 | 霍夫曼-拉罗奇有限公司 | Communication adaptor for portable medical or therapeutical devices |
CN101409716A (en) * | 2008-11-25 | 2009-04-15 | 中国网络通信集团公司 | Method for matching communication velocity of wireless communication module and external application module |
-
2016
- 2016-03-15 CN CN201610145841.0A patent/CN107196701A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050271062A1 (en) * | 2004-06-08 | 2005-12-08 | Canon Kabushiki Kaisha | Communication terminal and method for controlling the same |
CN1921529A (en) * | 2005-08-27 | 2007-02-28 | 霍夫曼-拉罗奇有限公司 | Communication adaptor for portable medical or therapeutical devices |
CN101409716A (en) * | 2008-11-25 | 2009-04-15 | 中国网络通信集团公司 | Method for matching communication velocity of wireless communication module and external application module |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107465240B (en) | A kind of intelligent movable power supplies and the method for carrying out usb data communication with it | |
US7375493B2 (en) | Inductive battery charger | |
CN105705197B (en) | Mobile device is configured to the medical device application of the peripheral control unit of implantable medical device | |
ES2340005T3 (en) | A MOBILE DEVICE FOR A UNIVERSAL SERIES (USB) BUS CHARGER. | |
CN113031980A (en) | OTA system software upgrading control method and terminal equipment | |
CN103324293B (en) | The display control method of mobile terminal display interface and device | |
CN108055339B (en) | Household appliance interconnection method and device, storage medium and cloud platform server | |
US20120182939A1 (en) | Telehealth wireless communication hub and service platform system | |
US20140329467A1 (en) | Wireless communications capable power distribution unit and techniques for communicating therewith | |
CN110489137A (en) | System and method for updating the firmware in wireless charger | |
CN103607710A (en) | Quick connection method and device for wireless devices and intelligent terminal | |
CN103430509A (en) | Pairing between wireless devices | |
CN102646081A (en) | System and method for inductively pairing devices to share data or resources | |
US20090224894A1 (en) | Method and system for device configuring | |
CN205282802U (en) | Supply socket device and contain device's management system | |
CN108667094A (en) | Communication means, power supply adaptor and terminal | |
CN104717604B (en) | The matching method and control method of smart bluetooth electronic product integrated equipment | |
CN106663955A (en) | Communication between an accessory and a docking station over power pins | |
CN204479933U (en) | Smart bluetooth household electrical appliances integrated equipment | |
CN108256840A (en) | Wireless charging charging method, device and wireless charging device | |
CN104581847B (en) | A kind of configuration method and device of wireless device | |
CN105334420A (en) | Information processing method and electronic device | |
CN110119366A (en) | A kind of intelligent storage equipment and the method for accessing intelligent storage equipment | |
WO2021203759A1 (en) | Electroencephalogram acquisition system based on bluetooth separated architecture | |
CN107394836A (en) | A kind of charging equipment, it is electrically charged equipment and charging method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170922 |
|
RJ01 | Rejection of invention patent application after publication |