CN109710553A - A kind of method of 485 bus ID decimal codeds in intelligent illuminating system - Google Patents

A kind of method of 485 bus ID decimal codeds in intelligent illuminating system Download PDF

Info

Publication number
CN109710553A
CN109710553A CN201811299475.XA CN201811299475A CN109710553A CN 109710553 A CN109710553 A CN 109710553A CN 201811299475 A CN201811299475 A CN 201811299475A CN 109710553 A CN109710553 A CN 109710553A
Authority
CN
China
Prior art keywords
bus
toggle switch
decimal
numerical
numerical value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811299475.XA
Other languages
Chinese (zh)
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 Wantong Communication Technology Co Ltd
Original Assignee
Shenzhen Wantong Communication Technology 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 Wantong Communication Technology Co Ltd filed Critical Shenzhen Wantong Communication Technology Co Ltd
Priority to CN201811299475.XA priority Critical patent/CN109710553A/en
Publication of CN109710553A publication Critical patent/CN109710553A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The invention discloses a kind of methods of 485 bus ID decimal codeds in intelligent illuminating system, include the following steps: step 1, distribute 4 toggle switch for each numerical digit of 485 bus decimal system ID numbers, and establish toggle switch position and represent numerical tabular;Step 2, the value for establishing each numerical digit of decimal system ID number represents the relational expression of numerical value with corresponding 4 toggle switch positions 1,2,3,4;Step 3, each toggle switch is electrically connected to 485 bus ID detection single-chip microcontroller, and carries out location layout from left to right by the sequence in high-order area to low level area and completes the design of 485 bus ID number reading programs.The present invention can allow the work of 485 bus ID encoding settings to become to be simple and efficient, to substantially increase the efficiency of rigging up and debugging, and thicken the profit of device fabrication manufacturer.

Description

A kind of method of 485 bus ID decimal codeds in intelligent illuminating system
Technical field
The present invention relates to intelligent lighting fields, and in particular to one kind is for the 485 bus ID decimal systems in intelligent illuminating system The method of encoding setting.
Background technique
To meet more power saving, energy conservation, modern intelligent lighting demand easy to use, more and more office buildings, industry park, Square, hospital, school, hotel use 485 bus type intelligent lighting system solutions.Such scheme requires engineering peace Unique ID code setting is carried out from equipment to the numerous of 485 buses of access when dress, existing 485 bus ID encodes implementation method master There is following two:Using toggle switch binary coding mode;Using rotary dip switch decimal coded mode.
For the above method, carry out ID encoding setting in engineering and when failure is verified be inconvenient, reason be two into The ID coding of sample preparation formula is not very intuitive for people and is difficult to fast and accurately identify ID number, and rigging up and debugging is caused to work Inefficiency.
For the above method, equipment manufacturing costs obviously increase, and manufacturer's profit is substantially damaged, and reason is rotatably to dial Code switch price is more than ten times of common toggle switch price.
Therefore, a kind of low cost and both intuitive and simple easy-to-use 485 bus ID encoding setting method are found, this is become Field technical staff's one of the technical problems that are urgent to solve.
Summary of the invention
The technical problem to be solved in the invention is: proposing a kind of for the 485 bus ID decimal systems in intelligent illuminating system The method of encoding setting solves the technical problem that the work of 485 bus ID encoding settings is complicated, cost of implementation is high in the prior art.
The present invention solve above-mentioned technical problem the technical solution adopted is that:
Step 1,4 toggle switch are distributed for each numerical digit of 485 bus decimal system ID numbers, and establishes toggle switch position generation The position 1,2,3,4 of table numerical tabular, i.e. toggle switch successively represents numerical value 1,2,3,4 at the position ON, represents number in OFF position Value 0, every totally 2 kinds of combination;
Step 2, the value for establishing each numerical digit of decimal system ID number represents the relational expression of numerical value with corresponding 4 toggle switch positions 1,2,3,4, Specifically: the value of each numerical digit of ID number be equal to corresponding toggle switch position 1,2,3,4 represent the summation of numerical value again divided by 10 remainder;
Step 3, each toggle switch is electrically connected to 485 bus ID detection single-chip microcontroller, and by high-order area to the suitable of low level area Sequence carries out location layout from left to right and completes the design of 485 bus ID number reading programs, to realize based on 4 toggle switch Function is arranged in 485 bus ID decimal codeds.
It so far, can be according to the position of toggle switch when we carry out 485 bus ID encoding setting in installation The guide of character 1,2,3,4 is identified, and determines the switch for stirring those to ON by addition mental arithmetic within simple ten It sets, to fast and accurately complete the encoding setting task of wanted ID number.
The invention has the benefit that the present invention, which innovatively proposes one kind, realizes 485 bus ID based on 4 toggle switch The method of decimal coded setting, so that the work of 485 bus ID encoding settings becomes to be simple and efficient, to substantially increase equipment The efficiency of installation and debugging, and thickened the profit of device fabrication manufacturer.
Detailed description of the invention
Fig. 1 is the method flow schematic diagram of 485 bus ID decimal codeds
Fig. 2 is a kind of embodiment of the invention with reference to figure
Specific embodiment
With reference to the accompanying drawings of the specification to 485 bus ID decimal coded method methods in intelligent illuminating system of the present invention into The detailed explanation and illustration of row.
As shown in attached drawing 1,2, the invention particularly discloses 485 bus ID decimal codeds in a kind of intelligent illuminating system to set The method set, this method are applicable to using the application such as the intelligent illuminating system of 485 bus group-network constructions or industrial control system Occasion.This method specifically comprises the following steps.
Step 1,4 toggle switch are distributed for each numerical digit of 485 bus decimal system ID numbers, and establishes toggle switch Position represents numerical tabular, as shown in figure 1 shown in the table of step 1.Implementation example figure 2 is 2 485 bus decimal system ID numbers, supports 0 ~ 99 Decimal system ID coding range, wherein toggle switch SW1 represents ID_ ten, and toggle switch SW2 represents ID_ position;
Step 2, the value for establishing each numerical digit of decimal system ID number represents the relational expression of numerical value with corresponding 4 toggle switch positions 1,2,3,4, It is specific as follows:
ID_ position=SW2 toggle switch fellow deputies' numerical value summation again divided by 10 remainder;
The summation of ID_ ten=SW1 toggle switch fellow deputies' numerical value again divided by 10 remainder;
Step 3, each toggle switch is electrically connected to 485 bus ID detection single-chip microcontroller, and by high-order area to the suitable of low level area Sequence carries out location layout from left to right and completes the design of 485 bus ID number reading programs.Such as Fig. 2, toggle switch SW1, SW2 are divided It is not electrically connected to the built-in pull-up function input pin PA1-PA8 of ID detection single-chip microcontroller U1, wherein single-chip microcontroller U1 is selected STM32F103C8T6, and location layout is carried out from left to right by the sequence of SW1-SW2, it is finally complete by the rule requirement of steps 1 and 2 It is designed at 485 bus ID number reading programs.
It so far, can be according to toggle switch SW1, SW2 when carrying out 485 bus ID encoding setting in installation The guide of bit identification character 1,2,3,4, and the switch for stirring those is determined by addition mental arithmetic within simple ten respectively To the position ON, to fast and accurately complete the encoding setting of wanted ID number, operated than binary mode encoding setting more intuitive With it is easy to use.For example the encoding setting that ID number is 45 operates are as follows: will represent position 4(or position 1 and the position of ten toggle switch SW1 3) position 1 and position 4(or position 2 and position 3 of a position toggle switch SW2 are represented and) position ON is pushed respectively.

Claims (5)

1. a kind of method of 485 bus ID decimal codeds in intelligent illuminating system, it is characterised in that: this method includes following step Suddenly,
Step 1,4 toggle switch are distributed for each numerical digit of 485 bus decimal system ID numbers, and establishes toggle switch position generation The position 1,2,3,4 of table numerical tabular, i.e. toggle switch successively represents numerical value 1,2,3,4 at the position ON, represents number in OFF position Value 0, every totally 2 kinds of combination;
Step 2, the value for establishing each numerical digit of decimal system ID number represents the relational expression of numerical value with corresponding toggle switch position 1,2,3,4, tool Body are as follows: the value of each numerical digit of ID number be equal to corresponding toggle switch position 1,2,3,4 represent the summation of numerical value again divided by 10 remainder;
Step 3, each toggle switch is electrically connected to 485 bus ID detection single-chip microcontroller, and by high-order area to the suitable of low level area Sequence carries out location layout from left to right and completes the design of 485 bus ID number reading programs.
2. the method for 485 bus ID decimal codeds in intelligent illuminating system according to claim 1, it is characterised in that:
4 toggle switch described in step 1 are a kind of common toggle switch with bit identification character 1,2,3,4.
3. the method for 485 bus ID decimal codeds in intelligent illuminating system according to claim 1, it is characterised in that:
The position 1,2,3,4 of toggle switch described in step 1 successively represents numerical value 1,2,3,4 at the position ON, in the OFF position epoch Table numerical value 0, the position 1,2,3,4 that toggle switch is equal on the description logic successively represent numerical value 1,2,3,4 in OFF position, Numerical value 0 is represented at the position ON.
4. the method for 485 bus ID decimal codeds in intelligent illuminating system according to claim 1, it is characterised in that:
The value of each numerical digit of ID number described in step 2 is equal to corresponding toggle switch position 1,2,3,4 and represents the summation of numerical value again divided by 10 Remainder, which can also be realized by the way of table lookup.
5. the method for 485 bus ID decimal codeds, feature exist in intelligent illuminating system described according to claim 1 ~ 4 In: carry out ID number encoding setting operation when, used number 1,2,3,4 individually or any combination be added available 1 ~ 9 Ah The rule of Arabic numbers simultaneously determines the position of the switch number to be stirred in conjunction with mental arithmetic.
CN201811299475.XA 2018-11-02 2018-11-02 A kind of method of 485 bus ID decimal codeds in intelligent illuminating system Pending CN109710553A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811299475.XA CN109710553A (en) 2018-11-02 2018-11-02 A kind of method of 485 bus ID decimal codeds in intelligent illuminating system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811299475.XA CN109710553A (en) 2018-11-02 2018-11-02 A kind of method of 485 bus ID decimal codeds in intelligent illuminating system

Publications (1)

Publication Number Publication Date
CN109710553A true CN109710553A (en) 2019-05-03

Family

ID=66254741

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811299475.XA Pending CN109710553A (en) 2018-11-02 2018-11-02 A kind of method of 485 bus ID decimal codeds in intelligent illuminating system

Country Status (1)

Country Link
CN (1) CN109710553A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110456254A (en) * 2019-08-20 2019-11-15 南京优倍自动化系统有限公司 A kind of automatic checkout equipment and method for pcb board

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101377667A (en) * 2007-08-28 2009-03-04 比亚迪股份有限公司 Method and device for adjusting parameter of programmable device
CN101625670A (en) * 2009-07-30 2010-01-13 深圳市中联创新自控系统有限公司 Serial bus device, serial bus transmission system and method
CN102185933A (en) * 2011-04-02 2011-09-14 浪潮电子信息产业股份有限公司 Method for setting 256 addresses in 8-position 4-line way
CN203596840U (en) * 2013-11-26 2014-05-14 天津同创视讯科技有限公司 Decimal system coding address conversion device
CN104794926A (en) * 2015-04-03 2015-07-22 广东艾科技术股份有限公司 Quick addressing system with parking space detectors
CN108319564A (en) * 2018-01-25 2018-07-24 北京航天发射技术研究所 A kind of method of identification power source communications bus ID in power supply-distribution system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101377667A (en) * 2007-08-28 2009-03-04 比亚迪股份有限公司 Method and device for adjusting parameter of programmable device
CN101625670A (en) * 2009-07-30 2010-01-13 深圳市中联创新自控系统有限公司 Serial bus device, serial bus transmission system and method
CN102185933A (en) * 2011-04-02 2011-09-14 浪潮电子信息产业股份有限公司 Method for setting 256 addresses in 8-position 4-line way
CN203596840U (en) * 2013-11-26 2014-05-14 天津同创视讯科技有限公司 Decimal system coding address conversion device
CN104794926A (en) * 2015-04-03 2015-07-22 广东艾科技术股份有限公司 Quick addressing system with parking space detectors
CN108319564A (en) * 2018-01-25 2018-07-24 北京航天发射技术研究所 A kind of method of identification power source communications bus ID in power supply-distribution system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110456254A (en) * 2019-08-20 2019-11-15 南京优倍自动化系统有限公司 A kind of automatic checkout equipment and method for pcb board

Similar Documents

Publication Publication Date Title
CN105095132B (en) The electronic installation and its operating method for the USB master-slave equipment pattern that can automatically switch
CN201035568Y (en) USB equipment logical numbering and physical numbering mapping device
CN109710553A (en) A kind of method of 485 bus ID decimal codeds in intelligent illuminating system
CN110109393A (en) A kind of digital output card
CN204482107U (en) Intelligent lamp control duplex wireless control system
CN104767081A (en) Configurable wireless smart socket
CN205121261U (en) Many first automated control switch matrix
CN104237619A (en) Intelligent avometer
CN209488859U (en) Signal adapter and lighting system
CN207799397U (en) A kind of GPRS types RTU with suspend mode revival function
CN203084721U (en) Multi-interface extension management system of vehicle monitoring terminal
CN210380935U (en) Communication address self-setting system of digital weighing sensor
CN203596840U (en) Decimal system coding address conversion device
CN204256429U (en) integrated signal conditioning platform
CN201699738U (en) Communication controller
CN103092122A (en) Device with status indicating unit and method for switching active status of status indicating unit
CN101707395A (en) Transformation and distribution automation system of GPRS radio communication
CN204362100U (en) A kind of electric power protocol conversion device based on industrial computer
CN219738034U (en) Distributed edge controller
Borlea et al. Intelligent lighting system platform architecture and linear process models
CN202512413U (en) AS-i high-precision analog quantity output module
CN214504178U (en) 16-channel sleeve selector with expansion function
CN217335967U (en) Illumination control circuit and lamp
CN210573362U (en) Intelligent numerical control controller for servo hoist
CN203882881U (en) Automatic energy saving single-coil magnetic latching relay of low-voltage line

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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20190503