CN110032537A - Address writing method, address writing station and computer readable storage medium - Google Patents

Address writing method, address writing station and computer readable storage medium Download PDF

Info

Publication number
CN110032537A
CN110032537A CN201910237427.6A CN201910237427A CN110032537A CN 110032537 A CN110032537 A CN 110032537A CN 201910237427 A CN201910237427 A CN 201910237427A CN 110032537 A CN110032537 A CN 110032537A
Authority
CN
China
Prior art keywords
address
communication equipment
special
communication
coded
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.)
Granted
Application number
CN201910237427.6A
Other languages
Chinese (zh)
Other versions
CN110032537B (en
Inventor
郭伟峰
李照华
陈克勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Mingwei Electronic Co Ltd
Shenzhen Sunmoon Microelectronics Co Ltd
Original Assignee
Shenzhen Mingwei Electronic Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Mingwei Electronic Co Ltd filed Critical Shenzhen Mingwei Electronic Co Ltd
Priority to CN201910237427.6A priority Critical patent/CN110032537B/en
Publication of CN110032537A publication Critical patent/CN110032537A/en
Application granted granted Critical
Publication of CN110032537B publication Critical patent/CN110032537B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/16Combinations of two or more digital computers each having at least an arithmetic unit, a program unit and a register, e.g. for a simultaneous processing of several programs
    • G06F15/163Interprocessor communication
    • G06F15/173Interprocessor communication using an interconnection network, e.g. matrix, shuffle, pyramid, star, snowflake
    • G06F15/17337Direct connection machines, e.g. completely connected computers, point to point communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Small-Scale Networks (AREA)

Abstract

The address writing station and computer readable storage medium of a kind of address writing method of cascade device, cascade device, the address writing method include: that coded address string is transmitted to cascade device;Special address set is obtained, special address set includes at least one special address;Special address set is sent to cascade device, and judges whether the special address in special address set matches with the coded address of communication equipment;If the coded address of n-th communication equipment and special address successful match;If N=1, the 1st communication equipment is written into initial physical addresses;If N > 1, the physical address of the N-1 communication equipment is sent to n-th communication equipment, and generate the physical address of n-th communication equipment according to the physical address of the N-1 communication equipment, n-th communication equipment is written into the physical address of n-th communication equipment;N and M is the positive integer more than or equal to 1, and N≤M.

Description

Address writing method, address writing station and computer readable storage medium
Technical field
The invention belongs to field of communication technology more particularly to a kind of address writing methods of cascade device, cascade device Address writing station and computer readable storage medium.
Background technique
As the circuit function that electronic equipment is realized becomes increasingly complex, the signal communication function and letter inside circuit system Breath transmission mode also has varied;And in engineering practice, technical staff usually requires to combine multiple electronic equipments realizations The task more loaded improves working efficiency, to meet industrial requirement;In the circuit collection that multiple electronic apparatus combinations are formed At in control system, technical staff can be synchronized by controlling signal, efficiently carry out dynamic control to multiple electronic equipments, So that multiple electronic equipments are synchronous to execute corresponding circuit operation;Multiple electronic equipments cooperate and according to the realities of technical staff The industrial operation of border demand execution a series of complex;Therefore electricity can be greatlyd improve by carrying out centralized control for multiple electronic equipments The control efficiency of road system and the operating cost for reducing circuit system, when multiple electronic equipments access corresponding control signal When, it is whole ensured by way of integrated control suitable for different industrial environments that multiple electronic equipments form a circuit Different types of industrial task can be performed in the control stability and safety of electronic equipment, electronic equipment.
In the conventional technology in the centralized control of multiple electronic equipments, each electronic equipment has specific identity Address, identity marks of the ID address as each electronic equipment can be for multiple electronic equipments by ID address Middle part electronic equipment is identified, is verified, with realize in circuit integration control system each electronic equipment it is accurate Control;Therefore setting corresponding ID address for each electronic equipment has the stability of circuit integration control system Extremely important meaning;However in circuit integration control system, if there are an electronic equipment or certain several electronic equipment It damages, then technical staff needs replacing wherein some or certain several electronic equipments, is set in the electronics for failure After the completion of being replaced, need to carry out address initialization for the electronic equipment again, so that circuit integration control system In stable working condition;However address is being carried out for one or several electronic equipments in circuit integration control system In initialization procedure, traditional technology can not identify individual electronic equipment and carry out independent address initialization to electronic equipment; Traditional technology can only re-start address initialization for electronic equipment all in circuit integration control system, then whenever electricity When some electronic equipment in the integrated control system of road needs to carry out address assignment, then just need by control circuit for All electronic equipments re-start primary address assignment, this can greatly delay the address write efficiency of electronic equipment, cause Higher cost is written in the address of biggish power loss, multiple electronic equipments, it is difficult to generally be applicable in.
Summary of the invention
In view of this, the embodiment of the invention provides the addresses of a kind of address writing method of cascade device, cascade device Writing station and computer readable storage medium, it is intended to which solving traditional technical solution can not be for Single Electron in cascade device Equipment carries out address write-in, improves the write-in cost of electronic equipment, the lower problem of compatibility.
The first aspect of the embodiment of the present invention provides a kind of address writing method of cascade device, the cascade device packet M successively cascade communication equipments are included, the address writing method includes:
Coded address string is transmitted to the cascade device, so that each communication equipment has the coded address of itself;
Special address set is obtained, the special address set includes at least one special address;
The special address set is sent to the cascade device, and is judged in the special address set distinguishingly Whether location matches with the coded address of communication equipment;
If the coded address of n-th communication equipment and the special address successful match;If N=1, by initial physical The 1st communication equipment is written in location;If N > 1, the physical address of the N-1 communication equipment is sent to n-th communication equipment, and The physical address that n-th communication equipment is generated according to the physical address of the N-1 communication equipment, by the object of n-th communication equipment It manages address and n-th communication equipment is written, to complete the address setting of the cascade device;
Wherein, the N is positive integer more than or equal to 1, the M be for the positive integer more than or equal to 1, and N≤M。
In one of them embodiment, special address and communication equipment in the judgement special address set Whether coded address matches, specifically:
If the coded address of n-th communication equipment is identical as any special address in the special address set, N The coded address of a communication equipment and the special address successful match;
If the coded address of n-th communication equipment and any special address in the special address set be not identical, if N The special address set is then transmitted to the N+1 communication equipment by < M, to verify in the special address set distinguishingly Whether location matches with the coded address of the N+1 communication equipment.
It is described to obtain the special address set in one of them embodiment, specifically:
Read the location information of all target communication devices to be controlled of user in the cascade device;
It is generated and the associated special address of the target communication device according to the location information of the target communication device;
Judge whether the special address matches with the location information of the target communication device, if the special address with The location information of the target communication device mismatches, then is regenerated according to the location information of the target communication device and institute State the associated special address of target communication device.
In one of them embodiment, the location information of the judgement special address and the target communication device Whether match, specifically:
If the special address is identical as the coded address of any one target communication device in the cascade device, institute Special address is stated to match with the location information of the target communication device;
If the special address is not identical as the coded address of target communication device all in the cascade device, institute The location information for stating special address and the target communication device mismatches.
In one of them embodiment, the physical address by the N-1 communication equipment is sent to n-th communication and sets It is standby, specifically:
After the coded address of n-th communication equipment and the special address successful match and first preset time that is delayed, Address is sent instruction and is transmitted to the N-1 communication equipment by n-th communication equipment;
After the N-1 communication equipment receives the address transmission instruction and second preset time that is delayed, detection n-th is logical Whether the coded address of letter equipment matches with the special address;
If the coded address of the n-th communication equipment and the special address successful match, the N-1 communication is judged Whether the coded address of equipment matches with any special address in the special address set;
If any special address in the coded address of the N-1 communication equipment and the special address set mismatches simultaneously And after delay third preset time, then by the storing data of the physical address of the N-1 communication equipment and the N-1 communication equipment It is sent to n-th communication equipment.
In one of them embodiment, N >=2, in cascade device, the signal output port of the N-1 communication equipment It is connect with n-th communication equipment;
After the physical address of the N-1 communication equipment is sent to n-th communication equipment, by the N-1 communication equipment Signal output port be set as high-impedance state so that the N-1 communication equipment and n-th communication apparatus communication interrupt.
In one of them embodiment, the physical address according to the N-1 communication equipment generates n-th communication and sets Standby physical address, specifically:
In the cascade device, the address span between the physical address of two neighboring communication equipment is obtained;
Physical address and the address span to the N-1 communication equipment carry out operation and generate n-th communication equipment Physical address.
In one of them embodiment, the communication equipment is LED light bar chip.
The second aspect of the embodiment of the present invention provides a kind of address writing station of cascade device, including memory, place The computer program managing device and storage in the memory and can running on the processor, the cascade device include M successively cascade communication equipments, the processor realize the ground of cascade device as described above when executing the computer program The step of location wiring method;
Wherein, the M is the positive integer more than or equal to 1.
The third aspect of the embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable storage Media storage has computer program, and the computer program realizes that the address of cascade device as described above is write when being executed by processor The step of entering method.
The address writing method of above-mentioned cascade device is gone here and there by coded address and carries out address tax to each communication equipment Value is identified the coded address as the address of communication equipment, then address mark can represent communication equipment and set in cascade Location information in standby, therefore in the address writing process of communication equipment, it can be looked in cascade device by coded address The communication equipment to be controlled to user;It, then will be special according to user for the special address of control acquisition of information of cascade device Different address and the coded address of each communication equipment carry out match cognization, if the coded address of communication equipment and special address Initial physical addresses are write direct if communication equipment to be controlled is first communication equipment in cascade device with success First communication equipment, to realize that the address of first network equipment is separately written function;If communication equipment to be controlled is not First communication equipment of cascade device, then pick out communication equipment to be controlled from cascade device, and by upper one The physical address of communication equipment is transmitted to the communication equipment to be controlled, according to distribution of the physical address in multiple communication equipments Rule carries out address write-in to communication equipment to be controlled according to the physical address of a upper communication equipment, to realize for grade Communication equipment to be controlled is individually identified and address write-in functions in connection equipment;To the address write-in in the embodiment of the present invention Method can identify individual communication equipment, the identification accuracy of communication equipment according to the actual demand of user in cascade device Height, recognition rate are very fast;In for cascade device the coded address of some or certain several communication equipments identify successfully with Afterwards, address control and write-in are carried out for communication equipment to be controlled using the physical address that itself is stored in cascade device, with Realization is separately written function for the address of one in cascade device or certain several communication equipment, greatly improves communication and sets Accuracy is written in standby address write efficiency and address;Therefore the address writing method in the embodiment of the present invention is not necessarily to for cascade All communication equipments synchronize address write-in in equipment, and the physical address of particular communication devices can be separately written, The electric energy loss and address write-in cost in the writing process of address are reduced, has ensured the number of multiple communication equipments in cascade device According to writing accuracy and practical value;And then the address writing method is applicable to each different industrial technical field, it is compatible Property it is extremely strong, so that the cascade device is can be realized more complete, complicated circuit function.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these Attached drawing obtains other attached drawings.
Fig. 1 is the structural schematic diagram for the cascade device that one embodiment of the invention provides;
Fig. 2 is the specific flow chart of the address writing method for the cascade device that one embodiment of the invention provides;
Fig. 3 is the coding for judging special address and communication equipment in special address set that one embodiment of the invention provides The whether matched specific flow chart in address;
Fig. 4 is the specific flow chart of the address writing method step S202 for the cascade device that one embodiment of the invention provides;
Fig. 5 is sent to n-th communication for the physical address by the N-1 communication equipment that one embodiment of the invention provides and sets Standby specific flow chart;
Fig. 6 generates n-th communication for the physical address according to the N-1 communication equipment that one embodiment of the invention provides and sets The specific flow chart of standby physical address;
Fig. 7 is the structural schematic diagram of the address writing station for the cascade device that one embodiment of the invention provides.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
Cascade device is widely used in each industrial technical field, can be realized more by cascade device Complicated circuit function brings more preferably usage experience to user to meet the actual circuit demand of technical staff;When cascade is set When standby incoming control signal, it can drive multiple communication equipments are synchronous to execute corresponding circuit function by controlling signal, can grasp Control property is extremely strong;Illustratively, Fig. 1 shows the structural representation of cascade device 10 provided in this embodiment, referring to Fig. 1, described Cascade device 10 includes at least one successively cascade communication equipment, each communication equipment has specific in cascade device Arrange serial number;When 10 incoming control signal of cascade device, transmitted by the signal between adjacent communication equipment, cascade device Control signal can be transmitted each communication equipment, it is when the communication equipment incoming control signal in cascade device 10, then all Corresponding circuit function can be achieved in communication equipment under the driving of the control signal, and controls signal in cascade communication equipment In transmission process, each communication equipment has the physical address of itself, and the physical address is as communication equipment in cascade device Geographical indication in 10 can make each communication equipment in cascade device that can realize accurate electricity by the physical address Road control function ensures the control stability and control accuracy of multiple communication equipments;However under the conditions of certain specific, example If some communication equipment is updated in cascade device, then the address of the cascade device just needs to be assigned again;And traditional skill Art can only synchronize address assignment to communication equipment all in cascade device 10, cause greatly electric energy loss, practical It is worth extremely low;Based on this problem, the present embodiment provides a kind of address writing methods of cascade device, to realize for cascade device The address of one or more communication equipment is separately written function in 10, greatly improves the address write efficiency of communication equipment With address writing accuracy, job stability and the safety of cascade device 10 have been ensured, practical value is high.
It needs to illustrate, the cascade device 10 in Fig. 1 is only the application pair of address writing method in the present embodiment As behaviour such as those skilled in the art can expand the structure of cascade device 10 on basis in Fig. 1, extend Make, does not limit this;Due to the minor adjustment of this application for merely relating to the address writing method, and have not been changed institute The essential operating procedure of address writing method is stated, the address writing method in the present embodiment is applicable to different type in this field Cascade device in.
Referring to Fig. 2, the specific implementation flow of the address writing method of cascade device provided in an embodiment of the present invention, In, the cascade device includes M successively cascade communication equipments, wherein the specific embodiment of the cascade device can refer to The embodiment of Fig. 1, will not be described in great detail herein;It can be realized by the address writing method independent for the address of particular communication devices Write-in, has ensured the control security and job stability of communication equipment;For ease of description, it illustrates only and the present embodiment phase The part of pass, details are as follows:
The address writing method includes the following steps:
Step S201: coded address string is transmitted to the cascade device, so that each communication equipment has itself Coded address.
Optionally, the coded address string includes multiple coded addresses, and wherein each coded address is communicated with each Equipment matching, when coded address, string is successively transmitted to each communication equipment, each communication equipment accesses corresponding coding Address, and address designator of the coded address as communication equipment, are set in cascade device by the coded address Location information in order to the lookup and identification for communication equipment is conducive to set each communication in cascade device Standby control precision and address writing accuracy.
Preferably, any two coded address in the address code string is not identical, and then can realize in cascade device Each communication equipment has unique coded address, has ensured the uniqueness of the address mark of communication equipment, has avoided logical Believe the address write error of equipment;Illustratively, if the address code in address code string is binary number, then by multiple Binary coding can accurately indicate the position parameter data of communication equipment, ensure the efficiency of transmission of address code string;Example Such as, the coded address is the data of 16bits, then coded address are as follows: 1100001111110001;And then the coded address The address information of each communication equipment can be accurately represented, the coded address string can react communication in cascade device and set Connection relationship between standby, not only simplifies the present embodiment for the address write step of cascade device, and improve cascade device Address writing accuracy.
In the present embodiment, corresponding coding is generated according to the location distribution information of each communication equipment in cascade device Address string, during coded address string is transmitted in multiple communication equipments, each communication equipment can be realized The function of initializing of coded address;Be conducive to the lookup of each communication equipment according to the coded address, and then simplify cascade The identification step and identification process of each communication equipment in equipment;It can be according to actual circuit function demand in cascade device Real-time searching is to the corresponding communication equipment in coded address, to realize the independent address write-in functions for the communication equipment, cascade There is each communication equipment higher manipulation efficiency and address flexibility is written in equipment.
Step S202: obtaining special address set, and the special address set includes at least one special address.
The special address set includes the cascade device information that user is to be controlled in cascade device, which can Some communication equipment in cascade device is mapped to, then can search out in cascade device specifically according to the special address Physical address;Therefore the communication equipment information to be controlled of user quasi- can be embodied by special address set with taking, so that The address writing method can carry out address write operation for specific communication equipment according to the operational order of technical staff, use The usage experience at family is more preferably;Preferably, the special address of any two in the special address set is different from, Jin Ersuo Stating special address, there are one-to-one relationships with communication equipment, communication equipment can be made accurately to realize by the special address The independent control function in address;The special address includes the equipment selection information of user, to drive address writing method only right Specific communication equipment carries out address write operation, improves the flexibility and controllability of address writing method.
Wherein, the coded address string includes one or more coded address, and then can by coded address string For the communication equipment or multiple communication equipments progress address write operation in cascade device, address has greatly been ensured The compatibility and practicability of wiring method;Information exports one or more special address according to the user's choice, this is distinguishingly Location can be realized the selection function for communication equipment single in cascade device, and the coded address quantity in the string of coded address It can be adjusted according to the actual demand of technical staff, the address write operation of communication equipment has higher controllability, uses The usage experience at family is more preferably.
Step S203: the special address set is sent to the cascade device, and judges the special address set In special address whether matched with the coded address of communication equipment.
The wherein distinguishingly location set communication equipment information to be controlled comprising multiple users, special address set is successively It is transmitted to each of cascade device communication equipment;Referring to Fig.1, according to the order of connection between multiple communication equipments, communication Equipment receives and identifies the special address set, by comparing coded address and any in special address set of communication equipment Difference condition between special address, and then judge whether communication equipment is user's target object to be controlled;To this reality It applies example and the address mark of special address and each communication equipment is subjected to match cognization one by one, with can be quasi- in cascade device All communication equipments to be controlled really are found out, function is separately written for the address of communication equipment to realize, has ensured grade Join the address writing accuracy and accuracy of communication equipment in equipment;By each special address in special address set with communicate One-to-one correspondence rule between the coded address of equipment, can rapidly pick out in cascade device and need to carry out address write-in The accuracy rate of communication equipment, identification is high, and rate is exceedingly fast;And then be conducive to be promoted the address writing speed of the address writing method With user's control precision, control response speed faster, avoids the occurrence of the phenomenon of the failure of address write latency.
Step S204: if the coded address of n-th communication equipment and the special address successful match;It, will if N=1 The 1st communication equipment is written in initial physical addresses;If N > 1, the physical address of the N-1 communication equipment is sent to n-th Communication equipment, and according to the physical address of the physical address of the N-1 communication equipment generation n-th communication equipment, n-th is led to Believe that n-th communication equipment is written in the physical address of equipment, to complete the address setting of the cascade device.
Exemplary, the structural representation of cascade equipment 10 referring to Fig.1, communication equipment A and communication equipment B are in cascade device Two communication equipments, when communication equipment A coded address and special address set in any special address successful match, then Illustrate that communication equipment A is user's target object to be controlled, then the communication equipment A of successful match is needed to realize address write-in function Energy;On the contrary, illustrating this if all special addresses in the coded address of communication equipment B and special address set all mismatch Communication equipment B and non-user target object to be controlled, then communication equipment B is without carrying out address write-in, in the present embodiment Address writing method continues to judge whether remaining communication equipment needs to carry out address write-in functions;Therefore the present embodiment is according to logical The matching result between the coded address and special address of equipment is believed, to realize that the communication equipment to be controlled for user carries out ground Location write operation has ensured that the address of communication equipment is separately written rate and is separately written precision, multiple logical in cascade device Letter equipment can remain the working condition of stable safety.
In the present embodiment, if the address matching result according to special address finds out communication to be controlled in cascade device It, can be directly by initial physical addresses if communication equipment to be controlled is first communication equipment in cascade device when equipment It is transmitted to the 1st communication equipment, ensures that the 1st communication equipment can be realized address write-in functions;Optionally, the initial physical Address be pre-set address information, by the predetermined physical address can ensure the 1st communication equipment job stability and Job security, realize communication equipment to be controlled address individually, no write de-lay function;If communication equipment to be controlled is not The 1st communication equipment in cascade device, then the address information of itself is sent to current communication and set by a upper communication equipment It is standby, since regularity arrangement point column are presented in multiple communication equipments, according to the relative positional relationship between different communication equipment, it is based on The physical address of a upper communication equipment can direct derivation go out the physical address of current communication equipment, wherein current communication is set Standby physical address includes the full location information of current communication equipment, and physical address is written to current communication equipment, into And current communication equipment and other communication equipments form a circuit entirety, are transmitted in control signal cascade equipment In the process, each communication equipment accesses corresponding control information according to the physical address of itself, according to the practical electricity of user Road functional requirement realizes corresponding circuit function, achievable more complicated, the complete circuit task of cascade device, by right The working efficiency and job stability of cascade device can have greatly been ensured in the secure address equipment of communication equipment;Therefore this reality It applies example and user's communication equipment to be controlled is found by coded address, and is raw by the physical address of adjacent communication equipment At the physical address of current communication equipment, to complete the real-time configuration of the physical address of current communication equipment itself, greatly Ground has ensured the address write efficiency and address writing accuracy of current communication equipment;Current communication equipment is extraneous without accessing Physical address information, can rely on cascade device storage inside physical address, and according to multiple communication equipments space point The physical address of cloth rule, adjacent communication equipment has specific data correlation, can be according to the object of a upper communication equipment The physical address of current communication equipment is derived in reason address, easy to operate, greatly simplifies the address write-in of communication equipment Step can carry out the shared and transmitting of physical address information between adjacent communication equipment, reduce in the writing process of address Electric energy loss, single communication equipment can realize more accurate address write-in functions in the cascade device in the present embodiment, compatible Property is stronger, brings good usage experience to user.
Wherein, wherein the N is positive integer more than or equal to 1, the M be just whole more than or equal to 1 Number, and N≤M;The quantity of communication equipment can be adjusted according to the actual demand of user in the present embodiment cascade device, in turn The address writing method can pick out all communication equipments to be controlled in cascade device, and address was written in cascade device Journey controllability with higher and flexibility, the address writing method can be widely applicable for each different industrial technology neck Domain, compatibility is extremely strong, and the circuit function that cascade device is realized can meet the actual demand of user, and the usage experience of user is higher.
Fig. 2 shows in the specific implementation flow of the address writing method of cascade device, pass through coded address string pair first Each communication equipment carries out address assignment in cascade device, using coded address as the address label of each communication equipment Know, then can confirm address information and distribution of each communication equipment in cascade device according to coded address, just In the lookup for communication equipment and individually control in real time;Instruction generates special address set, the spy depending on the user's operation Different address set includes selection information of the user for the communication equipment in cascade device;Again by the spy in the special address set Different address is matched one by one with the coded address of communication equipment in cascade device, according to address matching result in cascade device All users communication equipment to be controlled is found out, to realize accurate positioning and control for communication equipment to be controlled;When It, on the one hand can be directly right according to the physical address changing rule between adjacent communication equipment after obtaining target object to be controlled The 1st communication equipment carries out address write-in in cascade device, improves address writing accuracy and accuracy rate, avoids the occurrence of section communication Lose the address of equipment;On the other hand, the physical address based on a upper communication equipment generates the physics of current communication equipment Address, to realize that the physical address of current communication equipment is separately written function, so that current communication equipment is able to maintain peace Entirely, stable working condition, realize cascade device in communication equipment address individually, no write de-lay function;To the present embodiment In address writing method user's communication equipment to be controlled can be accurately determined in cascade device, especially large-scale, complicated Cascade device in, the physical address of communication equipment to be controlled, nothing are generated according to the physical address of cascade device storage inside Method need to be separately written with extremely simple in the address of communication equipment from extraneous electronic circuit access address data, the present embodiment The operating procedure of change, the ultrahigh in efficiency of address write-in, power consumption is lower, and the address that can be realized single communication equipment is accurately write Enter function, ensures the safety and accuracy of physical address in communication equipment;The address writing method can be in various industry Realize that compatibility is stronger, and the scope of application is extremely wide for the address write-in of communication equipment and control function in system;To this reality It applies the address writing method in example and greatly improves the working efficiency and job stability of cascade device, cascade device can be according to The actual demand working for starting circuit of technical staff;The electronics in cascade device can not be set by efficiently solving traditional technology Standby to carry out independent address write operation, traditional address writing method can only synchronize address for all electronic equipments and write Enter, in turn resulted in biggish electric energy power loss, the address write efficiency of electronic equipment is low, reduces the control of cascade device Efficiency processed and control accuracy, the address writing method operation of electronic equipment is excessively complicated in traditional technology, controls signal in grade It is easily in an unsure state in connection equipment, it is difficult to generally be applicable in, the lower problem of the usage experience of user.
As an alternative embodiment, Fig. 3 is shown in step S203 provided in this embodiment, described in the judgement The whether matched concrete operations process in the coded address of special address and communication equipment in special address set, referring to Fig. 3, The step includes:
Step S2031: if any special address in the coded address of n-th communication equipment and the special address set It is identical, then the coded address of n-th communication equipment and the special address successful match;
Since coded address represents the address mark of current communication equipment (n-th communication equipment), if current communication Equipment is that the address of both user's target object to be controlled, the then coded address of current communication equipment and special address is believed Manner of breathing is same, then the address writing method can execute address write operation for current communication equipment, to realize cascade device The independent address write-in functions of communication equipment;Illustratively, if the coded address of current communication equipment is 1100001111110001, it there are a special address is also 1100001111110001 in special address set, then according to spy Different address communication equipment to be controlled for user in cascade device identifies successfully, and then is conducive to be controlled for user Communication equipment carries out independent address write-in, greatly improves the recognition efficiency and identification essence of user's communication equipment to be controlled It spends, the address writing method in the present embodiment has higher control accuracy and operating efficiency.
Step S2032: if any special address in the coded address of n-th communication equipment and the special address set It is not identical, if N < M, the special address set is transmitted to the N+1 communication equipment, to verify the special address set In special address whether matched with the coded address of the N+1 communication equipment.
Wherein, if the coded address of n-th communication equipment and any special address in the special address set not phase Together, and N=M, then address matching finishes communication equipment all in the cascade device, and the present embodiment is cascading All communication equipments to be controlled are identified in equipment, special address, which is integrated into cascade device, at this time is no longer transmitted, to The communication equipment of control, which has been found, to be terminated;And then the address writing method can be to be controlled for each in cascade device Communication equipment can all realize that address is separately written, and by being identified, being sentenced for cascade device the last one communication equipment It is disconnected, it avoids and occurs electric energy loss and the lower problem of address write efficiency in communication equipment address writing process.
If the coded address of current communication equipment and special address matching are unsuccessful, illustrate the current communication equipment And the target object that non-user is to be controlled, then current communication equipment inherently has physical address, then current communication is set It is standby can not writing address, then the address writing method in the present embodiment can exclude cascade device by the matching result of special address The communication equipment of middle non-user control, and then avoid the independent address write error for communication equipment;Therefore lead to according in Fig. 1 Believe equipment between the order of connection, then special address set is transmitted to next communication equipment by current communication equipment, with after Whether remaining communication equipment in continuous verifying cascade device meets special address matching condition, to complete next communication equipment Coded address Information Authentication;And so on, then complete for communication equipments all in cascade device coded address verifying, Match, until the last one communication equipment just stops the transmission process of special address set in cascade device, is set with finding out cascade All users communication equipment to be controlled in standby;Illustratively, referring to Fig.1, communication equipment C and communication equipment D is that cascade is set Two adjacent communication equipments in standby, if the coded address of communication equipment C is 1101001111110000, in special address set Including two special addresses: special address A and special address B, wherein special address A is 1100001111110001, distinguishingly Location B is 1100001110110001, then any one in the coded address of communication equipment C and special address set is distinguishingly Location is different from, then communication equipment C and the special address matching in special address set are unsuccessful, communication equipment C is not used Family target object to be controlled;Then special address set is transmitted to communication equipment D by communication equipment C, passes through special address set In special address realize the coded address of match cognization to(for) communication equipment D, and then can be in cascade device for all Identification, the matching operation of the coded address of communication equipment have ensured address write efficiency and writing accuracy for communication equipment.
The address writing method can carry out independent address for one or more communication equipment in cascade device and write Enter function, to meet the actual circuit functional requirement of user;Communication equipment in cascade device realizes ground under the manipulation of user Location is separately written function, and the accuracy and ultrahigh in efficiency of address write-in, controllability is stronger, the coded address of communication equipment and spy The matching deterministic process of different address is relatively simple, and the communication equipment in cascade device can be according to coded address and special address Matching result carries out real-time address write operation, and the cascade device is at safe and stable working condition.
In the matching deterministic process of the coded address of special address and communication equipment shown in Fig. 3, according to distinguishingly Special address in the set of location and the matching result between the coded address of communication equipment, can accurately judge that communication equipment is The no address write-in demand for meeting user, and then realize and demand is separately written for communication equipment in cascade device, to meet The actual circuit functional requirement of user;Address writing method in the present embodiment can the successively coding for all communication equipments Location is matched, is verified, and has been ensured the job stability and job security of address writing method, has been avoided address writing method There is coded address identification error for the communication equipment in cascade device;User's communication equipment to be controlled in the present embodiment and It can access more accurate, safe physical address, working efficiency is higher.
As an alternative embodiment, Fig. 4 shows the specific implementation flow of step S202 provided in this embodiment, Please refer to Fig. 4.Wherein, the step S202 includes: step S2021, step S2022 and step S2023.
Step S2021: the location information of all target communication devices to be controlled of user in the cascade device is read.
Referring to Fig.1, multiple communication equipments have specific arrangement regulation in cascade device, then the communication equipment of each With position coordinates are fixed as, the spy of communication equipment in cascade device can be accurately obtained according to the location information of communication equipment Situation is levied, to identify the single communication equipment in cascade device;The present embodiment is set by obtaining destinations traffic to be controlled in advance The characteristic information of standby characteristic information, the target communication device represents the actual position coordinate of target communication device;Illustratively, The characteristic information includes: the number of destinations traffic communication equipment communication equipment in the serial number and cascade device in cascade device Amount;The present embodiment obtains the characteristic of target communication device according to the actual demand of user, in order to right in cascade device In the accurate lookup and control of target communication device, the address writing method can quickly position all in cascade device Target communication device accelerates address writing speed and simplifies the identification step of target communication device.
Step S2022: it is generated according to the location information of the target communication device associated with the target communication device Special address.
Wherein special address and target communication device have one-to-one relationship, can be accurately according to the special address The target communication device in cascade device is found, to realize write-in functions accurate for the address of the target communication device;Therefore The present embodiment establishes the mapping relations between special address and target communication device, logical for target in cascade device to be conducive to Believe that the identification function of equipment, the target communication device are the communication equipment of user function selection;When institute in special address set After some coded addresses all generate, mesh all in cascade device can be found out by the address information in the special address set Mark communication equipment;Therefore the step S2022 greatly simplifies the identification step of target communication device in the writing process of address, It can be realized address write-in functions accurate for target communication device, the address writing accuracy of target communication device is higher, ensures The control efficiency and control flexibility of cascade device.
Step S2023: judging whether the special address matches with the location information of the target communication device, if described The location information of special address and the target communication device mismatches, then according to the location information weight of the target communication device It is new to generate and the associated special address of the target communication device.
In step S2023, if the special address is matched with the location information of the target communication device, the spy Expropriation of land location is that Complete Information is correct, regenerates special address without the location information according to target communication device.
Therefore the present embodiment can accurately verify special address with the presence or absence of error, if distinguishingly by step S2023 There are excessive errors for the location information of location and target communication device, then illustrate the spy generated in step S2012 and step S2022 Different address can not accurate response target communication device position coordinates, there are biggish error in data for the special address, should Between special address and target communication device and one-to-one relationship is not present, can not also be found pair according to the special address of mistake The target communication device answered then needs to return to step S2021 and step S2022 to generate special address again, to ensure All there is correct corresponding relationship between the special address of each of special address set and target communication device, convenient for for The address of target communication device is accurately written and accurate control, avoids causing target communication device to be known due to special error in address Do not occur deviation, and then address write-in in cascade device is caused deviation occur, cascade device operation irregularity reduces cascade device In each communication equipment safety and stability;To which the present embodiment verifies the special address collection using step S2023 Whether the special address in conjunction there is biggish error, and realizes that special address biggish for error is corrected in time, Corresponding destinations traffic in cascade device can accurately so be found out according to each of special address set special address Equipment, and realize and function is separately written for the address of target communication device;Special address set in the present embodiment has Higher accuracy improves the control of the address writing method accurately and control efficiency, cascade device has higher work Make safety and the scope of application.
As a kind of specific embodiment, in step S2023, the judgement special address and the target are logical Whether the location information of letter equipment matches, and specifically comprises the following steps:
If the special address is identical as the coded address of any one target communication device in the cascade device, institute Special address is stated to match with the location information of the target communication device.
As described above, coded address is that the address of communication equipment identifies, therefore works as special address and the cascade device When the coded address of middle target communication device is identical, then illustrate that special address represents communication equipment of the user in cascade device Selection information, the location information of the special address and target communication device and there are the mistakes of volume there is no error, or both Difference can timely find out corresponding target communication device within the scope of preset, through the special address, with realization pair In the independent address write-in functions of target communication device and independent control function;Therefore the present embodiment is according to special address and target Difference amplitude between the coded address of communication equipment can accurately identify special address with the presence or absence of biggish error, thus complete In pairs in the verification process of special address, user can realize address write-in functions, institute for all target communication devices Address writing method is stated with higher controllability and higher target communication device recognition efficiency.
If the special address is not identical as the coded address of target communication device all in the cascade device, institute The location information for stating special address and the target communication device mismatches.
When special address and the coded address of all target communication devices all have biggish deviation, then illustrate distinguishingly The location information of all target communication devices all differences are there are corresponding relationship in location and cascade device, by the special address also without Method finds the target communication device in cascade device, then special address inherently has biggish error;It is described at this time distinguishingly One-to-one relationship is not present in the location information of location and the target communication device, this address that will lead to target communication device is write Enter process there are mistake, cascade device is in failure operation state;Therefore the present embodiment needs to carry out for the special address of mistake Correction, regenerates special address according to step S2021 and step S2022, sets to avoid destinations traffic in address writing method It is standby address matching mistake occur;Therefore the present embodiment identified by the address of special address and target communication device matched, Verification process, to exclude special address wrong in special address set, when getting special address set, by distinguishingly Location set can rapidly pick out communication equipment all in cascade device, to accelerate single communication equipment in cascade device Address writing rate, has ensured the address safety and reliability of communication equipment in cascade device, target communication device with it is other Communication equipment can combine realize a complete circuit system, meet the actual circuit functional requirement of technical staff, improve The control precision and control flexibility of address writing method.
As an alternative embodiment, Fig. 5 is shown, the present embodiment provides described in step S204 that N-1 is a The physical address of communication equipment is sent to n-th communication equipment, and the specific implementation flow of the step is as follows:
Step S2041: in the coded address of n-th communication equipment and the special address successful match and it is delayed first in advance If after the time, address is sent instruction and is transmitted to the N-1 communication equipment by n-th communication equipment.
Optionally, first preset time is 30 milliseconds~40 milliseconds, exemplary, and first preset time is 30 millis Second, it can ensure that communication equipment all in cascade device can be in normally enabled shape by setting the first preset time State;After the coded address for current communication equipment identifies successfully, current communication equipment can be at the writable shape in address State realizes the address write-in flexibly control for current communication equipment, strengthens communication equipment current in cascade device Address write efficiency;Therefore the present embodiment prevents current communication equipment to forbid in address by setting the first preset time Write state, current communication equipment can not access address data;Communication equipment current in step S2041 has higher in turn Address function stability.
Wherein, it includes that address state controls information that the address, which sends instruction,;If the address of current communication equipment identifies It is exactly matched with the information of both special addresses, then illustrates that current communication equipment is user's target object to be controlled, institute Address writing method is stated to need to carry out address write operation to current communication equipment;When a upper communication equipment receives the address When sending instruction, the address sends the function that status message transmitting is realized in instruction, then a upper communication equipment enters physically The preproduction phase is transmitted in location, and the working condition of a upper communication equipment can be waken up in real time by sending instruction by address;Physically The preproduction phase is transmitted in location, and address information can be transmitted to current communication equipment by a upper communication equipment at any time, to realize address It is separately written function;Illustratively, referring to Fig. 1, communication equipment E and communication equipment F is logical for two adjacent in cascade device Equipment is believed, and communication equipment E is located at before communication equipment F, if the coded address of communication equipment F and special address successful match And be delayed after the first preset time, address is sent instruction and is transmitted to communication equipment E by communication equipment F, and then drives communication equipment E The default stage is transmitted into physical address, address information is transmitted to communication equipment F at any time to wait, has ensured current communication The address writing process control efficiency and control security of equipment;Therefore the present embodiment sends instruction by address and can make in time One communication equipment completes the preparation before address information transmission in time, has ensured current communication equipment address write-in effect Rate and address writing accuracy, the address writing method have higher compatibility and control flexibility, are more advantageous to user and wait for Control the address write-in accuracy and stability of communication equipment.
Step S2042: after the N-1 communication equipment receives the address transmission instruction and second preset time that is delayed, Whether the coded address of detection n-th communication equipment matches with the special address.
The function that communicates of information can be achieved between a upper communication equipment and current communication equipment, optionally, described the Two preset times are 80 milliseconds~120 milliseconds;In the second preset time, current communication equipment is back to normal operation shape State can accurately judge current lead to according to the matching result between the coded address of current communication equipment and special address Believe whether equipment is user's target object to be controlled, to prevent physical address write error;Therefore default by setting second Time, which can be realized, to be verified the front and back of the coded address of current communication equipment twice, matches, and is improved to be controlled for user The accuracy of identification and control precision of communication equipment processed, the address write-in to realize the communication equipment to be controlled for user are accurate Property, the address writing method has higher control accuracy and control stability;Communication equipment is prevented to carry out address Occur biggish error and job insecurity in writing process.
If a upper communication equipment enters the physical address transmission preproduction phase, a upper communication equipment is by waiting second Preset time reaffirms that current communication equipment meets address condition of acceptance right, and the address for improving communication equipment is independent Write-in accuracy and address are separately written efficiency, and non-targeted object is avoided to receive physical address, and address writing process is caused to occur Biggish error;Illustratively, referring to Fig.1, if communication equipment G and communication equipment H is two communications adjacent in cascade device Equipment, and communication equipment G puts in order before communication equipment H, sends when communication equipment G receives communication equipment H Address send instruction, communication equipment G be ready to issue address information;Address, which is received, in communication equipment G sends instruction simultaneously And after the second preset time, whether the coded address for verifying communication equipment H again matches with special address, to judge to communicate Whether equipment H meets physical address access conditions;So that it is guaranteed that communication equipment G can export right-on address information, with Realize that accuracy, the address write-in is written in the address write efficiency for the communication equipment that user is to be controlled in cascade device and address Method has higher address information transmission security, and the signal transmission between communication equipment has higher stability;In turn Prevent the address transmission error an of communication equipment and the problem that address write efficiency is too low.
Step S2043: if the coded address of the n-th communication equipment and the special address successful match, judge Whether the coded address of the N-1 communication equipment matches with any special address in the special address set.
After step S2042, after the coded address of current communication equipment is matched again, is authenticated, if The coded address of current communication equipment is identical with special address, then confirms that current communication equipment is that user is to be controlled Communication equipment, current communication equipment meet physical address access conditions, then can carry out ground to current communication equipment in next step Location is separately written operation, has ensured address write-in safety and the address write efficiency of current communication equipment, current communication Equipment can be kept continuously at stable working condition;On the contrary, if after step S2042, the coded address of current communication equipment With the non-successful match in special address, then illustrate that the address mark identification for current communication equipment is wrong, current communication is set It is standby and be unsatisfactory for physical address access conditions, then it is back to step S203, verifies the coded address of current communication equipment again With the matching result of address special in special address set, to reaffirm whether current communication equipment is the to be controlled of user Target object;Therefore the step S2043 is according to the volume of special address and current communication equipment in special address set Matching result between code address, to reaffirm the location information of current communication equipment, the current communication equipment can Working condition and stable address access state, the communication equipment address greatly improved in cascade device in safety are write Enter security level, practical value is high.
When confirming that current communication equipment meets physical address access conditions, then the address of a communication equipment is detected Safe condition, according to the match cognization between the physical address and special address of a upper communication equipment as a result, can accurately sentence The address safety state of a disconnected upper communication equipment out;Since a upper communication equipment is address information sending device, current Communication equipment is address information reception device, therefore only works as a upper communication equipment itself and meet address safety state, described The address information of upper communication equipment ability output safety, to realize that function is written in the address safety of communication equipment to be controlled Energy;Illustratively, if communication equipment I and communication equipment J is the communication equipment that two front and backs are adjacent in cascade device, wherein communicating Equipment I is located at before communication equipment J, after step S2042, the coded address of communication equipment J (current communication equipment) With special address matching, be proved to be successful, then illustrate that communication equipment J meets physical address Writing condition;If opposite communication equipment J's Coded address and special address matching are unsuccessful, then communication equipment J and non-user target object to be controlled, need again at this time The address information of communication equipment J is verified, return step S203 can with the address writing method ensured in the present embodiment The communication equipment to be controlled for user carries out accurately and fast way address and is written, and prevents from occurring unnecessaryly in cascade device Location write operation;The present embodiment repeatedly match by the coded address of communication equipment, verify can ensure that precision that address is written and Safety.
When communication equipment J is confirmed to be: after meeting physical address Writing condition, then judging communication equipment I and special address Whether any special address in set matches, with confirm communication equipment I whether be capable of safety output address information, for Before communication equipment J carries out address write-in, the fail address information of communication equipment I can be excluded in advance;The present embodiment is according to communication The coded address of equipment I can determine whether the security performance of communication equipment I, can be realized safety before communication equipment I and communication equipment J Address information transfer function;Therefore the present embodiment carries out match cognization by the coded address for a upper communication equipment Afterwards, communication equipment address write-in safety current in the address writing method can be ensured, current communication equipment can be quick Ground accesses physical address to maintain stable working condition, and cascade device has higher working efficiency.
Step S2044: if in the coded address of the N-1 communication equipment and the special address set it is any distinguishingly Location mismatches and is delayed after third preset time, then by the physical address and the N-1 communication equipment of the N-1 communication equipment Storing data be sent to n-th communication equipment.
Optionally, the third preset time is 0.001 millisecond~5 milliseconds, wherein the third preset time is current Communication equipment address write-in phase buffer, when a upper communication equipment and current communication equipment all meet secure address transmission When condition, a upper communication equipment and current communication equipment can be made to establish safety, real-time address by third preset time Information transmits on-off, and after third preset time, a upper communication equipment is then immediately by the physical address of itself and storage Data are sent to current communication equipment, to complete the address write-in functions of current communication equipment;Therefore by setting up third Preset time can ensure that the address transmission security between adjacent communication equipment, current communication equipment can access in real time physically Location, to realize itself physical address write-in functions, physical address and storing data keep safe property during transmission Can, and current communication equipment can identify in real time and handle physical address, accelerate current communication equipment physically Location write efficiency and the physical address write-in safety for having ensured current communication equipment;Prevent physical address adjacent two There is the problem of information loss in transmission between a communication equipment, improves the compatibility performance of address writing method.
It should be noted that the storing data is stored in advance for inside communication equipment, and the storing data includes electricity Road controls information, if current communication equipment accesses the storing data, current communication equipment can be realized according to storing data Corresponding circuit function, to meet the circuit function demand of user;Therefore the mistake of address write-in is carried out in current communication equipment Cheng Zhong, current communication equipment are accessed and are converted while can realizing physical address and storing data, the address writing method With the higher scope of application and signal transfer functions, so that current communication equipment can be achieved to stablize in cascade device, pacify Full circuit function, the address writing method have more preferably address write efficiency and performance, each logical in cascade device Letter equipment can cooperate to realize complete circuit function.
Therefore in the present embodiment, when user's communication equipment to be controlled and communication equipment adjacent thereto all meet ground Location safe information transmission condition, then communication equipment to be controlled can access physical address and realize Self address write-in functions, protect The stability of the data write-in of user's communication equipment to be controlled is hindered;Optionally, when the coded address of a upper communication equipment With the special address successful match, then illustrating a communication equipment, there are address transmission faults, and a upper communication equipment is simultaneously It is unsatisfactory for address information safe transmission condition, then current communication equipment can not access physical address, and communication current at this time is set Standby address writing process interrupts, and is back to step S101, to restart the ground of the communication equipment to be controlled for user Location write-in functions;So that address writing method is for communication equipment to be controlled and adjacent thereto upper one in the present embodiment The coded address of both communication equipments carries out repeated authentication and matching, and communication equipment can be safe and stable in cascade device Independent address write-in functions are realized on ground, have ensured in communication equipment that address is written safety and stability, multiple in cascade device Communication equipment can be chronically at normal state of a control, to realize complicated circuit function;Therefore in the address write-in side In method, the secure interactive function of address information and storing data can be achieved between current communication equipment and a upper communication equipment Can, the communication equipment to be controlled of user can access physical address and realize that Self address is separately written function, the effect of address write-in Rate is high, and address writing method is compatible to be suitable for each different industrial technical field, improves the work effect of cascade device The usage experience of rate and user.
As an alternative embodiment, N >=2, in cascade device, the signal output end of the N-1 communication equipment Mouth is connect with n-th communication equipment;After the physical address of the N-1 communication equipment is sent to n-th communication equipment, by The signal output port of N-1 communication equipment is set as high-impedance state, so that the N-1 communication equipment and n-th communication equipment are logical Letter interrupts.
Referring to Fig.1, two adjacent communication equipments can realize information exchange function by signal output port, if communication is set Standby signal output port is in low resistance state, then two adjacent communication equipments can realize address information transfer function;If opposite The signal output port of communication equipment is in high-impedance state, then two adjacent communication equipments can not carry out address information transmission, letter Number Transmission;And then the ground of communication equipment can be changed by the power transmission state of the signal output port of setting communication equipment Location information transfer capability, it is easy to operate;In the present embodiment, if current communication equipment accesses the physics of a communication equipment After address, then the address information transmission process and end of two adjacent communication equipments, by the letter of a upper communication equipment Number output port is set as high-impedance state, to prevent the address writing process of current communication equipment from being done by other signal components It disturbs;Current communication equipment can only access the address information of a communication equipment, and current communication equipment has higherly The communication equipment to be controlled of location write efficiency and address writing accuracy, user has higher address safety and the operation is stable Property, physical address has higher transmission precision and an efficiency of transmission in cascade device, and a upper communication equipment is by the physics of itself Address is completely transmitted to current communication equipment, and current communication equipment can realize physical address accurately self conversion function Energy;Prevent current communication equipment after the physical address for accessing a upper communication equipment, current communication equipment is after continued access Enter other noises, delay the address write efficiency of current communication equipment, reduces the address write-in of current communication equipment The problem of precision;To the address writing method in the present embodiment greatly ensured cascade device internal communication safety and Address information transmission stability.
As an alternative embodiment, Fig. 6 show it is provided in this embodiment in step S204, it is described according to The physical address of N-1 communication equipment generates the physical address of n-th communication equipment, the specific implementation flow of the step, packet It includes:
Step S601: in the cascade device, obtain address between the physical address of two neighboring communication equipment across Degree.
The structural representation of cascade equipment referring to Fig.1, since multiple communication equipments are all the distributing orders that rule is presented, that Each communication equipment has specific serial number in cascade device;Therefore according to the arrangement of communication equipments multiple in Fig. 1 Sequentially, the physical address of communication equipment also has specific data distribution rule, has ground between two adjacent communication equipments Location span, the address span represent the address information difference between two neighboring communication equipment;Illustratively, shown in fig. 1 In cascade device, the address span between first communication equipment and second communication equipment is a physical address unit, the Address span between two communication equipments and third communication equipment is a physical address unit, and so on, cascade is set Address span between two communication equipments of standby middle arbitrary neighborhood is all a physical address unit;Therefore the present embodiment passes through Physical address different information between two neighboring communication equipment can show that each communication equipment is physically in cascade device The location regularity of distribution can accurately derive the physical address letter of communication equipment to be controlled based on the physical address regularity of distribution Breath, to promote the physical address writing accuracy and write efficiency of communication equipment to be controlled;Therefore the present embodiment by address across Degree embodies the address information situation of change between two neighboring communication equipment, so that communication equipment to be controlled is according to adjacent communication The address information of equipment obtains the physical address of itself, and the address for further simplifying communication equipment in cascade device is separately written Step.
Step S602: physical address and the address span to the N-1 communication equipment carry out operation to generate n-th logical Believe the physical address of equipment.
The physical address of a upper communication equipment and the physical address of current communication equipment can be obtained according to address span The actual variance situation of the two can calculate current in real time according to the physical address of a upper communication equipment and address span The physical address of communication equipment, to ensure that current communication equipment has the physical address of higher precision;Illustratively, by upper one Both the physical address of a communication equipment and address span carry out union to obtain current communication equipment physically Location ensures the physical address computational accuracy of current communication equipment and calculates accuracy;If a upper communication equipment is physically Location are as follows: 10001 (binary systems), address span are as follows: 1 (two-stage system), then the physical address of a upper communication equipment and address across Degree carries out the result after union are as follows: 10010 (binary systems), therefore the physical address of current communication equipment are as follows: and 10010, And then the physical address of target object to be controlled can accurately, be rapidly obtained by the logical operation of address, it simplifies and works as The calculating step of preceding communication equipment physical address;It can realize that the address of itself is write according to the physical address of current communication equipment Enter function, greatly ensures current communication equipment address write-in safety;And then the present embodiment passes through for address span The physical address of current communication equipment can be immediately arrived at the physical address of adjacent communication equipment, the precision of calculating is higher, Being conducive to the address writing method can be realized communication equipment quick, safe address write-in functions, reduce communication The address of equipment is separately written cost, avoids during address is separately written there are physics address calculation error, causes current Communication equipment address write error the problem of.
As an alternative embodiment, the communication equipment be LED (Light-Emitting Diode, shine two Pole pipe) lamp bar chip.
Wherein the LED light bar chip can drive LED light to carry out luminous, and each LED light bar chip is deposited with LED light In one-to-one relationship, and then the luminance and illumination effect of LED light can be changed in each LED light bar chip;When multiple LED light bar chip formed cascade device when, by cascade device can the multiple LED light of real-time control luminance so that multiple Visual effect more preferably illumination effect is presented in LED light;Address writing method is applied to multiple cascade LED light bar cores by the present embodiment The driving process of piece, if in some special cases, needing to carry out address to LED light bar chip specific in cascade device to write Enter operation, to ensure the power drives stability of cascade device;Illustratively, if some LED light bar chip in cascade device It breaks down, then needs that the LED light bar chip of failure is replaced and handled, the LED light after being replaced in cascade device Chip can enter normal, stable working condition after needing to be written physical address, and the physical address is as LED light The address mark of chip, can ensure that user individually adjusts the luminance of each LED light, enhance making for user With experience;Referring to above-described embodiment, the address writing method can be found in cascade device needs to carry out the logical of address write-in Believe equipment, the physical address of adjacent LED light bar chip is transmitted to current LED light bar chip, to generate current LED light The physical address of chip, has ensured that the address of LED light bar chip is separately written precision;Therefore the present embodiment is extraneous without accessing Address information come for LED light bar chip carry out address be separately written function, it is only necessary to pass through the physics inside cascade device Address can be separately written the address of LED light bar chip, ensure the precision that the physical address of LED light bar chip is separately written And efficiency, the address write-in of LED light bar chip have more simplified step and lower address function cost, multiple LED light Chip has higher control efficiency, has greatly ensured job stability and the safety of LED light bar chip, multiple LED Lamp is at safer luminance, the visual experience of user more preferably, thus efficiently solve traditional technology for LED light bar chip cannot achieve independent address write-in functions, the larger problem of electric energy loss in cascade device.
Fig. 7 is the schematic diagram of the address writing station 70 for the cascade device that one embodiment of the invention provides.The cascade is set Standby includes multiple successively cascade communication equipments, as shown in fig. 7, the address writing station 70 of the embodiment includes: processor 701, memory 702 and it is stored in the computer program that can be run in the memory 702 and on the processor 701 703.The processor 701 realizes that the address writing method of above-mentioned each cascade device is real when executing the computer program 703 Apply the step in example, such as step S201 shown in Fig. 2 to step S204.
The address writing station 70 of cascade device in the present embodiment can be according to the actual demand of user for cascade device In one or several communication equipments carry out independent address write-in, to ensure, communication equipment has high physics in cascade device Address write efficiency and writing accuracy reduce cascade device and are carrying out the electric energy loss in the writing process of address, the cascade The address writing station 70 of equipment can accurately identify the single communication equipment in cascade device, and using between communication equipment Address d istribution rule, independent address write-in is carried out to communication equipment to be controlled, simplifies the operating procedure of address write-in, grade Communication equipment in connection equipment can keep the working condition of safety and stability, reduce being written to for communication equipment in cascade device This, communication equipment can access physical address according to the actual demand of technical staff and realize corresponding circuit function, the address Writing station 70 is applicable in different types of cascade electronic product, rapidly to carry out address write-in behaviour to communication equipment Make, has ensured the operability and compatibility of cascade device;Therefore the address writing station 70 in the present embodiment is for improving grade Just there is positive the safety and reliability of communication equipment in connection equipment;Address in traditional technology is efficiently solved to be written Device can only carry out unified address write-in to electronic equipments all in cascade device, cause electric energy loss in the writing process of address Greatly, address writing process is complicated, and the address write efficiency and precision of electronic equipment are too low, it is difficult to generally be applicable in, in cascade device The lower problem of the job security and stability of electronic equipment.
Illustratively, the computer program 703 can be divided into one or more module/units, it is one or Multiple module/the units of person are stored in the memory 702, and are executed by the processor 701, to complete the present invention.Institute Stating one or more module/units can be the series of computation machine program instruction section that can complete specific function, the instruction segment For describing implementation procedure of the computer program 703 in the address writing station 70.
The address writing station 70 can be the meter such as desktop PC, notebook, palm PC and cloud server Calculate equipment.The address writing station 70 may include, but be not limited only to, processor 701, memory 702.Those skilled in the art It is appreciated that Fig. 7 is only the example of address writing station 70, the restriction to address writing station 70 is not constituted, can wrap It includes than illustrating more or fewer components, perhaps combines certain components or different components, such as the address writing station 70 can also include input-output equipment, network access equipment, bus etc..
Alleged processor 701 can be central processing unit (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor Deng.
The memory 702 can be the internal storage unit of the address writing station 70, such as address writing station 70 hard disk or memory.The memory 702 is also possible to the External memory equipment of the address writing station 70, such as described The plug-in type hard disk being equipped on address writing station 70, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..Further, the memory 702 can also both include The internal storage unit of the address writing station 70 also includes External memory equipment.The memory 702 is described for storing Other programs and data needed for computer program and the address writing station 70.The memory 702 can be also used for Temporarily store the data that has exported or will export.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different Functional unit, module are completed, i.e., the internal structure of the address writing station 70 is divided into different functional unit or module, To complete all or part of the functions described above.Each functional unit in embodiment, module can integrate to be handled at one In unit, it is also possible to each unit and physically exists alone, can also be integrated in one unit with two or more units, Above-mentioned integrated unit both can take the form of hardware realization, can also realize in the form of software functional units.In addition, Each functional unit, module specific name be also only for convenience of distinguishing each other, the protection scope being not intended to limit this application. The specific work process of unit in above system, module, can refer to corresponding processes in the foregoing method embodiment, herein no longer It repeats.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed The scope of the present invention.
In embodiment provided by the present invention, it should be understood that disclosed device and method can pass through others Mode is realized.For example, 70 embodiment of address writing station of cascade device described above is only schematical, for example, The division of the module or unit, only a kind of logical function partition, there may be another division manner in actual implementation, example As multiple units or components can be combined or can be integrated into another system, or some features can be ignored or not executed. Another point, shown or discussed mutual coupling or direct-coupling or communication connection can be through some interfaces, dress It sets or the INDIRECT COUPLING or communication connection of unit, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or In use, can store in a computer readable storage medium.Based on this understanding, the present invention realizes above-mentioned implementation All or part of the process in the address writing method of example cascade device can also be instructed relevant hard by computer program Part is completed, and the computer program can be stored in a computer readable storage medium, the computer program is processed When device executes, it can be achieved that the step of the address writing method embodiment of above-mentioned each cascade device.Wherein, the computer journey Sequence includes computer program code, and the computer program code can be source code form, object identification code form, executable text Part or certain intermediate forms etc..The computer-readable medium may include: that can carry appointing for the computer program code What entity or device, recording medium, USB flash disk, mobile hard disk, magnetic disk, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunications letter Number and software distribution medium etc..It should be noted that the content that the computer-readable medium includes can be managed according to the administration of justice Local legislation and the requirement of patent practice carry out increase and decrease appropriate, such as in certain jurisdictions, according to legislation and patent Practice, computer-readable medium does not include electric carrier signal and telecommunication signal.
Various embodiments are described to various devices, circuit, device, system and or method herein.It elaborates very much Specific details is to provide general construction, the function, system of the embodiment that the sum as described in the description is shown in the accompanying drawings The thorough understanding made and used.However it will be understood by those skilled in the art that embodiment can be in not such certain detail It is carried out in the case where section.In other examples, well known operation, component and element is described in detail, in order to avoid make in specification In embodiment indigestion.It will be understood by those skilled in the art that being unrestricted in the embodiment with shown in herein Property example, and therefore it can be appreciated that, can be in specific structure and function details disclosed herein representative and and different The range of definite limitation embodiment.
Throughout the specification to " various embodiments ", " in embodiments ", " embodiment " or " embodiment party The reference of formula " etc., which is meant, is included at least one embodiment about a particular feature, structure, or characteristic described in embodiment In.Therefore, phrase " in various embodiments ", " in some embodiments ", " in one embodiment " or " implementing In mode " etc. the appearance in appropriate place throughout the specification be not necessarily all referring to same embodiment.In addition, specific spy Sign, structure or characteristic can combine in any suitable manner in one or more embodiments.Implement accordingly, with respect to one The a particular feature, structure, or characteristic that mode shows or describes can entirely or partly with one or more of the other embodiment spy Sign, structure or characteristic are combined, without assuming that such combination is not illogical or non-functional limitation.Any side To with reference to (for example, add, subtract, top, lower part, upwards, downwards, the left side, the right, to the left, to the right, top, bottom ... On ... under, it is vertical, horizontal, clockwise and anticlockwise) purpose to be for identification to help reader to understand present disclosure, And limitation is not generated, especially with regard to the position of embodiment, orientation or use.
Although describing certain embodiments above with some the level of detail, those of skill in the art can be to institute Disclosed embodiment makes many changes without departing from the scope of the present disclosure.Connection is with reference to (for example, attachment, coupling, connection Deng) should be widely interpreted, and may include the intermediate member between the connection of element and relative motion between elements.Cause This, connection reference does not necessarily imply that two elements are directly connected to/couple and are in fixed relationship each other." such as " entire Use in specification should be widely interpreted and for providing the non-limitative example of embodiment of the present disclosure, and the disclosure It is not limited to such example.Being intended that all affairs for including in the foregoing description or be shown in the accompanying drawings should be interpreted only It is illustrative rather than restrictive.The variation in details or structure can be made without departing from the disclosure.
The above is merely preferred embodiments of the present invention, be not intended to limit the invention, it is all in spirit of the invention and Made any modifications, equivalent replacements, and improvements etc., should all be included in the protection scope of the present invention within principle.

Claims (10)

1. a kind of address writing method of cascade device, which is characterized in that the cascade device includes M successively cascade communications Equipment, the address writing method include:
Coded address string is transmitted to the cascade device, so that each communication equipment has the coded address of itself;
Special address set is obtained, the special address set includes at least one special address;
The special address set is sent to the cascade device, and judge the special address in the special address set with Whether the coded address of communication equipment matches;
If the coded address of n-th communication equipment and the special address successful match;If N=1 writes initial physical addresses Enter the 1st communication equipment;If N > 1, the physical address of the N-1 communication equipment is sent to n-th communication equipment, and according to The physical address of the N-1 communication equipment generates the physical address of n-th communication equipment, physically by n-th communication equipment N-th communication equipment is written in location, to complete the address setting of the cascade device;
Wherein, the N is positive integer more than or equal to 1, the M be for the positive integer more than or equal to 1, and N≤ M。
2. address writing method according to claim 1, which is characterized in that in the judgement special address set Whether special address matches with the coded address of communication equipment, specifically:
If the coded address of n-th communication equipment is identical as any special address in the special address set, n-th is logical The coded address of letter equipment and the special address successful match;
If the coded address of n-th communication equipment and any special address in the special address set be not identical, if N < M, The special address set is then transmitted to the N+1 communication equipment, to verify the special address in the special address set Whether matched with the coded address of the N+1 communication equipment.
3. address writing method according to claim 1, which is characterized in that described to obtain the special address set, tool Body are as follows:
Read the location information of all target communication devices to be controlled of user in the cascade device;
It is generated and the associated special address of the target communication device according to the location information of the target communication device;
Judge whether the special address matches with the location information of the target communication device, if the special address with it is described The location information of target communication device mismatches, then is regenerated and the mesh according to the location information of the target communication device Mark the associated special address of communication equipment.
4. address writing method according to claim 3, which is characterized in that the judgement special address and the mesh Whether the location information of mark communication equipment matches, specifically:
If the special address is identical as the coded address of any one target communication device in the cascade device, the spy Different address is matched with the location information of the target communication device;
If the special address is not identical as the coded address of target communication device all in the cascade device, the spy The location information of different address and the target communication device mismatches.
5. address writing method according to claim 1, which is characterized in that the physics by the N-1 communication equipment Address is sent to n-th communication equipment, specifically:
After the coded address of n-th communication equipment and the special address successful match and first preset time that is delayed, n-th Address is sent instruction and is transmitted to the N-1 communication equipment by communication equipment;
After the N-1 communication equipment receives the address transmission instruction and second preset time that is delayed, detection n-th communication is set Whether standby coded address matches with the special address;
If the coded address of the n-th communication equipment and the special address successful match, judge the N-1 communication equipment Coded address whether matched with any special address in the special address set;
If the coded address of the N-1 communication equipment mismatches and prolongs with any special address in the special address set When third preset time after, then the storing data of the physical address of the N-1 communication equipment and the N-1 communication equipment is sent To n-th communication equipment.
6. address writing method according to claim 1, which is characterized in that N >=2, in cascade device, N-1 logical The signal output port of letter equipment is connect with n-th communication equipment;
After the physical address of the N-1 communication equipment is sent to n-th communication equipment, by the letter of the N-1 communication equipment Number output port is set as high-impedance state, so that the N-1 communication equipment and n-th communication apparatus communication interrupt.
7. address writing method according to claim 1, which is characterized in that the object according to the N-1 communication equipment The physical address that address generates n-th communication equipment is managed, specifically:
In the cascade device, the address span between the physical address of two neighboring communication equipment is obtained;
Physical address and the address span to the N-1 communication equipment carry out the physics that operation generates n-th communication equipment Address.
8. address writing method according to claim 1, which is characterized in that the communication equipment is LED light bar chip.
9. a kind of address writing station of cascade device, including memory, processor and storage are in the memory and can The computer program run on the processor, which is characterized in that the cascade device includes that a successively cascade communication of M is set It is standby, realize that the address of cascade device as described in any one of claim 1 to 8 is write when the processor executes the computer program The step of entering method;
Wherein, the M is the positive integer more than or equal to 1.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists In the address write-in of realization cascade device as described in any one of claim 1 to 8 when the computer program is executed by processor The step of method.
CN201910237427.6A 2019-03-27 2019-03-27 Address writing method, address writing device and computer readable storage medium Active CN110032537B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910237427.6A CN110032537B (en) 2019-03-27 2019-03-27 Address writing method, address writing device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910237427.6A CN110032537B (en) 2019-03-27 2019-03-27 Address writing method, address writing device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110032537A true CN110032537A (en) 2019-07-19
CN110032537B CN110032537B (en) 2021-04-09

Family

ID=67236776

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910237427.6A Active CN110032537B (en) 2019-03-27 2019-03-27 Address writing method, address writing device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110032537B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114913808A (en) * 2021-01-29 2022-08-16 东莞市欧思科光电科技有限公司 Driving chip, LED device and address writing method thereof

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1996021181A1 (en) * 1994-12-29 1996-07-11 Siemens Energy & Automation, Inc. Expansion module address method and apparatus for a programmable logic controller
WO1998012651A1 (en) * 1996-09-23 1998-03-26 Motorola Inc. Cascadable content addressable memory and system
CN1108574C (en) * 1995-12-25 2003-05-14 松下电工株式会社 Peripheral unit selection system
CN1777878A (en) * 2003-03-24 2006-05-24 索尼计算机娱乐公司 Crossbar switch, method and program for controlling operation thereof
CN104464617A (en) * 2014-10-30 2015-03-25 深圳市明微电子股份有限公司 Parallel display system and display devices thereof
CN109257841A (en) * 2018-07-26 2019-01-22 深圳市明微电子股份有限公司 The writing system and wiring method of coded address

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1996021181A1 (en) * 1994-12-29 1996-07-11 Siemens Energy & Automation, Inc. Expansion module address method and apparatus for a programmable logic controller
CN1108574C (en) * 1995-12-25 2003-05-14 松下电工株式会社 Peripheral unit selection system
WO1998012651A1 (en) * 1996-09-23 1998-03-26 Motorola Inc. Cascadable content addressable memory and system
CN1777878A (en) * 2003-03-24 2006-05-24 索尼计算机娱乐公司 Crossbar switch, method and program for controlling operation thereof
CN104464617A (en) * 2014-10-30 2015-03-25 深圳市明微电子股份有限公司 Parallel display system and display devices thereof
CN109257841A (en) * 2018-07-26 2019-01-22 深圳市明微电子股份有限公司 The writing system and wiring method of coded address

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114913808A (en) * 2021-01-29 2022-08-16 东莞市欧思科光电科技有限公司 Driving chip, LED device and address writing method thereof
CN114913808B (en) * 2021-01-29 2024-01-23 东莞市欧思科光电科技有限公司 Driving chip, LED device and address writing method thereof

Also Published As

Publication number Publication date
CN110032537B (en) 2021-04-09

Similar Documents

Publication Publication Date Title
US11875171B2 (en) Blockchain network transaction processing method, apparatus, device, and storage medium
CN101795270B (en) Server control method based on serial port
CN110488617A (en) Intelligent home control system, method and terminal device
CN103582874B (en) For the unified self-adaptation RAS of commingled system
CN109995805A (en) Intelligent robot management method, terminal device and medium
CN109447276B (en) Machine learning system, equipment and application method
CN102736565A (en) Communication method of automatic control equipment based on upper and lower computer structures
CN107078806B (en) The programmed method and operating method and electric interfaces equipment of optical transceiver
CN111935318A (en) Cross-link data verification method, device, equipment and medium
CN110930011B (en) Industrial control system and method, electronic equipment and storage medium
CN107316184A (en) Based on the interactive office assistant of distributed cloud and operating method
CN109388604A (en) A kind of hot plug control method based on PCIe, device and storage medium
CN106534067B (en) A kind of intelligent control method and system based on Internet of Things
CN109697035A (en) Wiring method, write device and the storage medium of the address date of cascade device
CN110032537A (en) Address writing method, address writing station and computer readable storage medium
CN108446371A (en) Data return guiding method, device, computer equipment and storage medium
CN108989157A (en) Method, apparatus for smart machine control
CN104104594B (en) VSU protocol massages are sent and method of reseptance, equipment and system
CN106790569A (en) A kind of implementation method of the terminal device plug and play based on platform of internet of things
WO2019232966A1 (en) Operation and maintenance method, device, terminal apparatus, and medium
CN115033605A (en) Data query method and device, electronic equipment and storage medium
CN105930296B (en) Realize the system and method for Profibus-DP to CANopen conversion
CN108512688A (en) Network node configuration method and terminal
CN107104866A (en) A kind of intelligent data bus protocol and system
CN109005034B (en) Multi-tenant quantum key supply method and device

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
GR01 Patent grant
GR01 Patent grant