CN103955195B - The transmission of a kind of control instruction, response method and device - Google Patents
The transmission of a kind of control instruction, response method and device Download PDFInfo
- Publication number
- CN103955195B CN103955195B CN201410187256.8A CN201410187256A CN103955195B CN 103955195 B CN103955195 B CN 103955195B CN 201410187256 A CN201410187256 A CN 201410187256A CN 103955195 B CN103955195 B CN 103955195B
- Authority
- CN
- China
- Prior art keywords
- address
- character
- control instruction
- instruction
- controlled plant
- 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
Links
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Abstract
The invention provides the transmission of a kind of control instruction, response method and device.Above-mentioned sending method includes: building the control instruction containing control instruction address, wherein, described control instruction address includes: for indicating the instruction group address of controlled plant corresponding device group and for indicating the instruction mask of controlled plant element address;Sending, by wire message way or wireless channel, the described control instruction built, the method that this control instruction is provided by controlled plant according to the present invention responds.The technical scheme provided according to the present invention, greatly reduces the data volume of the device address information sent during being controlled equipment.And the addressing of this equipment and control method motility are relatively strong, every equipment can be carried out independent control.
Description
Technical field
The present invention relates to control field, in particular to a kind of control instruction transmission,
Response method and device.
Background technology
During the use of industrial equipment, warning device, amusement equipment and other equipment,
Control efficiently sometimes for a part of equipment in armamentarium.Such as, in traffic
In Information Notice System, need to be shown to appointment information content part traffic information display screen
In, the content of other traffic information display screen is constant;Alarm signal is sent in warning system
During, needing a part for whole warning devices is switched to alarm condition, other are reported to the police
Equipment hold mode is constant;In public place of entertainment, it is sometimes desirable to by whole display screens
Part of screen is switched in some program channel, and other display screen hold modes are constant.
The said equipment controls the feature of process: the partial target cluster tool to armamentarium
Being controlled operation, target device set is not can be predetermined, according to concrete
Situation change.In correlation technique, the said equipment is controlled process and mainly uses following several
Method realizes:
The first: by a character string in the way of dictionary ranking method, each equipment is set
Fixed unique device address, according to the distinct device address of every equipment, sends control successively
Instruction is controlled.Such as, with one a length of 3, possible character set is { 0,1}
8 equipment, in the way of dictionary ranking method, can be addressed, 8 equipment by character string
Address be followed successively by: " 000 ", " 001 ", " 010 ", " 011 ", " 100 ", " 101 ", " 110 ",
“111”。
But, target device set comprise number of devices relatively big in the case of, this equipment
Addressing and control method are excessive owing to needs send device address data volume, can cause equipment control
Operating time processed is long, affects Consumer's Experience, or is unsatisfactory for applying requirement.
The second: equipment can be divided in advance some groups, one group of equipment be controlled every time
System, improves equipment control efficiency, reduces equipment and controls the time.
But, owing to being to be controlled one group of equipment every time, this equipment addresses and controls
Method motility is poor, it is impossible to every equipment is carried out independent control.
Summary of the invention
The invention provides the transmission of a kind of control instruction, response method and device, with at least
Solve one of the problems referred to above.
According to an aspect of the invention, it is provided the sending method of a kind of control instruction.
The sending method of the control instruction according to the present invention includes: build containing control instruction ground
The control instruction of location, wherein, above-mentioned control instruction address includes: be used for indicating controlled plant
The instruction group address of corresponding device group and for indicating the instruction mask of controlled plant element address;
The described control instruction built is sent by wire message way or wireless channel.
According to a further aspect in the invention, it is provided that the response method of a kind of control instruction.
The response method of a kind of control instruction according to the present invention includes: controlled plant receives
From in the control instruction controlling equipment;Described controlled plant reads control from above-mentioned control instruction
Instruction address processed, wherein, above-mentioned control instruction address includes: be used for indicating controlled plant institute
The instruction group address of genus equipment group and for indicating the instruction mask of controlled plant element address;
Described controlled plant mates by the address of control instruction address and this controlled plant, its
In, the address of described controlled plant includes: equipment group address and unit address;Institute
State control instruction address and described controlled plant address coupling in the case of, determine described in be subject to
Control equipment belongs to the target device set that described control instruction is corresponding.
According to another aspect of the invention, it is provided that the dispensing device of a kind of control instruction.
The dispensing device of the control instruction according to the present invention includes: builds module, is used for building
Containing the control instruction of control instruction address, wherein, above-mentioned control instruction address includes: use
In indicating the instruction group address of controlled plant corresponding device group and being used for indicating controlled plant unit
The instruction mask of address;Sending module, for sending structure by wire message way or wireless channel
The above-mentioned control instruction built.
In accordance with a further aspect of the present invention, it is provided that the responding device of a kind of control instruction.
The responding device of the control instruction according to the present invention includes: receiver module, is used for receiving
Come from the control instruction of control equipment;Read module, for reading from above-mentioned control instruction
Taking control instruction address, wherein, above-mentioned control instruction address includes: be used for indicating controlled setting
For the instruction group address of corresponding device group with for indicating the instruction of controlled plant element address to cover
Code;Matching module, for being carried out the address of control instruction address and this controlled plant
Joining, wherein, the address of described controlled plant includes: equipment group address and unit address;
Determine module, in the address of described control instruction address and described controlled plant coupling
In the case of, determine that described controlled plant belongs to the target device set that described control instruction is corresponding.
Owing to have employed technique scheme, the invention has the beneficial effects as follows: the most controlled
Equipment is divided into several groups, and control instruction includes instructing group address and representing unit address
Instruction mask two parts.Therefore, greatly reduce equipment is controlled during send out
The data volume of the device address information sent.And the addressing of this equipment and control method motility
Relatively strong, every equipment can be carried out independent control.
Accompanying drawing explanation
Fig. 1 is the flow chart of the sending method of the control instruction according to the embodiment of the present invention;
Fig. 2 is the composition schematic diagram of the control instruction according to the preferred embodiment of the present invention;
Fig. 3 is the flow chart of the response method of the control instruction according to the embodiment of the present invention;
Fig. 4 is the composition schematic diagram of the device address according to the preferred embodiment of the present invention;
Fig. 5 is the flow chart of the response method of the control instruction according to the preferred embodiment of the present invention;
Fig. 6 is that the control instruction according to present example sends and the schematic diagram of response;
Fig. 7 is the structured flowchart of the dispensing device of the control instruction according to the embodiment of the present invention;
Fig. 8 is the structured flowchart of the responding device of the control instruction according to the embodiment of the present invention;
And
Fig. 9 is the structural frames of the responding device of the control instruction according to the preferred embodiment of the present invention
Figure.
Detailed description of the invention
Below by specific embodiment and combine accompanying drawing and the present invention is done further in detail
Describe.
Fig. 1 is the flow chart of the sending method of the control instruction according to the embodiment of the present invention.As
Shown in Fig. 1, the sending method of this control instruction includes:
Step S101: build the control instruction containing control instruction address, wherein, above-mentioned control
Instruction address processed includes: for indicating instruction group address and the use of controlled plant corresponding device group
Instruction mask in instruction controlled plant element address;
Step S103: send the above-mentioned control instruction built by wire message way or wireless channel.
In the method shown in Fig. 1, whole controlled plants are divided into several groups, control to refer to
Order includes instructing group address and representing instruction mask two parts of unit address.Relative to
Correlation technique, equipment addressing and control method that the embodiment of the present invention provides can be by sending
The control instruction of short length realizes equipment clean culture, multicast and Broadcasting Control, greatly reduces
The data volume of the device address information sent during equipment is controlled.And it is this
Equipment addressing and control method motility are relatively strong, every equipment can be carried out independent control.
Preferably, above-mentioned instruction group address includes but not limited to: the word of one or more characters
Symbol string;Wherein, each character in this character string is both from group address character list, above-mentioned
Group address character list includes multiple different character, this character be letter, numeral, word and
One or more in symbol.
Above-mentioned group address character list is a set being made up of character.The span of character
It is probably set or its subset of any letter, numeral, word and symbol.Such as, group
Address character table is that { 0,1}, instruction group address is a character string ' 001 ', wherein, refers to
Make in group address each character of character string both from group address character list { 0,1}.
Preferably, above-mentioned instruction mask includes but not limited to: the character of one or more characters
String;Wherein, each character in this character string is both from mask character list, above-mentioned mask
Character list includes multiple different character, and this character is in letter, numeral, word and symbol
One or more.
Mask character list is a set being made up of character above.The span of character can
Can be set or its subset of any letter, numeral, word and symbol.Such as, mask
Character list is that { 0,1}, instruction mask is a character string ' 101 ', wherein, instructs mask
Each character of middle character string is both from mask character list { 0,1}.
Specifically, above-mentioned instruction mask is i.e. the collection identifying target device by a character string
Closing, each equipment is corresponding to a position of this character string.Presumptive instruction mask character string
{ 0,1}, each equipment is corresponding to the one of instruction mask character string for set for character span
Individual position, this position character value is to represent when 1 that this equipment, should in target device set
Position character value is that this equipment of 0 expression is not in target device set.Such as, one group sets
Three equipment are had, then with in instruction this group of mask character string identification of one a length of 3 in Bei
These three equipment, then the character corresponding device 1 of first position in instruction mask character string,
The character corresponding device 2 of second position, the character corresponding device 3 of the 3rd position.Work as finger
When making the character string value of mask for ' 101 ', then the target that this instruction mask character string is corresponding
Device address collection is combined into { equipment 1, equipment 3}.When the character string value of instruction mask is ' 010 '
Time, in this group, destination device address collection is combined into { equipment 2}.
Preferably, above-mentioned control instruction can also include: holds needed for being used for indicating controlled plant
The control parameter of the action type of row.Further, above-mentioned control parameter can include following
At least one: device power-up instruction, equipment shutdown command, adjust equipment parameters instruction,
Requirement equipment performs assigned operation instruction, the verification data of control instruction.
Such as, controlling parameter string length is 1, and this character string takes ' 1 ', represents controlled
Equipment need to perform power-on operation, and this character string takes ' 0 ', represents that controlled plant need to perform shutdown
Operation.
The preferred implementation of above-mentioned control instruction is further described below in conjunction with Fig. 2.Fig. 2
Composition schematic diagram for the control instruction according to the preferred embodiment of the present invention.As in figure 2 it is shown,
This control instruction mainly includes two parts content: (1) controlled plant performs the control of certain operation
Parameter processed (i.e. for indicating the control parameter of the required action type performed of controlled plant), under
Literary composition is called for short control parameter;(2) control instruction address.
Above-mentioned control instruction address mainly includes two parts, is that (a) instructs group address respectively.
Instruction group address is a character string comprising multiple character.Each character in character string
Can with value for group address character list in some character.And if only if instructs group address word
The character of symbol string and same position identical with equipment group address string length is time all value is identical,
Just determine that instruction group address and equipment group address are couplings.(2) instruction mask.Instruction is covered
Code is a character string comprising multiple character.Each character in character string can be with value
For some character in mask character list.And if only if instructs mask character string and tables of equipment
Unit's address character string has the character in a same position identical, and this character is not to ignore word
During character on symbol table (such as, { 0}), it is determined that command unit mask and unit ground
Location is coupling.
In step S103, can send, by least one of channel, the above-mentioned control built
System instruction: wire message way, wireless channel.
As can be seen here, the sending method of the control instruction that the embodiment of the present invention provides both can be answered
For being sent equipment clean culture, multicast and the broadcast control system of control instruction by wired mode,
Also apply be applicable to use wireless mode to send the equipment clean culture of control instruction, multicast and broadcast control
System processed.
Fig. 3 is the flow chart of the response method of the control instruction according to the embodiment of the present invention.As
Shown in Fig. 3, the response method of this control instruction mainly includes following process:
Step S301: controlled plant receives the control instruction coming from control equipment;
Step S303: controlled plant reads control instruction address from above-mentioned control instruction, its
In, above-mentioned control instruction address includes: for indicating the instruction of controlled plant corresponding device group
Group address and for indicating the instruction mask of controlled plant element address;
Step S305: above-mentioned controlled plant is to the ground by control instruction address and this controlled plant
Location is mated, and wherein, the address of above-mentioned controlled plant includes: equipment group address and equipment
Element address;
Step S307: in the address of above-mentioned control instruction address and above-mentioned controlled plant coupling
In the case of, determine that above-mentioned controlled plant belongs to the target device set that above-mentioned control instruction is corresponding.
In the method shown in Fig. 3, the control instruction owing to receiving includes instructing group address
With the instruction mask two parts representing unit address.The address of above-mentioned controlled plant includes:
Equipment group address and unit address two parts.Above-mentioned controlled plant is to by control instruction ground
The address of location and this controlled plant is mated, and greatly reduces the mistake being controlled equipment
The data volume of the device address information sent in journey.And the addressing of this equipment and control method
Motility is relatively strong, every equipment can be carried out independent control.
Preferably, the said equipment group address includes but not limited to: the word of one or more characters
Symbol string;Wherein, each character in this character string is both from group address character list, above-mentioned
Group address character list includes multiple different character, this character be letter, numeral, word and
One or more in symbol.
The said equipment group address is a character string comprising one or more character.Character string
In each character can with value for group address character list in some character.Such as,
Group address character list be 0,1}, equipment group address is a character string ' 001 ', wherein,
In equipment group address, each character of character string is both from group address character list { 0,1}.
Preferably, the said equipment element address includes but not limited to: one or more characters
Character string;Wherein, each character in this character string is both from mask character list, above-mentioned
Mask character list includes multiple different character, and this character is letter, numeral, word and symbol
One or more in number.
The said equipment element address is a character string comprising one or more character.Character
Each character in string can with value for mask character list in some character.Such as,
Mask character list be 0,1}, unit address is a character string ' 001 ', wherein,
In instruction mask, each character of character string is both from mask character list { 0,1}.
Preferably, in above-mentioned steps S305, above-mentioned controlled plant is to by control instruction address
Carry out coupling with the address of this controlled plant and may further include following process: be subject to above-mentioned
When the equipment group address of control equipment is consistent with above-mentioned instruction group address, and if only if the said equipment
Character string that element address comprises and the character string that above-mentioned instruction mask comprises have an identical bits
The character put is identical, and this character is not to ignore the character in character list (such as, { 0})
Time, determine the address coupling of above-mentioned control instruction address and above-mentioned controlled plant.
Preferably, above-mentioned control instruction can also include: holds needed for being used for indicating controlled plant
The control parameter of action type of row, wherein, above-mentioned control parameter includes at least one of:
Device power-up instruction, equipment shutdown command, adjustment equipment parameters instruct, require equipment
Perform assigned operation instruction, the verification data of control instruction.
During being preferable to carry out, the above-mentioned controlled plant of determination in step S307 belongs to
After stating the target device set that control instruction is corresponding, it is also possible to include following process: above-mentioned
Current device performs the operation corresponding with the control parameter comprised in above-mentioned control instruction.Such as,
Controlling parameter string length is 1, when this character string takes ' 1 ', and controlled plant performs start
Operation, this character string takes ' 0 ', and controlled plant performs power-off operation.
The preferred implementation of above-mentioned control instruction is further described below in conjunction with Fig. 4.Fig. 4
Composition schematic diagram for the device address according to the preferred embodiment of the present invention.As shown in Figure 4,
This device address mainly includes two parts, is (1) equipment group address respectively, equipment group ground
Location is a character string comprising multiple character.Each character in character string can be with value
For some character in group address character list.Instruction group address that and if only and if equipment group ground
Location length is identical and the character of same position is time all value is identical, just think instruction group address and
Equipment group address is coupling.(2) unit address.Unit address is a bag
Character string containing multiple characters.Each character in character string can be with value for mask character
Some character in table.And if only if command unit mask character string and unit address
Character string has the character in a same position identical, and this character is not to ignore on character list
Character time, it is believed that command unit mask and unit address be coupling.
The preferred implementation of the response method of control instruction is further described below in conjunction with Fig. 5.
Fig. 5 is the flow chart of the response method of the control instruction according to the preferred embodiment of the present invention.
As it is shown in figure 5, the response method of this control instruction mainly includes following process:
Step S501: controlled plant obtains control instruction from wire message way or wireless channel and sends out
Send the control instruction that equipment sends.
Step S503: controlled plant reads control address from control instruction, compares oneself
Whether the equipment group address in device address mates with the instruction group address in control instruction.As
Really the equipment group address of controlled plant address is mated, then with the instruction group address in control instruction
Perform step S505, otherwise stop responding this instruction, return result and do not mate.
Step S505: controlled plant is by the instruction mask in control instruction address and oneself equipment
The unit address of address compares, command unit mask character string that and if only and if setting
Standby element address character string has the character in a same position identical, and this character is not suddenly
Slightly during the character on character list, determine that command unit mask and unit address are couplings,
Then perform step S507, otherwise stop responding this instruction, return result and do not mate.
Step S507: controlled plant returns result coupling, according to controlling parameter in control instruction
Content, perform the operation specified.
Below in conjunction with the example shown in Fig. 6, further describe transmission and the response of control instruction
The preferred implementation of method.
Fig. 6 is that the control instruction according to present example sends and the schematic diagram of response.Such as figure
Shown in 6, equipment group 1 has two controlled plants, and equipment group 2 has two controlled plants, control
System instruction transmission equipment sends control instruction with multicast or broadcast mode.Each controlled plant from
Control instruction reads and controls address, compare equipment group address in the device address of oneself with
Whether the instruction group address in control instruction mates.If the equipment group ground of controlled plant address
Location is mated with the instruction group address in control instruction, and controlled plant is by control instruction address
Instruction mask compares with the unit address of oneself device address, instruction that and if only if
Unit mask character string and unit address character string have the character phase in a same position
With, and when this character is not to ignore the character on character list, determines command unit mask and set
Standby element address is coupling.
Such as, group address character list be 0,1}, and mask character list be 0,1}, ignore word
Symbol table is { 0}.
Control instruction form is to control the group ground in parameter (string length 1)+control address
Instruction mask (string length 3) in location (string length 3)+control address, its
In, controlling parameter string length is 1, and this character string value ' 0 ' represents shutdown, this word
Symbol string value ' 1 ' represents start, and group address length is fixed as 3 bits, instructs mask-length
It is fixed as 3 bits.Equipment 1 and equipment 2 belong to equipment group 1, the group address of equipment group 1
For ' 001 ', the address of equipment 1 is ' 001001 ', and the address of equipment 2 is ' 001100 ';
Equipment 3 and equipment 4 belong to equipment group 2, and the group address of equipment group 2 is ' 100 ', equipment 3
Address be ' 100001 ', the address of equipment 4 is ' 100010 ';Four equipment initial
State is off-mode.
When control instruction send equipment send control instruction ' 1001101 ' time, equipment 1 and setting
Standby 2 response starts, equipment 3 and equipment 4 are all not responding to.
When control instruction sends equipment transmission control instruction ' 1100010 ', equipment 4 responds
Start, equipment 1, equipment 2 and equipment 3 are all not responding to.
Fig. 7 is the structured flowchart of the dispensing device of the control instruction according to the embodiment of the present invention.
As it is shown in fig. 7, the dispensing device of this control instruction includes: build module 70, be used for building
Containing the control instruction of control instruction address, wherein, above-mentioned control instruction address includes: use
In indicating the instruction group address of controlled plant corresponding device group and being used for indicating controlled plant unit
The instruction mask of address;Sending module 72, for sending by wire message way or wireless channel
The above-mentioned control instruction built.
In the device shown in Fig. 7, whole controlled plants are divided into several groups, build mould
The control instruction that block 70 builds includes instructing group address and representing the instruction of unit address
Mask two parts.Relative to correlation technique, the equipment that the embodiment of the present invention provides addresses and control
Method processed can realize equipment clean culture, multicast and wide by the control instruction sending short length
Broadcast Control system, greatly reduces the device address information sent during being controlled equipment
Data volume.And the addressing of this equipment and control method motility are relatively strong, can be to every
Equipment carries out independent control.
Preferably, above-mentioned instruction group address includes but not limited to: the word of one or more characters
Symbol string;Wherein, each character in this character string is both from group address character list, above-mentioned
Group address character list includes multiple different character, this character be letter, numeral, word and
One or more in symbol.
Preferably, above-mentioned instruction mask includes but not limited to: the character of one or more characters
String;Wherein, each character in this character string is both from mask character list, above-mentioned mask
Character list includes multiple different character, and this character is in letter, numeral, word and symbol
One or more.
Preferably, above-mentioned control instruction can also include: holds needed for being used for indicating controlled plant
The control parameter of the action type of row.Further, above-mentioned control parameter can include following
At least one: device power-up instruction, equipment shutdown command, adjust equipment parameters instruction,
Requirement equipment performs assigned operation instruction, the verification data of control instruction.
Fig. 8 is the structured flowchart of the responding device of the control instruction according to the embodiment of the present invention.
As shown in Figure 8, the responding device of this control instruction includes: receiver module 80, is used for receiving
Come from the control instruction of control equipment;Read module 82, for from above-mentioned control instruction
Reading control instruction address, wherein, above-mentioned control instruction address includes: be used for indicating controlled
The instruction group address of equipment corresponding device group and for indicating the instruction of controlled plant element address
Mask;Matching module 83, for entering by the address of control instruction address and this controlled plant
Row coupling, wherein, the address of above-mentioned controlled plant includes: equipment group address and unit
Address;Determine module 84, on above-mentioned control instruction address and the ground of above-mentioned controlled plant
In the case of the coupling of location, determine that above-mentioned controlled plant belongs to the target that above-mentioned control instruction is corresponding
Cluster tool.
In the device shown in Fig. 8, the control instruction received due to receiver module 80 includes
Instruction group address and instruction mask two parts of expression unit address, above-mentioned controlled plant
Address include: equipment group address and unit address two parts.Above-mentioned controlled plant pair
The address of control instruction address He this controlled plant is mated, greatly reduces equipment
The data volume of the device address information sent during being controlled.And this equipment is compiled
Location and control method motility are relatively strong, every equipment can be carried out independent control.
The said equipment group address includes: the character string of one or more characters;Wherein, this word
Each character in symbol string includes both from group address character list, above-mentioned group address character list
Multiple different characters, this character is the one or many in letter, numeral, word and symbol
Kind.
The said equipment element address includes: the character string of one or more characters;Wherein, should
Each character in character string is both from mask character list, and above-mentioned mask character list includes many
Individual different character, this character is one or more in letter, numeral, word and symbol.
Preferably, above-mentioned matching module 83, it is further used for the equipment at above-mentioned controlled plant
When group address is consistent with above-mentioned instruction group address, and if only if, and the said equipment element address comprises
Character string and the character string that comprises of above-mentioned instruction mask have the character phase in a same position
With, and when this character is not to ignore the character in character list, determine above-mentioned control instruction address
Mate with the address of above-mentioned controlled plant.
Preferably, as it is shown in figure 9, said apparatus can also include: perform module 86, use
In after determining that above-mentioned current device is controlled plant corresponding to above-mentioned control instruction, perform
The operation corresponding with the control parameter comprised in above-mentioned control instruction, wherein, controls parameter and uses
In instruction controlled plant needed for perform action type, above-mentioned control parameter include following at least
One of: device power-up instruction, equipment shutdown command, adjustment equipment parameters instruct, want
Equipment is asked to perform assigned operation instruction, the verification data of control instruction.
In sum, the embodiment provided by the present invention, it is possible to achieve following technique effect:
1, the embodiment of the present invention is divided into several groups, setting of each controlled plant armamentarium
Standby address includes equipment group address and unit address two parts.Setting of each controlled plant
Standby element address, corresponding to controlling the position of instruction one character of mask character string of address, is sent out
Send one to control address can multiple controlled plants that instruction mask character string is corresponding be entered simultaneously
Row controls, and greatly reduces the number of the device address sent during being controlled equipment
According to amount.
Assume that m, n are positive integers.If needing the number of devices controlled is 2^m*n,
The operation of certain secondary control needs the target device set controlled to include all of equipment, uses completely
Device address is addressed by the device address character string of dictionary ranking method, each device address
For a length of (log22^m*n)=(m+log2N) character string, controls 2^m*n equipment,
The address information character string total length that needs send is:
LengthAddr (dict)=2^m*n* (m+log2n)
And the device address coded method using the present invention to provide, 2^m*n equipment is divided into
2^m group, often group comprises n equipment.The group address symbol string of each control instruction packet
A length of m, instructs a length of n of mask character.The total length controlling address in control instruction is
(m+n).Controlling often group equipment and send a control address, controlling 2^m*n equipment needs
Sending 2^m and control address, the total length controlling address information character string is:
LengthAddr (patent)=2^m (n+m)
The control address total length that patent of the present invention proposes controls address with dictionary ranking method equipment
The ratio of total length is:
Length Addr(patent)/LengthAddr(dict)
=(n+m)/(n* (m+log2n))
=(1/ (m+log2n)+m/(n*(m+log2n)))
<(1/(m+log2n)+1/n)
<(1/m+1/n)
As n>2 and m>=2 time, (1/m+1/n)<1.The control address that patent of the present invention proposes
Total length controls address total length less than the dictionary ranking method equipment generally used.Take
M=2, n=3,2^m*n=12, when the equipment sum that need to control is more than or equal to 12, use this
Equipment addressing and control method that patent of invention proposes can substantially reduce required of control equipment
The control address information size sent.
2, the present invention is divided into several groups armamentarium, the device address every time sent and control
Director data bag processed only comprises the address information of this group equipment, relative to a device address
Character string identifies target device set, and each equipment is corresponding to the one of device address character string
The equipment addressing method data packet length of individual position is less.At wireless and other strong noise channels
The probability that packet error occurs during middle transmission is relatively low, even if there is packet error,
The data volume retransmitted is relatively low, improves equipment control efficiency.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention,
For a person skilled in the art, the present invention can have various modifications and variations.All
Within the spirit and principles in the present invention, any modification, equivalent substitution and improvement etc. made,
Should be included within the scope of the present invention.
Claims (12)
1. the sending method of a control instruction, it is characterised in that including:
Building the control instruction containing control instruction address, wherein, described control instruction address includes: be used for indicating controlled plant corresponding device group
Instruction group address and for indicating the instruction mask of controlled plant element address;
The described control instruction built is sent by wire message way or wireless channel;
Described instruction group address includes: the character string of one or more characters;Wherein, each character in this character string is both from group ground
Location character list, described group address character list includes multiple different character, this character be the one in letter, numeral, word and symbol or
Multiple.
Method the most according to claim 1, it is characterised in that described instruction mask includes: the character string of one or more characters;Wherein,
Each character in this character string includes multiple different character both from mask character list, described mask character list, this character be letter,
One or more in numeral, word and symbol.
Method the most according to claim 1, it is characterised in that described control instruction also includes: hold needed for being used for indicating controlled plant
The control parameter of the action type of row.
4. the response method of a control instruction, it is characterised in that including:
Controlled plant receives the control instruction coming from control equipment;
Described controlled plant reads control instruction address from described control instruction, and wherein, described control instruction address includes: be used for indicating controlled
The instruction group address of equipment corresponding device group and for indicating the instruction mask of controlled plant element address;
The address of control instruction address He this controlled plant is mated by described controlled plant, and wherein, the address of described controlled plant includes: set
Standby group address and unit address;
In the case of the address of described control instruction address and described controlled plant is mated, determine that described controlled plant belongs to described control instruction pair
The target device set answered.
Method the most according to claim 4, it is characterised in that described equipment group address includes: the character string of one or more characters;Its
In, each character in this character string includes multiple different character, this word both from group address character list, described group address character list
Symbol is one or more in alphabetical, numeral, word and symbol.
Method the most according to claim 4, it is characterised in that described unit address includes: the character string of one or more characters;
Wherein, each character in this character string includes multiple different character, this character both from mask character list, described mask character list
For one or more in letter, numeral, word and symbol.
Method the most according to claim 6, it is characterised in that the address of control instruction address and this controlled plant is entered by described controlled plant
Row coupling, including:
When the equipment group address of described controlled plant is consistent with described instruction group address, character string that described unit address comprises that and if only if
There is the character in a same position identical with the character string that described instruction mask comprises, and when this character is not to ignore the character in character list,
Determine the address coupling of described control instruction address and described controlled plant.
8. according to the method according to any one of claim 4 to 7, it is characterised in that determining that described controlled plant is described control instruction pair
After the controlled plant answered, also include: the operation that current device execution is corresponding with the control parameter comprised in described control instruction, wherein,
Control parameter for indicating the required action type performed of controlled plant.
9. the dispensing device of a control instruction, it is characterised in that including:
Building module, for building containing the control instruction of control instruction address, wherein, described control instruction address includes: be used for indicating controlled
The instruction group address of equipment corresponding device group and for indicating the instruction mask of controlled plant element address;
Sending module, for sending, by wire message way or wireless channel, the described control instruction built;
Above-mentioned instruction group address includes: the character string of one or more characters;Wherein, each character in this character string is both from group address word
Symbol table, above-mentioned group address character list includes multiple different character, and this character is one or more in letter, numeral, word and symbol.
10. the responding device of a control instruction, it is characterised in that including:
Receiver module, for receiving the control instruction coming from control equipment;
Read module, for reading control instruction address from described control instruction, wherein, described control instruction address includes: be subject to for instruction
The instruction group address of control equipment corresponding device group and for indicating the instruction mask of controlled plant element address;
Matching module, for being mated the address of control instruction address He this controlled plant, wherein, the address of described controlled plant includes:
Equipment group address and unit address;
Determine module, in the case of mating in the address of described control instruction address and described controlled plant, determine that described controlled plant belongs to
The target device set that described control instruction is corresponding.
11. devices according to claim 10, it is characterised in that described matching module, are further used for the equipment at described controlled plant
When group address is consistent with described instruction group address, character string that described unit address comprises that and if only and if described instruction mask comprise
Character string has the character in a same position identical, and when this character is not to ignore the character in character list, determines described control instruction ground
The address coupling of location and described controlled plant.
12. according to the device described in claim 10 or 11, it is characterised in that also include: perform module, for determining that current device is
After the controlled plant that described control instruction is corresponding, perform the operation corresponding with the control parameter comprised in described control instruction, wherein, control
Parameter processed is for indicating the required action type performed of controlled plant.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410187256.8A CN103955195B (en) | 2014-05-05 | 2014-05-05 | The transmission of a kind of control instruction, response method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410187256.8A CN103955195B (en) | 2014-05-05 | 2014-05-05 | The transmission of a kind of control instruction, response method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103955195A CN103955195A (en) | 2014-07-30 |
CN103955195B true CN103955195B (en) | 2016-09-14 |
Family
ID=51332480
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410187256.8A Active CN103955195B (en) | 2014-05-05 | 2014-05-05 | The transmission of a kind of control instruction, response method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103955195B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106332377B (en) * | 2016-11-14 | 2018-06-29 | 李伟 | A kind of integrated chip and control system, luminous tube |
CN107272652A (en) * | 2017-07-12 | 2017-10-20 | 重庆九钰智慧科技有限公司 | A kind of method and device for specification Internet of things hardware sensing layer control instruction |
CN112083690A (en) * | 2019-06-14 | 2020-12-15 | 调调(北京)科技有限公司 | Equipment, controller, and control method, device and system of equipment |
CN110958100A (en) * | 2019-10-30 | 2020-04-03 | 中国安全生产科学研究院 | Equipment control method and device |
CN112565032B (en) * | 2020-11-30 | 2022-07-05 | 扬州鹏为软件有限公司 | Method for connecting terminal and intelligent equipment |
CN114422559A (en) * | 2021-12-31 | 2022-04-29 | 深圳海翼智新科技有限公司 | Device control method and device, electronic device and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5382947A (en) * | 1991-05-30 | 1995-01-17 | Feller Ag | Remote-controlled operation system for electrical consumers |
CN1633126A (en) * | 2004-12-24 | 2005-06-29 | 北京中星微电子有限公司 | A command transmission method |
CN1674545A (en) * | 2004-03-26 | 2005-09-28 | 联想(北京)有限公司 | Address setting system and address setting method |
CN103236901A (en) * | 2013-04-15 | 2013-08-07 | 天脉聚源(北京)传媒科技有限公司 | Method and device for transmitting commands |
-
2014
- 2014-05-05 CN CN201410187256.8A patent/CN103955195B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5382947A (en) * | 1991-05-30 | 1995-01-17 | Feller Ag | Remote-controlled operation system for electrical consumers |
CN1674545A (en) * | 2004-03-26 | 2005-09-28 | 联想(北京)有限公司 | Address setting system and address setting method |
CN1633126A (en) * | 2004-12-24 | 2005-06-29 | 北京中星微电子有限公司 | A command transmission method |
CN103236901A (en) * | 2013-04-15 | 2013-08-07 | 天脉聚源(北京)传媒科技有限公司 | Method and device for transmitting commands |
Also Published As
Publication number | Publication date |
---|---|
CN103955195A (en) | 2014-07-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103955195B (en) | The transmission of a kind of control instruction, response method and device | |
US10216374B2 (en) | Method and apparatus for displaying notification message | |
CN102646344B (en) | All-teacher-controlled fast-interactive classroom teaching system and using method thereof | |
JP2005051523A5 (en) | ||
CN105610777B (en) | Remote living broadcast method and system | |
CN107623937A (en) | Send and receive method, base station and the user equipment of system message | |
CN104580308A (en) | Virtual desktop reappearing and pushing method and device and virtual desktop system | |
CN106781758A (en) | A kind of Intelligent campus management system | |
JP2005064722A5 (en) | ||
CN107871415B (en) | Cloud classroom course switching method, device and system | |
US20110299428A1 (en) | Dynamic Multiple Access Protocol for Use in an Audience Response System | |
CN101763259A (en) | Method, device and system for setup processing and setup instruction of computer control function | |
CN109417768A (en) | Update method, terminal device and the network side equipment of system information | |
CN104038429A (en) | Method and device for performing message multicast on distributed forwarding equipment | |
CN100579182C (en) | Subtitling stacked method and apparatus | |
CN103986588A (en) | Computer system and far-end remote control method of computer device | |
CN105635272A (en) | Server, student end, teacher end, and coursework processing method and system | |
EP2819075A1 (en) | Method and apparatus for automatically synchronizing electronic devices | |
JP2020101970A (en) | Conversation processing system, information processing apparatus and program | |
CN104615271A (en) | Processing method for KVM (Kernel-based Virtual Machine) and processing device for KVM | |
CN106161044A (en) | A kind of information transferring method and device | |
CN103209172A (en) | Voice message transmission method, terminal, server and system | |
CN103117928A (en) | Method and device for improving chip forwarding performance | |
US10820195B2 (en) | Digital signage system and pairing method of the same | |
KR102357055B1 (en) | Method and artificial intelligence system to reduce the load generated during operation of non-face-to-face real-time interactive video solution |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |