CN111585820A - Numbering method for multiple slave machines and weighing goods shelf - Google Patents

Numbering method for multiple slave machines and weighing goods shelf Download PDF

Info

Publication number
CN111585820A
CN111585820A CN202010401303.XA CN202010401303A CN111585820A CN 111585820 A CN111585820 A CN 111585820A CN 202010401303 A CN202010401303 A CN 202010401303A CN 111585820 A CN111585820 A CN 111585820A
Authority
CN
China
Prior art keywords
slave
master
setting
numbering
initial
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
CN202010401303.XA
Other languages
Chinese (zh)
Other versions
CN111585820B (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.)
Beirong Iot Changzhou Co ltd
Original Assignee
Beirong Iot Changzhou 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 Beirong Iot Changzhou Co ltd filed Critical Beirong Iot Changzhou Co ltd
Priority to CN202010401303.XA priority Critical patent/CN111585820B/en
Publication of CN111585820A publication Critical patent/CN111585820A/en
Application granted granted Critical
Publication of CN111585820B publication Critical patent/CN111585820B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • AHUMAN NECESSITIES
    • A47FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
    • A47BTABLES; DESKS; OFFICE FURNITURE; CABINETS; DRAWERS; GENERAL DETAILS OF FURNITURE
    • A47B81/00Cabinets or racks specially adapted for other particular purposes, e.g. for storing guns or skis
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01GWEIGHING
    • G01G19/00Weighing apparatus or methods adapted for special purposes not provided for in the preceding groups
    • G01G19/52Weighing apparatus combined with other objects, e.g. furniture
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • H04L41/0886Fully automatic configuration

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Automation & Control Theory (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Factory Administration (AREA)
  • Warehouses Or Storage Devices (AREA)

Abstract

The invention discloses a numbering method and a weighing shelf for multiple slave machines, wherein the method comprises the following steps: s1: after the slave accesses the master network, the master sends an instruction comprising an initial number and a setting command with a setting number to the slave; s2: the slave machine with the initial number responds, sets the number as the setting number and feeds back a response instruction to the master machine; s3: after receiving the response command, the master executes step S1 and step S2 on the next slave; s4: repeating the steps S1 to S3 until all the slaves access the host network and the corresponding setting numbers are distributed; and the setting number sent by the host each time is sequentially increased or decreased. The invention can automatically number the slave machines which are accessed and set as the initial numbers, and the numbering is not repeated, the error is avoided, the use is very convenient, and the extra workload is not required to be increased.

Description

Numbering method for multiple slave machines and weighing goods shelf
Technical Field
The invention relates to a numbering method for multiple slave machines and a weighing shelf.
Background
At present, in the weighing shelf in the prior art, the number of each material box is almost set in an intelligent terminal through manual input, so that the weighing shelf is very inconvenient and wrong in accommodating setting.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides a multi-slave numbering method which can automatically number the slave which is accessed and set as an initial number, has no repeated numbering and no error, is very convenient to use and does not need to increase extra workload.
In order to solve the technical problems, the technical scheme of the invention is as follows: a multi-slave numbering method comprises the following steps:
s1: after the slave accesses the master network, the master sends an instruction comprising an initial number and a setting command with a setting number to the slave;
s2: the slave machine with the initial number responds, sets the number as the setting number and feeds back a response instruction to the master machine;
s3: after receiving the response command, the master executes step S1 and step S2 on the next slave;
s4: repeating the steps S1 to S3 until all the slaves access the host network and the corresponding setting numbers are distributed;
and the setting number sent by the host each time is sequentially increased or decreased.
Further, the setting number sent by the host each time is sequentially increased or decreased by a natural number.
Further, when the master sends an instruction including a slave number and a number clear content to the slave, the slave of the corresponding slave number clears and sets its own slave number as an initial number.
Further, the master is also suitable for sending an instruction comprising a slave number and slave execution content to the slave;
the slave of the corresponding slave number is suitable for responding to the execution content and feeding back an instruction comprising the slave number and the slave response content to the master.
Further, the master is also suitable for sending an instruction comprising a broadcast number and slave execution content to the slave;
the slave is adapted to respond to the execution content and not respond to the master.
Further, when the master sends an instruction including a broadcast number and a number clear content to the slave, the slave clears and sets its own slave number as an initial number.
Further, the set number after the slave is set is not the initial number and is not the broadcast number.
Further, the initial number is set to 0;
the setting number allows the range to be increased from 1 to n ≦ 2x-2; wherein x is a multiple of 8;
the broadcast number is set to 2x-1。
The invention also provides a weighing shelf, which comprises:
a magazine;
the weighing module is arranged corresponding to the material box;
the intelligent terminal is connected with the weighing module;
it applies to the multiple slave numbering method; wherein the content of the first and second substances,
the slave machine is a weighing module;
the host is an intelligent terminal.
After the technical scheme is adopted, after the slave machine is connected to the host machine network, the slave machine with the initial number can automatically distribute the number through the host machine without manually inputting the number setting on the host machine, so that the number process is greatly simplified; specifically to weighing on the goods shelves, after weighing module inserts the host computer network, intelligent terminal can automatic allocation serial number for the weighing module who has initial serial number, has simplified the serial number flow.
Detailed Description
In order that the present invention may be more clearly understood, the following detailed description of the present invention is given with reference to specific examples.
Example one
This embodiment introduces a method for numbering multiple slaves during setting slave numbers, the method comprising the steps of:
s1: after the slave accesses the master network, the master sends an instruction comprising an initial number and a setting command with a setting number to the slave;
s2: the slave machine with the initial number responds, sets the number as the setting number and feeds back a response instruction to the master machine;
s3: after receiving the response command, the master executes step S1 and step S2 on the next slave;
s4: repeating the steps S1 to S3 until all the slaves access the host network and the corresponding setting numbers are distributed;
and the setting number sent by the host each time is sequentially increased or decreased.
Specifically, the setting number sent by the host each time is sequentially incremented or decremented by one natural number.
Specifically, when the master sends an instruction including a slave number and number clear content to the slave, the slave of the corresponding slave number clears and sets its own slave number as an initial number.
Specifically, the master is further adapted to send an instruction including a slave number and slave execution content to the slave;
the slave of the corresponding slave number is suitable for responding to the execution content and feeding back an instruction comprising the slave number and the slave response content to the master.
Specifically, the master is further adapted to send an instruction including a broadcast number and slave execution content to the slave;
the slave is adapted to respond to the execution content and not respond to the master.
In the process of clearing the slave machine number, the slave machine execution content may be number clearing content, and the slave machine clears the slave machine number of the slave machine and sets the slave machine number as an initial number. At this point, all slaves may be removed from the master network.
In this embodiment, the factory setting of the slave number is the initial number. If it is the first installation, it may not be necessary to clear the slave's number.
Specifically, the set number after the slave is set is not the initial number and is not the broadcast number.
Further, the initial number is set to 0;
the setting number allows the range to be increased from 1 to n ≦ 2x-2; wherein x is a multiple of 8;
the broadcast number is set to 2x-1。
Example two
A weighing rack comprising:
a magazine;
the weighing module is arranged corresponding to the material box;
the intelligent terminal is connected with the weighing module;
it applies to the multiple slave numbering method in embodiment one; wherein the content of the first and second substances,
the slave machine is a weighing module;
the host is an intelligent terminal.
In this embodiment, the magazine is provided with a plurality ofly, and every magazine corresponds a weighing module, places article in the magazine.
Specifically, a plurality of weighing modules and the intelligent terminal are connected to form the whole host computer network.
Specifically, in this embodiment, the installer only needs to access the weighing module to the host network, and after seeing that the access display on the intelligent terminal is completed, the installer accesses the next weighing module, and after all accesses are completed. After the access is confirmed to be completed on the intelligent terminal, the intelligent terminal can exit the numbering mode, and the numbering process is greatly simplified.
The above embodiments are described in further detail to solve the technical problems, technical solutions and advantages of the present invention, and it should be understood that the above embodiments are only examples of the present invention and are not intended to limit the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (9)

1. A multi-slave numbering method is characterized in that the method comprises the following steps:
s1: after the slave accesses the master network, the master sends an instruction comprising an initial number and a setting command with a setting number to the slave;
s2: the slave machine with the initial number responds, sets the number as the setting number and feeds back a response instruction to the master machine;
s3: after receiving the response command, the master executes step S1 and step S2 on the next slave;
s4: repeating the steps S1 to S3 until all the slaves access the host network and the corresponding setting numbers are distributed;
and the setting number sent by the host each time is sequentially increased or decreased.
2. The method of multiple slave numbering according to claim 1,
the setting number sent by the host computer each time is sequentially increased or decreased by a natural number.
3. The method of multiple slave numbering according to claim 1,
when the master sends an instruction including a slave number and number clear content to the slave, the slave of the corresponding slave number clears the slave number of itself and sets the slave number as an initial number.
4. The method of multiple slave numbering according to claim 1,
the master is further adapted to send an instruction including a slave number and slave execution content to the slave;
the slave of the corresponding slave number is suitable for responding to the execution content and feeding back an instruction comprising the slave number and the slave response content to the master.
5. The method of multiple slave numbering according to claim 1,
the master is further adapted to send an instruction including a broadcast number and slave execution content to the slave;
the slave is adapted to respond to the execution content and not respond to the master.
6. The multi-slave numbering method according to claim 5,
when the master sends an instruction including a broadcast number and number clear content to the slave, the slave clears and sets the slave number of the slave to an initial number.
7. The method of multiple slave numbering according to claim 5 or 6,
the set number after the slave is set is not the initial number and is not the broadcast number.
8. The multi-slave numbering method according to claim 5,
the initial number is set to 0;
the setting number allows the range to be increased from 1 to n ≦ 2x-2; wherein x is a multiple of 8;
the broadcast number is set to 2x-1。
9. A weighing rack, comprising:
a magazine;
the weighing module is arranged corresponding to the material box;
the intelligent terminal is connected with the weighing module;
it applies to the multiple slave numbering method according to any of claims 1 to 8; wherein the content of the first and second substances,
the slave machine is a weighing module;
the host is an intelligent terminal.
CN202010401303.XA 2020-05-13 2020-05-13 Numbering method for multiple slave machines and weighing shelf Active CN111585820B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010401303.XA CN111585820B (en) 2020-05-13 2020-05-13 Numbering method for multiple slave machines and weighing shelf

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010401303.XA CN111585820B (en) 2020-05-13 2020-05-13 Numbering method for multiple slave machines and weighing shelf

Publications (2)

Publication Number Publication Date
CN111585820A true CN111585820A (en) 2020-08-25
CN111585820B CN111585820B (en) 2023-02-03

Family

ID=72124952

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010401303.XA Active CN111585820B (en) 2020-05-13 2020-05-13 Numbering method for multiple slave machines and weighing shelf

Country Status (1)

Country Link
CN (1) CN111585820B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112822693A (en) * 2020-12-31 2021-05-18 陕西天基通信科技有限责任公司 Method for realizing self-adaptive numbering of micro indoor distribution system
CN113590526A (en) * 2021-09-30 2021-11-02 杭州捷配信息科技有限公司 Duplex communication information transmission method, system and application
CN114302488A (en) * 2021-12-31 2022-04-08 广州极飞科技股份有限公司 Equipment identification setting method, master machine, slave machine, master-slave machine system and medium

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101635637A (en) * 2008-07-21 2010-01-27 江森自控楼宇设备科技(无锡)有限公司 Method and system for distributing intelligent addresses based on serial bus
CN101852472A (en) * 2009-04-01 2010-10-06 欧威尔空调(中国)有限公司 Automatic addressing method for air conditioning system and air conditioning controller
CN201854441U (en) * 2010-08-13 2011-06-01 江苏大学 Wireless electronic display label system based on ZigBee technology
CN104410557A (en) * 2014-12-25 2015-03-11 深圳中科讯联科技有限公司 Dynamic networking method and communication method based on RS-485
CN105554180A (en) * 2016-01-19 2016-05-04 深圳市坤钤泰科技有限公司 Connecting method of principal and subordinate circuit breakers in power distribution cabinet and power distribution cabinet
CN105847456A (en) * 2015-01-13 2016-08-10 浙江大华技术股份有限公司 RS485 automatic address distribution method, device and system
CN108590254A (en) * 2018-06-13 2018-09-28 珠海伊能电子科技有限公司 Work tool intelligent management system and Work tool store storehouse
CN108616610A (en) * 2018-05-21 2018-10-02 深圳前海有电物联科技有限公司 Address distribution method, host, slave and bus system
CN109361585A (en) * 2018-12-22 2019-02-19 沈阳阿尔特科技发展有限公司 A kind of method that child node baud rate and address is arranged in host node automatically
CN109686074A (en) * 2019-02-27 2019-04-26 深圳市斯迈耐特科技有限公司 Eight channel dynamometry collectors
CN110535980A (en) * 2019-08-30 2019-12-03 福州福沃垦电子科技有限公司 A kind of distribution method and system of terminal address
CN111147619A (en) * 2019-12-20 2020-05-12 海丰通航科技有限公司 Method and system for realizing automatic address allocation of RS485 slave equipment locally

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101635637A (en) * 2008-07-21 2010-01-27 江森自控楼宇设备科技(无锡)有限公司 Method and system for distributing intelligent addresses based on serial bus
CN101852472A (en) * 2009-04-01 2010-10-06 欧威尔空调(中国)有限公司 Automatic addressing method for air conditioning system and air conditioning controller
CN201854441U (en) * 2010-08-13 2011-06-01 江苏大学 Wireless electronic display label system based on ZigBee technology
CN104410557A (en) * 2014-12-25 2015-03-11 深圳中科讯联科技有限公司 Dynamic networking method and communication method based on RS-485
CN105847456A (en) * 2015-01-13 2016-08-10 浙江大华技术股份有限公司 RS485 automatic address distribution method, device and system
CN105554180A (en) * 2016-01-19 2016-05-04 深圳市坤钤泰科技有限公司 Connecting method of principal and subordinate circuit breakers in power distribution cabinet and power distribution cabinet
CN108616610A (en) * 2018-05-21 2018-10-02 深圳前海有电物联科技有限公司 Address distribution method, host, slave and bus system
CN108590254A (en) * 2018-06-13 2018-09-28 珠海伊能电子科技有限公司 Work tool intelligent management system and Work tool store storehouse
CN109361585A (en) * 2018-12-22 2019-02-19 沈阳阿尔特科技发展有限公司 A kind of method that child node baud rate and address is arranged in host node automatically
CN109686074A (en) * 2019-02-27 2019-04-26 深圳市斯迈耐特科技有限公司 Eight channel dynamometry collectors
CN110535980A (en) * 2019-08-30 2019-12-03 福州福沃垦电子科技有限公司 A kind of distribution method and system of terminal address
CN111147619A (en) * 2019-12-20 2020-05-12 海丰通航科技有限公司 Method and system for realizing automatic address allocation of RS485 slave equipment locally

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112822693A (en) * 2020-12-31 2021-05-18 陕西天基通信科技有限责任公司 Method for realizing self-adaptive numbering of micro indoor distribution system
CN113590526A (en) * 2021-09-30 2021-11-02 杭州捷配信息科技有限公司 Duplex communication information transmission method, system and application
CN114302488A (en) * 2021-12-31 2022-04-08 广州极飞科技股份有限公司 Equipment identification setting method, master machine, slave machine, master-slave machine system and medium
CN114302488B (en) * 2021-12-31 2024-04-26 广州极飞科技股份有限公司 Method for setting device identifier, host, slave, master-slave system and medium

Also Published As

Publication number Publication date
CN111585820B (en) 2023-02-03

Similar Documents

Publication Publication Date Title
CN111585820B (en) Numbering method for multiple slave machines and weighing shelf
CN101477506A (en) Addressing system and method of master equipment to slave equipment
DE112007001566B4 (en) control device
US20030167360A1 (en) Address assignment method for at least one bus device that has recently been connected to a bus system
CN108989169B (en) CAN bus-based intelligent module ad hoc network method
EP3451811B1 (en) Production plan generation device, production plan generation method, and production plan generation program
CN101582824A (en) Node number automatic distribution method for controlling secondary node equipment of local area network bus
CN103116508B (en) A kind of general-purpose interface of SAP system and its implementation
CN102724093A (en) Advanced telecommunications computing architecture (ATCA) machine frame and intelligent platform management bus (IPMB) connection method thereof
CN106569897A (en) Shared bus polling method and device based on collaborative multi-task scheduling mechanism
CN103279434A (en) Method and device for modifying address of slave unit
CN105630603A (en) Method and device for deploying virtual servers
CN105162671B (en) The welding stage control system and its control method of any main frame
CN104394018A (en) Communication device and active-standby system data online exchange method for hot master control panel backup
CN104866460A (en) Fault-tolerant self-adaptive reconfigurable system and method based on SoC
CN101841430A (en) Method and device for correcting command line
CN108599299A (en) Powerful charge control method, charging system and control unit
JP6709853B2 (en) Method and apparatus for assigning configuration groups to packaging lines
CN108400999B (en) Load balancing method and device for mirror image nodes of database cluster
CN108845548B (en) DCS and distribution method for realizing IO hard-wired distribution based on software configuration
CN1555622A (en) Method and device for producing program interruptions in subscribers to a bus system, and corresponding bus system
CN107203392B (en) Multi-protocol implementation method of small system terminal product
CN201993621U (en) Multi-expansion MOCVD man-machine interface monitoring equipment
US20040237065A1 (en) Method for the project engineering of an automation system
CN113935570A (en) Order processing method, device, equipment and storage medium

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