CN111741139A - Communication station number distribution method and communication system - Google Patents

Communication station number distribution method and communication system Download PDF

Info

Publication number
CN111741139A
CN111741139A CN202010457390.0A CN202010457390A CN111741139A CN 111741139 A CN111741139 A CN 111741139A CN 202010457390 A CN202010457390 A CN 202010457390A CN 111741139 A CN111741139 A CN 111741139A
Authority
CN
China
Prior art keywords
slave device
slave
unique identification
station number
field
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
CN202010457390.0A
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.)
Xiamen Kecan Information Technology Co ltd
Xiamen Kehua Hengsheng Co Ltd
Kehua Hengsheng Co Ltd
Original Assignee
Xiamen Kecan Information Technology Co ltd
Xiamen Kehua Hengsheng 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 Xiamen Kecan Information Technology Co ltd, Xiamen Kehua Hengsheng Co Ltd filed Critical Xiamen Kecan Information Technology Co ltd
Priority to CN202010457390.0A priority Critical patent/CN111741139A/en
Publication of CN111741139A publication Critical patent/CN111741139A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40006Architecture of a communication node
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5038Address allocation for local use, e.g. in LAN or USB networks, or in a controller area network [CAN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • H04L2012/40215Controller Area Network CAN

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention is suitable for the technical field of communication, and provides a communication station number allocation method and a communication system, wherein the communication station number allocation method comprises the following steps: sending a predefined query frame to each slave device so that each slave device reports respective unique identification characteristics; receiving the unique identification characteristics reported by each slave device, and generating a field networking rule according to the unique identification characteristics of each slave device; and issuing field networking rules to the slave devices according to the unique identification features of the slave devices, so that the slave devices receive and store the field networking rules according to the unique identification features of the slave devices. According to the invention, the field networking rule is generated according to the unique identification feature of each slave device, communication is carried out according to the field networking rule, different slave devices can be distinguished according to the unique identification feature of each slave device in field use, the factory simplicity is considered, and the flexibility of field configuration can be realized.

Description

Communication station number distribution method and communication system
Technical Field
The invention belongs to the technical field of communication, and particularly relates to a communication station number allocation method and a communication system.
Background
In system networking, it is often necessary to distinguish between different devices. For example, in monitoring system networking, the field often needs to distinguish different monitoring devices. In order to distinguish different devices on site, different station numbers need to be configured for the devices. However, for the sake of factory simplicity, the same station number is often set for the device at the time of factory shipment, and therefore, different devices cannot be distinguished according to the factory station number in field use.
Disclosure of Invention
In view of this, embodiments of the present invention provide a communication station number allocation method and a communication system, so as to solve the problem in the prior art that different devices cannot be distinguished according to factory station numbers in field use.
A first aspect of an embodiment of the present invention provides a method for allocating a communication station number, which is applied to a master device, and the method for allocating a communication station number includes:
sending a predefined query frame to each slave device so that each slave device reports respective unique identification characteristics;
receiving the unique identification characteristics reported by each slave device, and generating a field networking rule according to the unique identification characteristics of each slave device;
and issuing the field networking rule to each slave device according to the respective unique identification feature of each slave device, so that each slave device receives and stores the field networking rule according to the respective unique identification feature.
A second aspect of the embodiments of the present invention provides a method for allocating a communication station number, which is applied to a slave device, and the method for allocating a communication station number includes:
receiving a predefined query frame sent by a master device, reporting unique identification features of the master device according to the query frame, enabling the master device to generate a field networking rule according to the respective unique identification features of each slave device, and issuing the field networking rule to each slave device according to the respective unique identification features of each slave device;
and receiving and storing the field networking rule issued by the main equipment.
A third aspect of the embodiments of the present invention provides a master device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the communication station number allocation method according to the first aspect when executing the computer program.
A fourth aspect of embodiments of the present invention provides a slave device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the communication station number allocation method according to the second aspect when executing the computer program.
A fifth aspect of the embodiments of the present invention provides a communication system, including a master device as described in the third aspect and at least two slave devices as described in the fourth aspect;
the master device and the slave device are communicatively connected.
A sixth aspect of embodiments of the present invention provides a computer-readable storage medium storing a computer program which, when executed by one or more processors, implements the steps of the communication station number allocation method according to the first aspect and/or the steps of the communication station number allocation method according to the second aspect.
Compared with the prior art, the embodiment of the invention has the following beneficial effects: the embodiment of the invention queries the unique identification characteristics corresponding to each slave device by sending query frames to each slave device; generating a field networking rule according to the unique identification features corresponding to the slave devices, and issuing the field networking rule to the slave devices according to the unique identification features corresponding to the slave devices so that the slave devices receive and store the field networking rule; and then, the master device and the slave device communicate according to the field networking rule. According to the embodiment of the invention, the field networking rule is generated according to the unique identification feature of each slave device, communication is carried out according to the field networking rule, different slave devices can be distinguished according to the unique identification feature of each slave device in field use, the factory simplicity is considered, and the flexibility of field configuration can be realized.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic structural diagram of a communication system according to an embodiment of the present invention;
fig. 2 is a schematic flow chart illustrating an implementation of a method for allocating a station number according to an embodiment of the present invention;
fig. 3 is a schematic flow chart illustrating an implementation of a method for assigning a station number according to another embodiment of the present invention;
fig. 4 is a schematic structural diagram of a master device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a slave device according to an embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
In order to explain the technical means of the present invention, the following description will be given by way of specific examples.
Fig. 1 is a schematic structural diagram of a communication system according to an embodiment of the present invention, and only a part related to the embodiment of the present invention is shown for convenience of description. As shown in fig. 1, the above communication system includes a master device 400 and at least two slave devices 500; the master device 400 is communicatively coupled to the various slave devices 500.
The specific function of the master device 400 (master) can refer to the description related to the corresponding embodiment in fig. 2, and the specific function of the slave device 500 (slave) can refer to the description related to the corresponding embodiment in fig. 3.
Alternatively, the master device 400 and each slave device 500 may be communicatively connected through a CAN bus or a 485 bus. Of course, the master device 400 and each slave device 500 may be communicatively connected through any other communication method that can be implemented, and are not limited in particular.
In this embodiment of the present invention, the master device 400 queries and obtains the unique identification feature of each slave device 500, generates a field networking rule according to the unique identification feature of each slave device 500, sends the field networking rule to each slave device 500 according to the unique identification feature of each slave device 500, and each slave device 500 receives and stores the field networking rule. The master device 400 and the slave device 500 communicate according to the generated field networking rule. According to the embodiment of the invention, the field networking rule is generated according to the respective unique identification feature of each slave device 500, and communication is performed according to the field networking rule, so that different slave devices 500 can be distinguished according to the respective unique identification feature of each slave device 500 in field use, the factory simplicity is considered, and the flexibility of field configuration can be realized.
Fig. 2 is a schematic flow chart of an implementation of a method for assigning a station number according to an embodiment of the present invention, and for convenience of description, only a part related to the embodiment of the present invention is shown. The communication station number allocation method is applied to the master device, and the execution main body of the embodiment of the invention can be the master device.
As shown in fig. 2, the method for assigning a station number may include the following steps:
s201: and sending a predefined query frame to each slave device so that each slave device reports the unique identification feature of each slave device.
Wherein the unique identification feature of the slave device can be used to uniquely identify the slave device. Different slave devices can be distinguished by the unique identification features of the respective slave devices. The unique identifying characteristics of each device are stored in the corresponding device.
Specifically, a query frame is predefined for querying the respective unique identification features of the respective slave devices. The master device sends the query frame to each slave device, and specifically, the query frame may be sent in a broadcast manner according to the factory station number of the slave device. And after receiving the query frame, the slave devices report respective unique identification features. For the sake of factory simplicity, the factory station numbers of the slave devices are the same.
In one embodiment of the invention, the respective unique identifying characteristic of each slave device is a respective serial number of each slave device. The serial numbers of the slave devices are different, and the serial numbers can be used for distinguishing different slave devices.
S202: and receiving the unique identification characteristics reported by each slave device, and generating a field networking rule according to the unique identification characteristics of each slave device.
In the embodiment of the invention, the master device receives the unique identification features reported by the slave devices, and generates the field networking rule according to the unique identification features of the slave devices. Specifically, the field networking rule may be generated according to the unique identification feature and the factory station number of each slave device.
S203: and issuing field networking rules to the slave devices according to the unique identification features of the slave devices, so that the slave devices receive and store the field networking rules according to the unique identification features of the slave devices.
In the embodiment of the invention, the master device issues the field networking rule to each slave device through the respective unique identification feature of each slave device. The slave device takes the same message as its unique identification feature and thus receives and stores the field networking rules. The master device and the slave device both store newly generated field networking rules and can communicate according to the field networking rules.
In one embodiment of the invention, the field networking rules include: and carrying out communication between the master equipment and each corresponding slave equipment according to the station number and the unique identification characteristics of each slave equipment.
Wherein, the station number is the factory station number of the slave equipment.
Specifically, the unique identification feature and the factory station number of each slave device form a new station number of each slave device, that is, the serial number and the factory station number form a new station number of each slave device. The master device only takes the new station number consistent with the serial number of the slave device to configure through the form of broadcasting the serial number + the factory station number (new station number). And then the master device inquires through the new station number, and if the slave device can answer, the slave device successfully sets the new station number to form a complete closed loop.
In an embodiment of the present invention, the method for assigning a station number may further include the following steps:
sending inquiry signals to each slave device according to the field networking rule so that each slave device sends response signals to the master device according to the inquiry signals;
and if the response signal of a certain slave device is not received, the field networking rule is re-issued to the slave device until the number of times of receiving the response signal of the slave device or sending the field networking rule to the slave device reaches the preset number of times.
Specifically, the master device sends an inquiry signal to each slave device according to the field networking rule, and if the slave device receives the inquiry signal according to the field networking rule, the slave device sends a response signal to the master device. The master device determines whether the communication station numbers of the respective slave devices are successfully assigned (configured) by whether or not the response signals of the corresponding slave devices are received. If all the slave devices receive the response signals, the communication station number is successfully allocated.
If a response signal of a certain slave device is not received, which indicates that the communication station number distribution of the slave device fails, issuing the field networking rule to the slave device again according to the unique identification feature of the slave device, so that the slave device receives and stores the field networking rule according to the unique identification feature of the slave device; and the master device sends an inquiry signal to the slave device according to the field networking rule so that the slave device sends a response signal to the master device according to the inquiry signal, and the process is repeated until the master device receives the response signal of the slave device or the number of times of sending the field networking rule to the slave device by the master device reaches the preset number of times. The preset times can be set according to actual requirements.
If the number of times that the master device sends the field networking rule to the slave device reaches a preset number of times, deleting the slave device from the communication station number allocation sequence, and sending the information of the slave device to the working terminal, wherein the information of the slave device is used for indicating a worker corresponding to the working terminal to manually configure the field networking rule of the slave device (or allocate the communication station number of the slave device). Wherein the communication station number assignment is a sequence of slave devices that need to establish a communication connection with the slave device. The working terminal is a terminal device used by a worker, and can be a mobile terminal such as a mobile phone, or a terminal such as a computer. The information of the slave device may be a unique identification feature of the slave device or the like that can uniquely identify the slave device.
In one embodiment of the invention, the communication network between the master device and each slave device includes a CAN bus network and a 485 bus network. Of course, other communication networks may be implemented, and are not limited in this regard.
Optionally, before S201, the method for allocating a station number may further include:
and sending a factory station number inquiry frame to each slave device so that each slave device reports the factory station number.
Fig. 3 is a schematic flow chart of an implementation of a method for assigning a station number according to another embodiment of the present invention, and for convenience of description, only a part related to the embodiment of the present invention is shown. The communication station number allocation method is applied to the slave device, and the execution subject of the embodiment of the invention can be the slave device.
As shown in fig. 3, the method for assigning a station number may include the steps of:
s301: receiving a predefined query frame sent by the master device, reporting the unique identification features of the master device according to the query frame, enabling the master device to generate a field networking rule according to the respective unique identification features of the slave devices, and issuing the field networking rule to the slave devices according to the respective unique identification features of the slave devices.
S302: and receiving and storing the field networking rule issued by the master device.
In an embodiment of the present invention, the method for assigning a station number further includes:
receiving an inquiry signal sent by the master device according to the field networking rule, sending a response signal to the master device according to the inquiry signal so that the master device judges whether the response signals of all slave devices are received, and if the response signal of a certain slave device is not received, retransmitting the field networking rule to the slave device until the number of times of receiving the response signal of the slave device or sending the field networking rule to the slave device reaches the preset number of times.
In one embodiment of the invention, the field networking rules include: and carrying out communication between the master equipment and each corresponding slave equipment according to the station number and the unique identification characteristics of each slave equipment.
In one embodiment of the invention, the respective unique identifying characteristic of each slave device is a respective serial number of each slave device.
In one embodiment of the invention, the communication network between the master device and each slave device includes a CAN bus network and a 485 bus network.
The embodiment shown in fig. 3 is described with respect to the method for assigning the station number from a different perspective from the embodiment shown in fig. 2, the embodiment shown in fig. 2 is described with a master device as an execution subject, the embodiment shown in fig. 3 is described with a slave device as an execution subject, and the detailed description of the embodiment shown in fig. 3 may refer to the specific description in the embodiment shown in fig. 2.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
Fig. 4 is a schematic block diagram of a master device according to an embodiment of the present invention. As shown in fig. 4, the master device 400 of this embodiment includes: one or more processors 401, a memory 402, and a computer program 403 stored in the memory 402 and executable on the processors 401. The processor 401 implements the steps in the above-described embodiments of the communication station number allocation method, such as steps S201 to S203 shown in fig. 2, when executing the computer program 403.
Illustratively, the computer program 403 may be partitioned into one or more modules/units that are stored in the memory 402 and executed by the processor 401 to accomplish the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program 403 in the master device 400. For example, the computer program 403 may be divided into a query frame sending module, a generating module and a sending module, and the specific functions of each module are as follows:
the inquiry frame sending module is used for sending a predefined inquiry frame to each slave device so as to enable each slave device to report respective unique identification characteristics;
the generating module is used for receiving the unique identification characteristics reported by each slave device and generating a field networking rule according to the unique identification characteristics of each slave device;
and the issuing module is used for issuing the field networking rule to each slave device according to the respective unique identification feature of each slave device so that each slave device receives and stores the field networking rule according to the respective unique identification feature.
Optionally, the computer program 403 may also segment the query signaling module and the re-issuing module.
The inquiry signal sending module is used for sending inquiry signals to each slave device according to the field networking rule so that each slave device sends response signals to the master device according to the inquiry signals;
and the re-issuing module is used for re-issuing the field networking rule to the slave equipment if the response signal of certain slave equipment is not received until the number of times of receiving the response signal of the slave equipment or sending the field networking rule to the slave equipment reaches the preset number of times.
Optionally, the field networking rule includes: and carrying out communication between the master equipment and each corresponding slave equipment according to the station number and the unique identification characteristics of each slave equipment.
Optionally, the respective unique identifying feature of each slave device is a respective serial number of each slave device.
Optionally, the communication network between the master device and each slave device includes a CAN bus network and a 485 bus network.
It will be apparent to those skilled in the art that, for convenience and simplicity of description, the foregoing functional units and modules are merely illustrated in terms of division, and in practical applications, the functions may be distributed as needed to different functional units and modules to implement all or part of the functions described above. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the above-mentioned apparatus may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The host device 400 may be a desktop computer, a notebook, a palm top computer, a cloud server, or other computing devices. The master device 400 includes, but is not limited to, a processor 401, a memory 402. Those skilled in the art will appreciate that fig. 4 is merely an example of a master device 400 and does not constitute a limitation of master device 400 and may include more or fewer components than shown, or combine certain components, or different components, e.g., master device 400 may also include input devices, output devices, network access devices, buses, etc.
The Processor 401 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 402 may be an internal storage unit of the main device 400, such as a hard disk or a memory of the main device 400. The memory 402 may also be an external storage device of the host device 400, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, provided on the host device 400. Further, the memory 402 may also include both an internal storage unit of the main device 400 and an external storage device. The memory 402 is used for storing the computer program 403 and other programs and data required by the master device 400. The memory 402 may also be used to temporarily store data that has been output or is to be output.
Fig. 5 is a schematic block diagram of a slave device provided by an embodiment of the present invention. As shown in fig. 5, the slave device 500 of this embodiment includes: one or more processors 501, a memory 502, and a computer program 503 stored in the memory 502 and executable on the processors 501. The processor 501 executes the computer program 503 to implement the steps in the above-described embodiments of the station number allocation method, such as steps S301 to S302 shown in fig. 3.
Illustratively, the computer program 503 may be partitioned into one or more modules/units that are stored in the memory 502 and executed by the processor 501 to accomplish the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program 503 in the slave device 500. For example, the computer program 503 may be divided into a reporting module and a receiving module, and the specific functions of each module are as follows:
the reporting module is used for receiving a predefined query frame sent by the master device, reporting the unique identification characteristics of the master device according to the query frame, so that the master device generates a field networking rule according to the unique identification characteristics of each slave device, and issuing the field networking rule to each slave device according to the unique identification characteristics of each slave device;
and the receiving module is used for receiving and storing the field networking rule issued by the main equipment.
Optionally, the computer program 503 may also segment the reply signaling module.
And the response signal sending module is used for receiving the query signal sent by the master equipment according to the field networking rule and sending a response signal to the master equipment according to the query signal so that the master equipment judges whether the response signals of all the slave equipment are received or not, and if the response signal of a certain slave equipment is not received, the field networking rule is re-issued to the slave equipment until the response signal of the slave equipment is received or the number of times of sending the field networking rule to the slave equipment reaches the preset number of times.
Optionally, the field networking rule includes: and the communication between the slave equipment and each corresponding slave equipment is carried out according to the station number and the unique identification characteristics of each slave equipment.
Optionally, the respective unique identifying feature of each slave device is a respective serial number of each slave device.
Optionally, the communication network between the slave device and each slave device includes a CAN bus network and a 485 bus network.
It will be apparent to those skilled in the art that, for convenience and simplicity of description, the foregoing functional units and modules are merely illustrated in terms of division, and in practical applications, the functions may be distributed as needed to different functional units and modules to implement all or part of the functions described above. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the above-mentioned apparatus may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The slave device 500 may be a computing device such as a desktop computer, a notebook, a palm computer, and a cloud server. The slave device 500 includes, but is not limited to, a processor 501, a memory 502. Those skilled in the art will appreciate that fig. 5 is only one example of a slave device 500 and does not constitute a limitation of slave device 500, and may include more or fewer components than shown, or combine certain components, or different components, e.g., slave device 500 may also include an input device, an output device, a network access device, a bus, etc.
The Processor 501 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 502 may be an internal storage unit of the slave device 500, such as a hard disk or a memory of the slave device 500. The memory 502 may also be an external storage device of the slave device 500, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), etc. provided on the slave device 500. Further, the memory 502 may also include both internal storage units of the slave device 500 and external storage devices. The memory 502 is used for storing the computer program 503 as well as other programs and data required by the slave device 500. The memory 502 may also be used to temporarily store data that has been output or is to be output.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed system and method may be implemented in other ways. For example, the above-described system embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above can be realized by a computer program, which can be stored in a computer-readable storage medium and can realize the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media which may not include electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A communication station number allocation method is applied to a master device, and comprises the following steps:
sending a predefined query frame to each slave device so that each slave device reports respective unique identification characteristics;
receiving the unique identification characteristics reported by each slave device, and generating a field networking rule according to the unique identification characteristics of each slave device;
and issuing the field networking rule to each slave device according to the respective unique identification feature of each slave device, so that each slave device receives and stores the field networking rule according to the respective unique identification feature.
2. The communication station number assignment method as claimed in claim 1, further comprising:
sending inquiry signals to each slave device according to the field networking rules so that each slave device sends response signals to the master device according to the inquiry signals;
and if the response signal of a certain slave device is not received, the field networking rule is re-issued to the slave device until the number of times of receiving the response signal of the slave device or sending the field networking rule to the slave device reaches the preset number of times.
3. The method of claim 1, wherein the site networking rule comprises: and carrying out communication between the master equipment and each corresponding slave equipment according to the station number and the unique identification characteristics of each slave equipment.
4. The method of claim 1, wherein the respective unique identification characteristic of each slave device is a respective serial number of each slave device.
5. The communication station number assignment method according to any one of claims 1 to 4, wherein the communication networks between the master device and the respective slave devices include a CAN bus network and a 485 bus network.
6. A communication station number allocation method applied to a slave device, the communication station number allocation method comprising:
receiving a predefined query frame sent by a master device, reporting unique identification features of the master device according to the query frame, enabling the master device to generate a field networking rule according to the respective unique identification features of each slave device, and issuing the field networking rule to each slave device according to the respective unique identification features of each slave device;
and receiving and storing the field networking rule issued by the main equipment.
7. A master device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the communication station number assignment method according to any one of claims 1 to 5 when executing the computer program.
8. A slave device comprising a memory, a processor and a computer program stored in said memory and executable on said processor, wherein said processor when executing said computer program performs the steps of the communication station number assignment method of claim 6.
9. A communication system comprising a master device according to claim 7 and at least two slave devices according to claim 8;
the master device and the slave device are communicatively connected.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by one or more processors, carries out the steps of the communication station number assignment method of any one of claims 1 to 5 and/or the steps of the communication station number assignment method of claim 6.
CN202010457390.0A 2020-05-26 2020-05-26 Communication station number distribution method and communication system Pending CN111741139A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010457390.0A CN111741139A (en) 2020-05-26 2020-05-26 Communication station number distribution method and communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010457390.0A CN111741139A (en) 2020-05-26 2020-05-26 Communication station number distribution method and communication system

Publications (1)

Publication Number Publication Date
CN111741139A true CN111741139A (en) 2020-10-02

Family

ID=72647801

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010457390.0A Pending CN111741139A (en) 2020-05-26 2020-05-26 Communication station number distribution method and communication system

Country Status (1)

Country Link
CN (1) CN111741139A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114389911A (en) * 2022-01-13 2022-04-22 上海步科自动化股份有限公司 Parameter setting method, device, terminal and storage medium
CN114500147A (en) * 2021-12-29 2022-05-13 深圳市英威腾电气股份有限公司 Method and device for allocating station numbers, electronic equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1255027A (en) * 1998-11-23 2000-05-31 朗迅科技公司 Method and device for determining unique address to recognize hardware unit on common bus
EP1209878A2 (en) * 2000-11-28 2002-05-29 Eaton Corporation Motor vehicle communication protocol with automatic device address assignment
US20080201511A1 (en) * 2005-04-29 2008-08-21 Nxp B.V. Device Identification Coding of Inter-Integrated Circuit Slave Devices
CN101447894A (en) * 2008-12-22 2009-06-03 三一重工股份有限公司 Identification of physical address of partial node, network configuration and maintaining method, network system
CN102289415A (en) * 2010-06-15 2011-12-21 英特尔移动通信技术有限公司 Method and apparatus of identifying devices on a bus and apparatus
CN108270883A (en) * 2018-02-02 2018-07-10 深圳曼顿科技有限公司 Can automatic dispensing device address code method, breaker and storage medium
CN108833606A (en) * 2018-05-31 2018-11-16 郑州云海信息技术有限公司 A kind of two-layer equipment configuration method, tension management equipment, infrastructure devices and system
CN110417930A (en) * 2019-06-19 2019-11-05 浙江天正电气股份有限公司 A kind of auto-allocation method of serial device mailing address
CN110505135A (en) * 2019-09-09 2019-11-26 上海外斯能源科技有限公司 CAN bus based battery system automatic network-building method

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1255027A (en) * 1998-11-23 2000-05-31 朗迅科技公司 Method and device for determining unique address to recognize hardware unit on common bus
EP1209878A2 (en) * 2000-11-28 2002-05-29 Eaton Corporation Motor vehicle communication protocol with automatic device address assignment
US20080201511A1 (en) * 2005-04-29 2008-08-21 Nxp B.V. Device Identification Coding of Inter-Integrated Circuit Slave Devices
CN101447894A (en) * 2008-12-22 2009-06-03 三一重工股份有限公司 Identification of physical address of partial node, network configuration and maintaining method, network system
CN102289415A (en) * 2010-06-15 2011-12-21 英特尔移动通信技术有限公司 Method and apparatus of identifying devices on a bus and apparatus
CN108270883A (en) * 2018-02-02 2018-07-10 深圳曼顿科技有限公司 Can automatic dispensing device address code method, breaker and storage medium
CN108833606A (en) * 2018-05-31 2018-11-16 郑州云海信息技术有限公司 A kind of two-layer equipment configuration method, tension management equipment, infrastructure devices and system
CN110417930A (en) * 2019-06-19 2019-11-05 浙江天正电气股份有限公司 A kind of auto-allocation method of serial device mailing address
CN110505135A (en) * 2019-09-09 2019-11-26 上海外斯能源科技有限公司 CAN bus based battery system automatic network-building method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114500147A (en) * 2021-12-29 2022-05-13 深圳市英威腾电气股份有限公司 Method and device for allocating station numbers, electronic equipment and storage medium
CN114500147B (en) * 2021-12-29 2023-12-26 深圳市英威腾电气股份有限公司 Method and device for distributing station numbers, electronic equipment and storage medium
CN114389911A (en) * 2022-01-13 2022-04-22 上海步科自动化股份有限公司 Parameter setting method, device, terminal and storage medium

Similar Documents

Publication Publication Date Title
CN110750341B (en) Task scheduling method, device, system, terminal equipment and storage medium
CN108363737B (en) Data format conversion method, device and equipment
CN110852882B (en) Packet consensus method, apparatus, device, and medium for blockchain networks
CN107980241B (en) Gateway multi-connection method and device
CN111741139A (en) Communication station number distribution method and communication system
CN107682441B (en) Remote control method, mobile terminal and PC (personal computer) terminal
CN110719345B (en) Virtual machine MAC address generation method, system, equipment and computer medium
CN107465687B (en) Method, device and terminal for realizing permission configuration
CN111461763A (en) Resource allocation method and device
CN110611876A (en) Indoor asset management method, device and system
CN112422485B (en) Communication method and device of transmission control protocol
CN115617511A (en) Resource data processing method and device, electronic equipment and storage medium
CN113179338B (en) Communication method, electronic device, and storage medium
CN113177015B (en) Frame header-based serial port communication method and serial port chip
CN108834130A (en) Mark distributing method, device, terminal and computer readable storage medium
CN110300222B (en) Short message display method, system, terminal equipment and computer readable storage medium
CN110704198A (en) Data operation method, device, storage medium and processor
CN104735079A (en) Payment verification method and device based on domain name system (DNS)
CN113660353A (en) Method, device, equipment and medium for managing Provisioner address based on Bluetooth Mesh
CN109670980B (en) Method, system and equipment for processing charging service data
CN111679909A (en) Data processing method and device and terminal equipment
CN111127706A (en) Intelligent lock control method, intelligent lock, cloud server and computing equipment
CN110858201A (en) Data processing method and system, processor and storage medium
CN115002133B (en) Data transmission determining method and device based on multiple interfaces
CN112995900B (en) SIM card distribution method, device, server and computer readable 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20201002