CN108965491B - Method, device and system for distributing communication addresses of lower computers - Google Patents

Method, device and system for distributing communication addresses of lower computers Download PDF

Info

Publication number
CN108965491B
CN108965491B CN201810687786.7A CN201810687786A CN108965491B CN 108965491 B CN108965491 B CN 108965491B CN 201810687786 A CN201810687786 A CN 201810687786A CN 108965491 B CN108965491 B CN 108965491B
Authority
CN
China
Prior art keywords
bar code
lower computer
communication address
communication
code information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810687786.7A
Other languages
Chinese (zh)
Other versions
CN108965491A (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.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN201810687786.7A priority Critical patent/CN108965491B/en
Publication of CN108965491A publication Critical patent/CN108965491A/en
Priority to PCT/CN2018/121587 priority patent/WO2020000931A1/en
Application granted granted Critical
Publication of CN108965491B publication Critical patent/CN108965491B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • H04L61/5038Address allocation for local use, e.g. in LAN or USB networks, or in a controller area network [CAN]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
    • G06K17/0022Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisious for transferring data to distant stations, e.g. from a sensing device

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a method, a device and a system for distributing communication addresses of lower computers. The distribution method applied to the terminal comprises the following steps: scanning the bar code of each lower computer, wherein each lower computer in a communication network respectively has bar code information of unique identification identity; confirming a communication address corresponding to each lower computer according to the setting information of the user; and distributing the bar code information and the communication address to a corresponding lower computer, wherein the bar code information is obtained after scanning a bar code. According to the invention, the address can be set and distributed for the lower computer through the terminal, and the user only needs to input correct communication address information on the terminal.

Description

Method, device and system for distributing communication addresses of lower computers
Technical Field
The invention relates to the technical field of communication, in particular to a method, a device and a system for distributing a communication address of a lower computer.
Background
At present, in a communication network (such as 485 communication network) having one upper computer and a plurality of lower computers, a dial-up method or a jumper cap method is generally adopted to set a communication address for a mainboard of the lower computer. However, the two methods are not easy to operate, and particularly in engineering debugging, when the unit is installed, a method of dialing or utilizing a jumper cap brings a large workload to after-sales personnel, and affects the after-sales efficiency.
Aiming at the problems that the mode of distributing the communication address for the lower computer is inconvenient and the working efficiency is reduced in the prior art, an effective solution is not provided at present.
Disclosure of Invention
The embodiment of the invention provides a method, a device and a system for allocating a communication address of a lower computer, and aims to solve the problems that in the prior art, the method for allocating the communication address to the lower computer is inconvenient and the working efficiency is reduced.
In order to solve the above technical problem, in a first aspect, the present invention provides a method for allocating a lower computer communication address, where the method is applied to a terminal, and the method includes:
scanning the bar code of each lower computer, wherein each lower computer in a communication network respectively has bar code information of unique identification identity;
confirming a communication address corresponding to each lower computer according to the setting information of the user;
distributing the bar code information and the communication address to corresponding lower computers; the bar code information is obtained after the bar code is scanned.
Further, confirming the communication address corresponding to each lower computer according to the setting information of the user comprises: after scanning the bar code, skipping to a communication address setting interface; receiving the setting information input by the user on the communication address setting interface; the setting information is information used for setting a communication address; and confirming the communication address corresponding to each lower computer according to the setting information.
Further, before scanning the barcode of each lower computer, the method further comprises: establishing wireless connection with the wireless communication module of each lower computer, wherein the wireless communication module with the unique identification identity is arranged on each lower computer; the bar code information and the wireless communication module have a one-to-one corresponding relation.
Further, the step of assigning the barcode information and the communication address to the corresponding lower computer comprises: and distributing the bar code information and the communication address to the corresponding lower computer through a wireless communication module arranged on each lower computer, so that the lower computer can confirm the identity according to the bar code information and set and memorize the communication address after confirming the identity.
Further, before scanning the barcode of each lower computer, the method further comprises: and establishing wireless connection with an upper computer, wherein the upper computer and each lower computer are positioned in the same communication network.
Further, the step of assigning the barcode information and the communication address to the corresponding lower computer comprises: the bar code information and the communication address are broadcasted to each lower computer through the communication bus by the upper computer, so that the lower computers carry out identity confirmation according to the bar code information, set and memorize the communication address after the identity confirmation, and discard the bar code information and the communication address under the condition of failed identity confirmation.
Further, scanning the barcode of each lower computer includes: and scanning the bar code of each lower computer through an application program APP.
Further, the wireless connection is a communication connection performed in a WIFI, bluetooth or local area network manner.
In a second aspect, the present invention provides a method for allocating a lower computer communication address, where the method is applied to a lower computer, and the method includes:
acquiring bar code information and a communication address; the barcode information is obtained after the terminal scans a barcode on a lower computer; the communication address is confirmed according to the setting information of the user on the terminal;
and performing identity recognition according to the bar code information, and setting the communication address as the address of the communication address after the identity recognition is successful.
Further, before acquiring the barcode information and the communication address, the method further includes: writing a bar code containing bar code information on a main board of the lower computer through a writer; and displaying the bar codes on the surfaces of the lower computers, wherein each lower computer is respectively provided with bar code information of unique identification identity.
Further, acquiring the bar code information and the communication address comprises: establishing wireless connection with the terminal through a wireless communication module arranged by the terminal; the bar code information and the wireless communication module have a one-to-one corresponding relation; and receiving the bar code information and the communication address sent by the terminal through a wireless communication module.
Further, acquiring the bar code information and the communication address comprises: establishing wireless connection with an upper computer, wherein the upper computer and the lower computer are positioned in the same communication network; and receiving the bar code information and the communication address forwarded by the upper computer through a communication bus.
Further, after the identification is performed according to the barcode information, the method further includes: and if the identification fails, discarding the bar code information and the communication address.
Further, after setting the communication address as the self address, the method further includes: and memorizing the communication address.
Further, the wireless connection is a communication connection performed in a WIFI, bluetooth or local area network manner.
In a third aspect, the present invention provides an apparatus for assigning a lower computer communication address, the apparatus being configured to perform the method of the first aspect, and the apparatus being applied to a terminal, the apparatus including:
the scanning module is used for scanning the bar code of each lower computer, wherein each lower computer in a communication network respectively has bar code information of unique identification identity;
the confirming module is used for confirming the corresponding communication address of each lower computer according to the setting information of the user;
and the distribution module is used for distributing the bar code information and the communication address to a corresponding lower computer, wherein the bar code information is obtained after scanning the bar code.
Further, the apparatus further comprises: the first wireless connection establishing module is used for establishing wireless connection with the wireless communication module of each lower computer, wherein the wireless communication module with the unique identification identity is arranged on each lower computer; the bar code information and the wireless communication module have a one-to-one corresponding relation.
Further, the distribution module is further configured to distribute the barcode information and the communication address to corresponding lower computers through wireless communication modules arranged on each lower computer, so that the lower computers perform identity confirmation according to the barcode information, and set and memorize the communication address after the identity confirmation.
Further, the apparatus further comprises: and the second wireless connection establishing module is used for establishing wireless connection with an upper computer, wherein the upper computer and each lower computer are positioned in the same communication network.
Further, the distribution module is further configured to broadcast the barcode information and the communication address to each lower computer through a communication bus by the upper computer, so that the lower computers perform identity confirmation according to the barcode information, set and memorize the communication address after the identity confirmation, and discard the barcode information and the communication address under the condition that the identity confirmation fails.
In a fourth aspect, the present invention provides an apparatus for assigning a communication address of a lower computer, the apparatus being configured to perform the assigning method according to the second aspect, the apparatus being applied to the lower computer, and the apparatus including:
the acquisition module is used for acquiring bar code information and a communication address; the barcode information is obtained after the terminal scans a barcode on a lower computer; the communication address is confirmed according to the setting information of the user on the terminal;
and the identification module is used for carrying out identity identification according to the bar code information and setting the communication address as the address of the communication address after the identity identification is successful.
Further, the apparatus further comprises: the programming module is used for programming a bar code containing bar code information on a mainboard of the lower computer through a programming device; and the display module is used for displaying the bar codes on the surface of the display module, wherein each lower computer is respectively provided with bar code information of unique identification identity.
Furthermore, the acquisition module is also used for establishing wireless connection with the terminal through a wireless communication module arranged by the acquisition module; the bar code information and the wireless communication module have a one-to-one corresponding relation; and receiving the bar code information and the communication address sent by the terminal through a wireless communication module.
Further, the acquisition module is further configured to establish a wireless connection with an upper computer, where the upper computer and the lower computer are located in the same communication network; and receiving the bar code information and the communication address forwarded by the upper computer through a communication bus.
In a fifth aspect, the present invention provides a system for allocating a communication address of a lower computer, where the system includes an upper computer, a lower computer, and a terminal.
In a sixth aspect, the present invention provides a system for allocating a communication address of a lower computer, where the system includes the lower computer and a terminal.
By applying the technical scheme of the invention, the bar code on the surface of the lower computer can be scanned, the bar code information is determined, the communication address of the lower computer corresponding to the bar code information is set on the terminal, and the communication address and the bar code information are sent to the lower computer. Therefore, addresses can be set and distributed for the lower computer through the terminal, and users only need to input correct communication address information on the terminal.
Drawings
Fig. 1 is a schematic diagram of a system for assigning communication addresses of lower computers according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for allocating lower computer communication addresses according to an embodiment of the present invention;
fig. 3 is a flowchart of a method for allocating lower computer communication addresses according to an embodiment of the present invention;
fig. 4 is a flowchart of a method for allocating lower computer communication addresses according to an embodiment of the present invention;
fig. 5 is a flowchart of a method for allocating lower computer communication addresses according to an embodiment of the present invention;
fig. 6 is a block diagram of an apparatus for assigning a lower computer communication address according to an embodiment of the present invention;
fig. 7 is a block diagram of an apparatus for assigning a lower computer communication address according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the following drawings and specific embodiments, it being understood that the specific embodiments described herein are merely illustrative of the invention and are not to be construed as limiting the invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
First, fig. 1 shows a system for allocating lower computer communication addresses, which can also be understood as an application scenario of the following embodiments. The dispensing system comprises: cell-phone (terminal), host computer, a plurality of lower computer mainboard 1 to n. The mobile phone is connected with the upper computer through a communication bus, and the upper computer and the plurality of lower computers are arranged in the same communication network. Wherein, the terminal can include: the mobile phone includes a mobile phone, a tablet computer, a notebook computer, a palm computer, a Mobile Internet Device (MID), and a wearable device such as a smart watch, a smart bracelet, a pedometer, and the like. The terminal shown in fig. 1 is a mobile phone.
In order to solve the problem that the method for allocating the communication address to the lower computer in the prior art is inconvenient and reduces the work efficiency, an embodiment of the present invention provides a method for allocating the communication address of the lower computer, an application scenario of the allocation method is shown in fig. 1, the allocation method is applied to a terminal, as shown in fig. 2, and the method includes:
step S201, scanning the bar code of each lower computer.
Wherein, each lower computer in a communication network has bar code information of unique identification identity respectively.
Step S202, confirming a communication address corresponding to each lower computer according to the setting information of the user;
step S203, distributing the bar code information and the communication address to a corresponding lower computer;
the bar code information is determined after the bar code is scanned.
By applying the technical scheme of the invention, the bar code of the lower computer can be scanned, the bar code information is determined according to the bar code, the communication address of the lower computer corresponding to the bar code information is set on the terminal, and the communication address and the bar code information are sent to the lower computer. Therefore, addresses can be set and distributed for the lower computer through the terminal, and users only need to input correct communication address information on the terminal.
In one possible implementation, the barcode information of each lower computer may be scanned through an APP (Application). Before this, the corresponding APP needs to be downloaded on the terminal to implement the subsequent scanning. The program related to the distribution method can also be written into the terminal, and the starting of the scanning function is triggered by setting a shortcut key. The bar code can be a one-dimensional bar code or a two-dimensional bar code, and only a lower computer can be uniquely identified. The bar code can paste on the surface of next machine to the user uses the terminal to scan the bar code conveniently.
It can be understood that, in step S202, the step of confirming the communication address corresponding to each lower computer according to the setting information of the user includes: after scanning the bar code, skipping to a communication address setting interface; receiving setting information input by a user on a communication address setting interface; wherein the setting information is information for setting a communication address; and confirming the corresponding communication address of each lower computer according to the set information. Obviously, the communication address input by the user needs to meet the requirements of the communication protocol. In one possible application example, when the communication address format input by the user does not meet the requirement, the terminal may output a prompt message to prompt the user to re-input the communication address. Further, the terminal detects the number of continuous input errors of the user, and if the number of continuous input errors is 3, the terminal can be locked within a preset time (for example, within 30 minutes) to prohibit the user from continuing to use the scanning function, so as to ensure the safety of the operation.
The method shown in fig. 2 can be implemented in the following two ways.
In a possible implementation manner, before scanning the barcode of each lower computer in step S201, the method further includes: establishing wireless connection with the wireless communication module of each lower computer, wherein the wireless communication module with the unique identification identity is arranged on each lower computer; the bar code information and the wireless communication module have a one-to-one corresponding relation. S203, distributing the bar code information and the communication address to the corresponding lower computer comprises the following steps: and distributing the bar code information and the communication address to the corresponding lower computer through the wireless communication module arranged on each lower computer, so that the lower computer can confirm the identity according to the bar code information and set and memorize the communication address after confirming the identity.
The wireless connection is communication connection conducted in a WIFI, Bluetooth or local area network mode. In the implementation mode, each lower computer is required to be provided with a wireless communication module, the wireless communication module can establish the communication relationship between the terminal and the lower computer, and the upper computer is not required to forward, so that the distribution efficiency of the communication addresses can be improved.
In a possible implementation manner, before scanning the barcode of each lower computer in step S201, the method further includes: and establishing wireless connection with an upper computer, wherein the upper computer and each lower computer are positioned in the same communication network. S203, distributing the bar code information and the communication address to the corresponding lower computer comprises the following steps: the bar code information and the communication address are broadcasted to each lower computer through the communication bus by the upper computer, so that the lower computers carry out identity confirmation according to the bar code information, set and memorize the communication address after the identity confirmation, and discard the bar code information and the communication address under the condition of failed identity confirmation.
If each lower computer does not have a wireless communication module, the lower computers cannot directly communicate with the terminal, and the upper computers can transfer the data to realize indirect communication between the terminal and the lower computers. The method shown in the implementation mode can be applied to the distribution system shown in fig. 1, so that a wireless communication module is not required to be arranged for each lower computer, the structure of devices in a communication network is simpler, and the cost is saved.
Fig. 3 shows a method for allocating a communication address of a lower computer, which is applied to the lower computer, and the method comprises the following steps:
step S301, acquiring bar code information and a communication address.
The barcode information is obtained after the terminal scans the barcode on the lower computer; the communication address is confirmed according to the setting information of the user on the terminal;
and step S302, performing identity recognition according to the bar code information, and setting the communication address as the address of the communication address after the identity recognition is successful.
By applying the technical scheme of the invention, the address can be set and distributed for the lower computer through the terminal, and the user only needs to input correct communication address information on the terminal.
In a possible implementation manner, after the communication address is set as the self address after the identity recognition is successful, the method further includes: the communication address is memorized. I.e. stores the communication address. Before the step S301, acquiring the barcode information and the communication address, the method further includes: writing a bar code containing bar code information on a main board of the lower computer through a writer; and displaying the bar code on the surface of the lower computer, wherein each lower computer is respectively provided with bar code information of unique identification identity. The bar code can be used as an identification code of the mainboard and even the lower computer unit. The bar code can be displayed by attaching a bar code (for example, a two-dimensional code) corresponding to the bar code information to the surface of the lower computer, and a user can acquire the bar code information by scanning the bar code.
In a possible implementation manner, after the step S301 of acquiring the barcode information and the communication address, as shown in fig. 4, the method further includes:
and step S303, performing identity recognition according to the bar code information, and discarding the bar code information and the communication address if the identity recognition fails.
Therefore, each lower computer receives the bar code information and the communication address, and if the bar code information does not accord with the lower computer, the communication address is not allocated to the lower computer. The bar code information and the communication address are discarded, so that invalid information redundancy can be avoided, and the running efficiency of the lower computer is improved.
In a possible implementation manner, the step S301 of obtaining the barcode information and the communication address includes: establishing wireless connection with a terminal through a wireless communication module arranged by the terminal; the wireless connection is communication connection conducted in a WIFI, Bluetooth or local area network mode. The bar code information and the wireless communication module have a one-to-one corresponding relation; and receiving the bar code information and the communication address sent by the terminal through the wireless communication module. Therefore, each lower computer is required to be provided with a wireless communication module, the wireless communication module can establish the communication relationship between the terminal and the lower computer, and the upper computer is not required to forward, so that the distribution efficiency of the communication address can be improved.
In a possible implementation manner, the step S301 of obtaining the barcode information and the communication address includes: and establishing wireless connection with the upper computer, wherein the wireless connection is communication connection in a WIFI, Bluetooth or local area network mode. Wherein, the upper computer and the lower computer are positioned in the same communication network; and receiving the bar code information and the communication address forwarded by the upper computer through the communication bus. If each lower computer does not have a wireless communication module, the lower computers cannot directly communicate with the terminal, and the upper computers can transfer the data to realize indirect communication between the terminal and the lower computers. The method shown in the implementation mode can be applied to the distribution system shown in fig. 1, so that a wireless communication module is not required to be arranged for each lower computer, the structure of devices in a communication network is simpler, and the cost is saved.
Fig. 5 shows a method for allocating a lower computer communication address according to an embodiment of the present invention, where the method includes:
s501, wirelessly connecting the mobile phone with an upper computer;
s502, scanning a two-dimensional code corresponding to the mainboard to determine bar code information;
step S503, setting a mainboard communication address on the mobile phone;
step S504, the mobile phone transmits the bar code information and the set address data to an upper computer;
step S505, the upper computer broadcasts the bar code information and the set address data to each lower computer;
and step S506, after the lower computer receives the data, if the bar code information is consistent, address setting is carried out.
Therefore, addresses can be set and distributed for the lower computer through the terminal, and users only need to input correct communication address information on the terminal.
Fig. 6 shows an apparatus for assigning communication addresses of lower computers, which is used to perform the method shown in fig. 2 and is applied to a terminal, according to an embodiment of the present invention, and the apparatus includes:
the scanning module 601 is used for scanning the bar code of each lower computer, wherein each lower computer in a communication network respectively has bar code information of unique identification identity;
a confirming module 602, configured to confirm a communication address corresponding to each lower computer according to setting information of a user;
the allocating module 603 is configured to allocate the barcode information and the communication address to a corresponding lower computer.
The bar code information is determined after the bar code is scanned.
In one possible implementation, the apparatus further includes: the first wireless connection establishing module is used for establishing wireless connection with the wireless communication module of each lower computer, wherein each lower computer is provided with a wireless communication module with a unique identification identity; the bar code information and the wireless communication module have a one-to-one corresponding relation.
In a possible implementation manner, the allocating module 603 is further configured to allocate, through a wireless communication module provided on each lower computer, the barcode information and the communication address to the corresponding lower computer, so that the lower computer performs identity confirmation according to the barcode information, and sets and memorizes the communication address after the identity confirmation.
In one possible implementation, the apparatus further includes: and the second wireless connection establishing module is used for establishing wireless connection with the upper computer, wherein the upper computer and each lower computer are positioned in the same communication network.
In a possible implementation manner, the allocation module 603 is further configured to broadcast, by the upper computer, the barcode information and the communication address to each lower computer through the communication bus, so that the lower computers perform identity confirmation according to the barcode information, set and memorize the communication address after the identity confirmation, and discard the barcode information and the communication address in case of failure of the identity confirmation.
Therefore, addresses can be set and distributed for the lower computer through the terminal, and users only need to input correct communication address information on the terminal.
Fig. 7 shows an apparatus for assigning a communication address of a lower computer according to an embodiment of the present invention, the apparatus being used to perform the assigning method shown in fig. 3, and the apparatus being applied to the lower computer, the apparatus including:
an obtaining module 701, configured to obtain barcode information and a communication address; the barcode information is obtained after the terminal scans the barcode on the lower computer; the communication address is confirmed according to the setting information of the user on the terminal;
and the identification module 702 is configured to perform identity identification according to the barcode information, and set the communication address as a self address after the identity identification is successful.
In one possible implementation, the apparatus further includes:
the programming module is used for programming a bar code containing bar code information on a mainboard of the lower computer through a programming device;
and the display module is used for displaying the bar codes on the surface of the display module, wherein each lower computer is respectively provided with bar code information of unique identification identity.
In a possible implementation manner, the obtaining module 701 is further configured to establish a wireless connection with a terminal through a wireless communication module provided by the obtaining module; the bar code information and the wireless communication module have a one-to-one corresponding relation; and receiving the bar code information and the communication address sent by the terminal through the wireless communication module.
In a possible implementation manner, the obtaining module 701 is further configured to establish a wireless connection with an upper computer, where the upper computer and the lower computer are located in the same communication network; and receiving the bar code information and the communication address forwarded by the upper computer through the communication bus.
Therefore, addresses can be set and distributed for the lower computer through the terminal, and users only need to input correct communication address information on the terminal.
The embodiment of the invention also provides a system for distributing the communication address of the lower computer, which comprises the upper computer, the lower computer and a terminal (refer to fig. 1).
The embodiment of the invention also provides another lower computer communication address distribution system, which comprises a lower computer and a terminal. In the system, each lower computer is provided with a wireless communication module.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a mobile terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments illustrated in the drawings, the present invention is not limited to the embodiments, which are illustrative rather than restrictive, and it will be apparent to those skilled in the art that many more modifications and variations can be made without departing from the spirit of the invention and the scope of the appended claims.

Claims (22)

1. A method for allocating lower computer communication addresses is applied to a terminal, and the method comprises the following steps:
scanning the bar code of each lower computer, wherein each lower computer in a communication network is respectively provided with a bar code with a unique identification identity;
confirming a communication address corresponding to each lower computer according to the setting information of the user;
distributing the bar code information and the communication address to corresponding lower computers; the bar code information is obtained after the bar code is scanned;
before scanning the barcode of each lower computer, the method further comprises:
establishing wireless connection with the wireless communication module of each lower computer, wherein the wireless communication module with the unique identification identity is arranged on each lower computer; the bar code information and the wireless communication module have a one-to-one corresponding relation;
or, establishing wireless connection with an upper computer, wherein the upper computer and each lower computer are positioned in the same communication network.
2. The method of claim 1, wherein confirming the communication address corresponding to each lower computer according to the setting information of the user comprises:
after scanning the bar code, skipping to a communication address setting interface;
receiving the setting information input by the user on the communication address setting interface; the setting information is information used for setting a communication address;
and confirming the communication address corresponding to each lower computer according to the setting information.
3. The method of claim 1, wherein assigning the barcode information and the communication address to the corresponding lower computer comprises:
and distributing the bar code information and the communication address to the corresponding lower computer through a wireless communication module arranged on each lower computer, so that the lower computer can confirm the identity according to the bar code information and set and memorize the communication address after confirming the identity.
4. The method of claim 1, wherein assigning the barcode information and the communication address to the corresponding lower computer comprises:
the bar code information and the communication address are broadcasted to each lower computer through the communication bus by the upper computer, so that the lower computers carry out identity confirmation according to the bar code information, set and memorize the communication address after the identity confirmation, and discard the bar code information and the communication address under the condition of failed identity confirmation.
5. The method of claim 1, wherein scanning the barcode of each lower computer comprises:
and scanning the bar code of each lower computer through an application program APP.
6. The method according to any one of claims 1 to 5,
the wireless connection is communication connection carried out in a WIFI, Bluetooth or local area network mode.
7. A method for distributing communication addresses of lower computers is applied to the lower computers, and the method comprises the following steps:
acquiring bar code information and a communication address; the barcode information is obtained after the terminal scans a barcode on a lower computer; the communication address is confirmed according to the setting information of the user on the terminal;
carrying out identity recognition according to the bar code information, and setting the communication address as a self address after the identity recognition is successful;
acquiring bar code information and a communication address, comprising:
establishing wireless connection with the terminal through a wireless communication module arranged by the terminal; the bar code information and the wireless communication module have a one-to-one corresponding relation;
receiving the bar code information and the communication address sent by the terminal through the wireless communication module;
or, establishing wireless connection with an upper computer, wherein the upper computer and the lower computer are positioned in the same communication network;
and receiving the bar code information and the communication address forwarded by the upper computer through a communication bus.
8. The method of claim 7, wherein prior to obtaining the barcode information and the communication address, the method further comprises:
writing a bar code containing bar code information on a main board of the lower computer through a writer;
and displaying the bar codes on the surfaces of the lower computers, wherein each lower computer is respectively provided with bar code information of unique identification identity.
9. The method of claim 7, wherein after the identification according to the barcode information, the method further comprises:
and if the identification fails, discarding the bar code information and the communication address.
10. The method of claim 7, wherein after setting the communication address as the self address, the method further comprises:
and memorizing the communication address.
11. The method according to any one of claims 7 to 10, wherein the wireless connection is a communication connection via WIFI, bluetooth or a local area network.
12. An apparatus for assigning a lower computer communication address, the apparatus being configured to perform the method of any one of claims 1 to 6, the apparatus being applied to a terminal, the apparatus comprising:
the scanning module is used for scanning the bar code of each lower computer, wherein each lower computer in a communication network respectively has bar code information of unique identification identity;
the confirming module is used for confirming the corresponding communication address of each lower computer according to the setting information of the user;
the distribution module is used for distributing the bar code information and the communication address to the corresponding lower computer; the bar code information is obtained after the bar code is scanned.
13. The apparatus of claim 12, further comprising:
the first wireless connection establishing module is used for establishing wireless connection with the wireless communication module of each lower computer, wherein the wireless communication module with the unique identification identity is arranged on each lower computer; the bar code information and the wireless communication module have a one-to-one corresponding relation.
14. The apparatus of claim 13,
the distribution module is also used for distributing the bar code information and the communication address to the corresponding lower computer through a wireless communication module arranged on each lower computer, so that the lower computer can carry out identity confirmation according to the bar code information and set and memorize the communication address after the identity confirmation.
15. The apparatus of claim 12, further comprising:
and the second wireless connection establishing module is used for establishing wireless connection with an upper computer, wherein the upper computer and each lower computer are positioned in the same communication network.
16. The apparatus of claim 15,
the distribution module is further used for broadcasting the bar code information and the communication address to each lower computer through a communication bus through the upper computer, so that the lower computers can carry out identity confirmation according to the bar code information, set and memorize the communication address after the identity confirmation, and discard the bar code information and the communication address under the condition of failed identity confirmation.
17. An apparatus for assigning a communication address of a lower computer, the apparatus being configured to perform the assigning method according to any one of claims 7 to 11, the apparatus being applied to the lower computer, the apparatus comprising:
the acquisition module is used for acquiring bar code information and a communication address; the barcode information is obtained after the terminal scans a barcode on a lower computer; the communication address is confirmed according to the setting information of the user on the terminal;
and the identification module is used for carrying out identity identification according to the bar code information and setting the communication address as the address of the communication address after the identity identification is successful.
18. The apparatus of claim 17, further comprising:
the programming module is used for programming a bar code containing bar code information on a mainboard of the lower computer through a programming device;
and the display module is used for displaying the bar codes on the surface of the display module, wherein each lower computer is respectively provided with bar code information of unique identification identity.
19. The apparatus of claim 17,
the acquisition module is also used for establishing wireless connection with the terminal through a wireless communication module arranged by the acquisition module; the bar code information and the wireless communication module have a one-to-one corresponding relation; and receiving the bar code information and the communication address sent by the terminal through a wireless communication module.
20. The apparatus of claim 17,
the acquisition module is also used for establishing wireless connection with an upper computer, wherein the upper computer and the lower computer are positioned in the same communication network; and receiving the bar code information and the communication address forwarded by the upper computer through a communication bus.
21. A system for assigning communication addresses of lower computers, the system comprising the terminal according to any one of claims 12 to 14 and the lower computer according to any one of claims 17 to 19.
22. A system for distributing the communication address of the lower computer, wherein the system comprises the terminal of any one of claims 12, 15 and 16, the lower computer of any one of claims 17, 18 and 20, and the upper computer of any one of claims 15, 16 and 20.
CN201810687786.7A 2018-06-28 2018-06-28 Method, device and system for distributing communication addresses of lower computers Active CN108965491B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810687786.7A CN108965491B (en) 2018-06-28 2018-06-28 Method, device and system for distributing communication addresses of lower computers
PCT/CN2018/121587 WO2020000931A1 (en) 2018-06-28 2018-12-17 Method, apparatus and system for allocating communication address of slave computer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810687786.7A CN108965491B (en) 2018-06-28 2018-06-28 Method, device and system for distributing communication addresses of lower computers

Publications (2)

Publication Number Publication Date
CN108965491A CN108965491A (en) 2018-12-07
CN108965491B true CN108965491B (en) 2020-04-28

Family

ID=64487550

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810687786.7A Active CN108965491B (en) 2018-06-28 2018-06-28 Method, device and system for distributing communication addresses of lower computers

Country Status (2)

Country Link
CN (1) CN108965491B (en)
WO (1) WO2020000931A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108965491B (en) * 2018-06-28 2020-04-28 珠海格力电器股份有限公司 Method, device and system for distributing communication addresses of lower computers
CN114462004B (en) * 2022-02-08 2023-08-22 无锡盛景微电子股份有限公司 Method and system for automatically detecting lower-level machine body information in master-slave network

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN206894352U (en) * 2016-10-19 2018-01-16 广东电网有限责任公司佛山供电局 The parameter configuring system of metering automation terminal
CN107733956A (en) * 2016-08-13 2018-02-23 重庆无线绿洲通信技术有限公司 A kind of method and system of address of the determination battery in car networking

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5696805B1 (en) * 2014-03-20 2015-04-08 富士ゼロックス株式会社 Information processing apparatus and program
CN108965491B (en) * 2018-06-28 2020-04-28 珠海格力电器股份有限公司 Method, device and system for distributing communication addresses of lower computers

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107733956A (en) * 2016-08-13 2018-02-23 重庆无线绿洲通信技术有限公司 A kind of method and system of address of the determination battery in car networking
CN206894352U (en) * 2016-10-19 2018-01-16 广东电网有限责任公司佛山供电局 The parameter configuring system of metering automation terminal

Also Published As

Publication number Publication date
WO2020000931A1 (en) 2020-01-02
CN108965491A (en) 2018-12-07

Similar Documents

Publication Publication Date Title
CN109154890B (en) Software updating device and software updating system
CN108039969B (en) Network automatic configuration method, device, system, storage medium and target computer
CN102236561B (en) Terminal, and bootstrap configuration method and bootstrap information processing device for terminal
CN108965491B (en) Method, device and system for distributing communication addresses of lower computers
EP3007515A1 (en) Method, terminal, client, smart card and system for accessing wireless network
CN101364232A (en) Method, terminal and system fro backing-up non-volatile data
CN105338011A (en) Cloud-service-based system configuration method and apparatus, and cloud server
US10602021B2 (en) Authentication setting system and image forming apparatus
CN104932955A (en) Method for backing up data during factory setting restoring of mobile terminal, and mobile terminal
CN102082685A (en) Network configured method and system of embedded device
CN107798078B (en) Billboard data display method and device, computer equipment and storage medium
CN104010102A (en) Communication apparatus, method for controlling communication apparatus
CN112423281A (en) Wireless module upgrading method and device, computer equipment and storage medium
CN104683399A (en) Equipment control system and equipment control method
US7444430B2 (en) Terminal apparatus and control method thereof
CN113238697A (en) Control method and device of electronic control equipment and computer readable storage medium
CN110362575B (en) Method and device for generating global index of data
CN112929226B (en) Test system and method
CN110225097B (en) Information processing method, device and storage medium
CN101068141A (en) Data synchronizing method and device between communication terminal and network communication system
JP4708071B2 (en) Mobile device, pattern file update method, and communication system
CN110533285B (en) Data processing method to be accepted, electronic device and computer readable storage medium
CN114422236A (en) Intelligent device access method and device and electronic device
CN112862040B (en) Multi-unit decryption method, system, device and computer equipment
US20050108408A1 (en) Method and apparatus for setting network

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