CN114115919B - Communication address switching system and method - Google Patents

Communication address switching system and method Download PDF

Info

Publication number
CN114115919B
CN114115919B CN202111461722.3A CN202111461722A CN114115919B CN 114115919 B CN114115919 B CN 114115919B CN 202111461722 A CN202111461722 A CN 202111461722A CN 114115919 B CN114115919 B CN 114115919B
Authority
CN
China
Prior art keywords
internet
domain name
development
name address
router
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
CN202111461722.3A
Other languages
Chinese (zh)
Other versions
CN114115919A (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.)
Sichuan Hongmei Intelligent Technology Co Ltd
Original Assignee
Sichuan Hongmei Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sichuan Hongmei Intelligent Technology Co Ltd filed Critical Sichuan Hongmei Intelligent Technology Co Ltd
Priority to CN202111461722.3A priority Critical patent/CN114115919B/en
Publication of CN114115919A publication Critical patent/CN114115919A/en
Application granted granted Critical
Publication of CN114115919B publication Critical patent/CN114115919B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Medical Informatics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a system and a method for switching communication addresses, wherein the system comprises the following steps: the system comprises Internet of things equipment, at least one routing repeater and at least one execution module; the internet of things device is used for sending a device request to at least one forwarding router through the primary environment domain name address; the primary environment domain name address is embedded in a code pre-burnt by the Internet of things equipment; the forwarding router is used for forwarding equipment requests to a pre-configured secondary environment domain name address when being connected with the Internet of things equipment; wherein, each forwarding router is configured with a secondary environment domain name address, and can be connected to an execution module through each secondary environment domain name address; and the at least one execution module is used for completing data communication of the Internet of things equipment according to the equipment request. The project implementation efficiency can be improved through the scheme.

Description

Communication address switching system and method
Technical Field
The present invention relates to the field of network communications technologies, and in particular, to a system and a method for switching a communication address.
Background
In the internet of things technology, internet of things equipment reports equipment states and messages to a cloud server through a wireless WIFI communication network of a connection router, and the cloud server sends instructions to the equipment to control the equipment, so that the intelligent internet of things is realized. The principle of the whole process is that after the internet of things equipment is communicated with wireless WiFi, a data reporting request is initiated to a cloud server through a domain name address burnt in an equipment circuit board, the cloud server sends instruction data to the domain name address of a monitoring message in the equipment circuit board, and the internet of things equipment and the cloud server realize reporting and issuing of data in the mode, so that interconnection and intercommunication of the internet of things equipment and the cloud server are realized.
However, in the development of the internet of things project, the domain name address of the cloud server is not unchanged, and different domain name addresses are usually corresponding to different project environments. For example, the development stage, the test stage and the formal online stage respectively correspond to different domain addresses. This requires constant modification of domain name addresses during project implementation and then repackaging of the records into the device, which makes project implementation very inefficient.
Disclosure of Invention
The invention provides a system and a method for switching communication addresses, which can improve the efficiency of project implementation.
In a first aspect, an embodiment of the present invention provides a system for switching a communication address, including: the system comprises Internet of things equipment, at least one routing repeater and at least one execution module;
the internet of things device is used for sending a device request to the at least one forwarding router through the primary environment domain name address; the primary environment domain name address is embedded in a code pre-burnt by the Internet of things equipment;
the at least one forwarding router is used for forwarding the equipment request to a pre-configured secondary environment domain name address when the at least one forwarding router is connected with the Internet of things equipment; wherein, each forwarding router is configured with a secondary environment domain name address, and can be connected to an execution module through each secondary environment domain name address;
and the at least one execution module is used for completing the data communication of the Internet of things equipment according to the equipment request.
In one possible implementation, each of the execution modules includes at least one database, and the device request includes: the state data and the message data of the Internet of things equipment;
each execution module is used for storing the state data and the message data of the Internet of things equipment to a database corresponding to the execution module;
and/or the number of the groups of groups,
each execution module is used for sending a device control instruction for controlling the Internet of things device to the Internet of things device through a preconfigured MQTT address.
In one possible implementation, the at least one routing forwarder includes a development router, and the development router is configured with a development environment domain name address therein; the execution module comprises a development module; the at least one database includes a development environment database; wherein the development environment domain name address is connectable to the development module;
the development router is used for forwarding the equipment request to the development environment domain name address when being connected with the Internet of things equipment;
the development module is used for accessing the development environment database and acquiring corresponding function development configuration files from the development environment database.
In one possible implementation, the at least one routing forwarder includes a test router, and the test router is configured with a test environment domain name address therein; the execution module comprises a test module; the at least one database includes a test environment database; wherein the test environment domain name address is connectable to the test module;
the test router is used for forwarding the equipment request to the test environment domain name address when being connected with the Internet of things equipment;
the test module is used for accessing the test environment database and acquiring a corresponding functional test configuration file from the test environment database.
In one possible implementation, after the development and testing of the internet of things device is completed, the internet of things device communicates with any server using the primary environment domain name address.
In a second aspect, an embodiment of the present invention provides a method for switching a communication address of a switching system based on the communication address according to any one of the first aspect, including:
transmitting a device request to at least one forwarding router through a primary environment domain name address by using the Internet of things device; the primary environment domain name address is embedded in a code pre-burnt by the Internet of things equipment;
forwarding the equipment request to a pre-configured secondary environment domain name address by utilizing at least one forwarding router when the equipment is connected with the Internet of things equipment; wherein, each forwarding router is configured with a secondary environment domain name address, and can be connected to an execution module through each secondary environment domain name address;
and completing data communication of the Internet of things equipment according to the equipment request by utilizing at least one execution module.
In one possible implementation, each of the execution modules includes at least one database, and the device request includes: the state data and the message data of the Internet of things equipment;
the data communication of the internet of things device is completed by using at least one execution module according to the device request, and the method comprises the following steps:
for each execution module, storing the state data and the message data of the Internet of things equipment to a database corresponding to the execution module by using the execution module;
and/or the number of the groups of groups,
the method further comprises the steps of:
and aiming at each execution module, transmitting the device control instruction for controlling the Internet of things device to the Internet of things device through the preconfigured MQTT address by utilizing the execution module.
In one possible implementation, the at least one routing forwarder includes a development router, and the development router is configured with a development environment domain name address therein; the execution module comprises a development module; the at least one database includes a development environment database; wherein the development environment domain name address is connectable to the development module;
the forwarding, by the at least one forwarding router, the device request to a pre-configured secondary environment domain name address when connected to the internet of things device, includes:
forwarding the device request to the development environment domain name address by using the development router when the development router is connected with the Internet of things device;
the data communication of the internet of things device is completed by using at least one execution module according to the device request, and the method comprises the following steps:
and accessing the development environment database by using the development module, and acquiring a corresponding function development configuration file from the development environment database.
In one possible implementation, the at least one routing forwarder includes a test router, and the test router is configured with a test environment domain name address therein; the execution module comprises a test module; the at least one database includes a test environment database; wherein the test environment domain name address is connectable to the test module;
the forwarding, by the at least one forwarding router, the device request to a pre-configured secondary environment domain name address when connected to the internet of things device, includes:
forwarding the equipment request to the testing environment domain name address by using a testing router when the testing router is connected with the Internet of things equipment;
the data communication of the internet of things device is completed by using at least one execution module according to the device request, and the method comprises the following steps:
and accessing the test environment database by using the test module, and acquiring a corresponding functional test configuration file from the test environment database.
In one possible implementation manner, after the development and testing of the internet of things device are completed, the method further includes:
and communicating with any server by using the primary environment domain name address by using the Internet of things equipment.
According to the technical scheme, when the Internet of things equipment and the execution modules in different environments are in communication, the Internet of things equipment sends the equipment request to the forwarding router through the primary environment domain name address embedded in the code in advance, one secondary environment domain name address is configured in the forwarding router, and each secondary environment domain name address can be connected to one execution module, so that when the forwarding router is connected with the Internet of things equipment, the forwarding router forwards the equipment request to the secondary environment domain name address configured by the forwarding router, and the corresponding execution module can receive the equipment request sent by the Internet of things equipment, so that data communication of the Internet of things equipment is completed. Therefore, the forwarding router can autonomously realize forwarding of domain addresses in different environments, and embedded codes do not need to be frequently modified when operations in different environments are implemented, so that project implementation efficiency can be improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a communication address switching system according to an embodiment of the present invention;
fig. 2 is a flowchart of a communication address switching method of a communication address-based switching system according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments, and all other embodiments obtained by those skilled in the art without making any inventive effort based on the embodiments of the present invention are within the scope of protection of the present invention.
As before, with the high-speed development of the internet and the internet of things, the internet of things equipment increasingly enters our lives. The internet of things equipment reports equipment states and messages to the cloud server through the wireless WiFi communication network of the connection router, and the cloud server sends instructions to the equipment to control the equipment, so that the intelligent internet of things is realized. The principle of the whole process is that after the internet of things equipment is communicated with wireless WiFi, a data reporting request is initiated to a cloud server through a domain name address burnt in an equipment circuit board, the cloud server sends instruction data to the domain name address of a monitoring message in the equipment circuit board, and the internet of things equipment and the cloud server realize reporting and issuing of data in the mode, so that interconnection and intercommunication of the internet of things equipment and the cloud server are realized.
However, in the development of the internet of things project, the domain name address of the cloud server is not unchanged. For example, in the project development stage, the test stage and the formal online stage, three environments are respectively different, and each environment corresponds to a different domain name address. Therefore, in the project development process, the domain name address on the equipment circuit board needs to be continuously modified so as to realize the service requirements under different environments.
Currently, when the problems are solved, the embedded codes are manually modified, then compiled and packaged again, and then burnt to a circuit board of the internet of things device. The whole process is tedious and complex, time-consuming and error-prone, and when the equipment is more, the process is equivalent to doing a large number of repeated works, and the efficiency is very low.
Based on the above, the routing forwarder is added, and the environment domain name address to be forwarded is preconfigured in each routing forwarder, so that when the internet of things equipment is connected to the corresponding routing forwarder, the internet of things equipment can be correspondingly forwarded to the environment where the internet of things equipment is required to communicate, and corresponding functions such as data communication and the like can be further realized. Therefore, the scheme can realize communication with various environments without frequently modifying the embedded code, and can improve the efficiency of project implementation.
The following describes a system and method for switching communication addresses in further detail.
As shown in fig. 1, an embodiment of the present invention provides a system for switching communication addresses, where the system may include: an internet of things device 101, at least one routing repeater 102 and at least one execution module 103;
the internet of things device 101 is configured to send a device request to at least one forwarding router through a primary environment domain name address; the primary environment domain name address is embedded in a code pre-burnt by the internet of things equipment 101;
at least one forwarding router, configured to forward a device request to a pre-configured secondary environment domain name address when connected to the internet of things device 101; wherein each forwarding router is configured with a secondary environment domain name address and is connectable to an execution module 103 via each secondary environment domain name address;
at least one execution module 103, configured to complete data communication of the internet of things device 101 according to the device request.
In the embodiment of the present invention, when the internet of things device 101 communicates with the execution modules 103 under different environments, it is considered that the internet of things device 101 sends a device request to the forwarding router through the primary environment domain name address embedded in the code in advance, and each secondary environment domain name address is configured in the forwarding router and can be connected to one execution module 103, so when the forwarding router is connected to the internet of things device 101, the forwarding router forwards the device request to the secondary environment domain name address configured by the forwarding router, and thus the corresponding execution module 103 can receive the device request sent by the internet of things device 101, thereby completing the data communication of the internet of things device 101. Therefore, the forwarding router can autonomously realize forwarding of domain addresses in different environments, and embedded codes do not need to be frequently modified when operations in different environments are implemented, so that project implementation efficiency can be improved.
In this embodiment, the internet of things can establish a connection with each routing forwarder 102 through the primary environment domain name address, and each routing forwarder 102 is configured with a secondary environment domain name address to be forwarded, where the secondary environment domain name address can be connected to an implementation environment where the execution module 103 performs a corresponding operation. Therefore, when the internet of things device 101 is connected to the corresponding forwarding router, communication with the corresponding environment can be achieved, that is, frequent code modification is not needed through the scheme, and the code is compiled, packed and burned to the circuit board again. Especially when the internet of things equipment 101 is more, the equipment does not need to be burnt one by one, and the efficiency of project execution can be greatly improved.
In addition, because carelessness or other situations easily occur when the processes of modifying codes, compiling, packing, burning circuit boards and the like are carried out, errors are caused, and once the errors occur, the whole process needs to be carried out again, the time is very long, and even the risk of mass production accidents is possibly generated, so that huge cost is caused. By the scheme, the steps are not needed to be executed when the environment is switched, so that the problems can be effectively solved.
In one possible implementation, each execution module 103 includes at least one database, and the device request includes: status data and message data of the internet of things device 101;
each execution module 103 is configured to store the status data and the message data of the internet of things device 101 to a database corresponding to the execution module 103.
In one possible implementation manner, each execution module 103 is configured to send a device control instruction for controlling the internet of things device 101 to the internet of things device 101 through a preconfigured MQTT address.
As can be seen from the above, each execution module 103 may include a database corresponding to the execution module 103, so that when the internet of things performs data reporting or data acquisition, data interaction can be performed from the database in the execution module 103 under the corresponding environment. And when the execution module 103 may also send the corresponding data in the database to the corresponding internet of things device 101 through the preconfigured MQTT address.
Of course, it is readily understood that each execution module 103 may include a gateway, a service server, and a database therein. The routing forwarder 102 can forward the device request to the gateway through the secondary domain name address, and the gateway can further send the device request to the service server under the execution module 103 through the HTTP protocol or the MQTT protocol, so that the service server can use the database to perform operations such as data storage and acquisition.
In one possible implementation, when the implementation environment is a development environment, then at least one routing forwarder 102 comprises a development router, and the development router is configured with a development environment domain name address; the execution module 103 includes a development module; the at least one database includes a development environment database; wherein the development environment domain name address is capable of being connected to the development module;
a development router for forwarding a device request to a development environment domain name address when connected with the internet of things device 101;
the development module is used for accessing the development environment database and acquiring corresponding function development configuration files from the development environment database.
When the implementation environment is a test environment, at least one routing forwarder 102 comprises a test router, and the test router is configured with a test environment domain name address; the execution module 103 includes a test module; the at least one database comprises a test environment database; wherein the test environment domain name address is capable of being connected to the test module;
the test router is used for forwarding a device request to the test environment domain name address when being connected with the Internet of things device 101;
the testing module is used for accessing the testing environment database and acquiring the corresponding functional testing configuration file from the testing environment database.
It follows that for different implementation environments it corresponds to different forwarding routers and different secondary environment domain name addresses. Thus, when the internet of things device 101 is connected with the development router through the primary environment domain name address, the development router forwards the device request to the development module through the configured development environment domain name address, so that communication with the development module is realized. Similarly, when the internet of things device 101 is connected to the test router through the primary environment domain name address, the test router forwards the device request to the test module through the configured test environment domain name address, so that communication with the test module is achieved.
For example, a formal environment domain name is set in an embedded code of the internet of things device 101, where the formal environment domain name is: prod.iot.com; and then compiling, packaging and burning the device to a circuit board, when the device is connected to a development router, the development router automatically forwards a device request to a server side development environment domain name address dev.iot.com, the state and message data of the device are stored in a development environment database, and the command is issued and sent to the device by an MQTT address configured by the development environment. Similarly, when the device is connected with the test router, the test router also automatically forwards the device request to the test environment domain name address test. After the project development and the test are completed, the cloud code is deployed to the formal environment server, and then the equipment is connected with other routers to access the formal environment domain name address of the server. Therefore, the environment dynamic switching is realized, the embedded code of the equipment is not required to be modified, the recompilation, the packing and the burning are not required, the whole process is not required to be manually participated, the accuracy and the high efficiency of the project are ensured, and the risk of production accidents is also avoided.
After the internet of things device 101 completes development and testing, the internet of things device 101 and any server can communicate by adopting the initial primary environment domain name address. That is, when the internet of things device 101 is connected to any other router after the project is online, the primary environment domain name address of the server side is directly accessed.
Of course, when the scheme is implemented, the router is correspondingly set. For example,
1) Configuring a router to surf the internet, opening a router login page, setting a login password, configuring internet surfing parameters, and connecting to the internet.
2) Setting wireless network, including wireless name, wireless cipher, channel, mode, frequency band bandwidth, signal strength and other parameters.
3) The router forwarder 102 is set, the custom holding domain name is added, the domain name forwarding rule is added, the development router is set, the primary domain name is forwarded to the server side development environment IP address, the test router is set in the same way, and the primary domain name is forwarded to the server side test environment IP address.
4) When the project is in the development stage, the Internet of things equipment 101 is connected with a development router, and the development router automatically forwards the equipment request to a server-side development environment IP address; when the project is in the test stage, the internet of things equipment 101 is connected with a test router, and the test router automatically forwards the equipment request to the server-side test environment IP address.
As shown in fig. 2, the embodiment of the present invention further provides a method for switching a communication address of a switching system based on the communication address provided in any one of the embodiments, where the method may include the following steps:
step 201: transmitting a device request to at least one forwarding router by using the internet of things device 101 through the primary environment domain name address; the primary environment domain name address is embedded in a code pre-burnt by the internet of things equipment 101;
step 202: forwarding a device request to a pre-configured secondary environment domain name address by utilizing at least one forwarding router when the forwarding router is connected with the internet of things device 101; wherein each forwarding router is configured with a secondary environment domain name address, and is capable of being connected to an execution module 103 through each secondary environment domain name address;
step 203: data communication of the internet of things device 101 is accomplished according to the device request using at least one execution module 103.
In one possible implementation, each execution module 103 includes at least one database, and the device request includes: status data and message data of the internet of things device 101;
completing data communication of the internet of things device 101 according to the device request using at least one execution module 103, comprising:
for each execution module 103, storing state data and message data of the internet of things device 101 to a database corresponding to the execution module 103 by using the execution module 103;
in one possible implementation, the method further includes:
for each execution module 103, the execution module 103 is utilized to send a device control instruction for controlling the internet of things device 101 to the internet of things device 101 through a preconfigured MQTT address.
In one possible implementation, the at least one routing forwarder 102 comprises a development router and the development router has a development environment domain name address configured therein; the execution module 103 includes a development module; the at least one database includes a development environment database; wherein the development environment domain name address is capable of being connected to the development module;
forwarding, with at least one forwarding router, a device request to a pre-configured secondary environment domain name address when connected to the internet of things device 101, comprising:
forwarding a device request to a development environment domain name address by using a development router when the development router is connected with the Internet of things device 101;
completing data communication of the internet of things device 101 according to the device request using at least one execution module 103, comprising:
and accessing a development environment database by using the development module, and acquiring a corresponding function development configuration file from the development environment database.
In one possible implementation, the at least one routing forwarder 102 comprises a test router and the test router is configured with a test environment domain name address therein; the execution module 103 includes a test module; the at least one database comprises a test environment database; wherein the test environment domain name address is capable of being connected to the test module;
forwarding, with at least one forwarding router, a device request to a pre-configured secondary environment domain name address when connected to the internet of things device 101, comprising:
forwarding a device request to a test environment domain name address by using a test router when the test router is connected with the Internet of things device 101;
completing data communication of the internet of things device 101 according to the device request using at least one execution module 103, comprising:
and accessing a test environment database by using the test module, and acquiring a corresponding functional test configuration file from the test environment database.
In one possible implementation, after the development and testing of the internet of things device 101 is completed, further comprising:
the internet of things device 101 is utilized to communicate with either server using the primary environment domain name address.
It should be noted that, since the above-mentioned method for switching a communication address is based on the switching system of the communication address, the same concept as that of the switching system of the communication address is based on, and specific details can be found in the related description of the switching system of the communication address of the present invention, and the details are not repeated here.
It should be understood that the structure illustrated in the embodiments of the present invention does not constitute a specific limitation on the switching system of the communication address. In other embodiments of the invention, the switching system of the communication address may comprise more or less components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The content of information interaction and execution process between the modules in the device is based on the same conception as the embodiment of the method of the present invention, and specific content can be referred to the description in the embodiment of the method of the present invention, which is not repeated here.
The embodiment of the invention also provides a computing device, which comprises: at least one memory and at least one processor;
at least one memory for storing a machine readable program;
at least one processor configured to invoke the machine-readable program to perform the method of switching communication addresses in any of the embodiments of the present invention.
Embodiments of the present invention also provide a computer-readable medium storing instructions for causing a computer to perform a method of switching a communication address as herein described. In particular, a method or apparatus provided with a storage medium on which a software program code realizing the functions of any of the above embodiments is stored, and a computer (or CPU or MPU) of the method or apparatus may be caused to read out and execute the program code stored in the storage medium.
In this case, the program code itself read from the storage medium may realize the functions of any of the above-described embodiments, and thus the program code and the storage medium storing the program code form part of the present invention.
Examples of the storage medium for providing the program code include a floppy disk, a hard disk, a magneto-optical disk, an optical disk (e.g., CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD+RW), a magnetic tape, a nonvolatile memory card, and a ROM. Alternatively, the program code may be downloaded from a server computer by a communication network.
Further, it should be apparent that the functions of any of the above-described embodiments may be realized not only by executing the program code read out by the computer, but also by an operation method or the like that causes an operation on the computer based on instructions of the program code to complete a part or all of the actual operations.
The foregoing describes certain embodiments of the present invention. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
The foregoing detailed description of the invention has been presented for purposes of illustration and description, and it should be understood that the foregoing is by way of illustration and description only, and is not intended to limit the scope of the invention.

Claims (8)

1. A system for switching communication addresses, comprising: the system comprises Internet of things equipment, at least one routing repeater and at least one execution module;
the internet of things device is used for sending a device request to the at least one forwarding router through the primary environment domain name address; the primary environment domain name address is embedded in a code pre-burnt by the Internet of things equipment;
the at least one forwarding router is used for forwarding the equipment request to a pre-configured secondary environment domain name address when the at least one forwarding router is connected with the Internet of things equipment; wherein, each forwarding router is configured with a secondary environment domain name address, and can be connected to an execution module through each secondary environment domain name address;
the at least one execution module is used for completing data communication of the Internet of things equipment according to the equipment request;
each of the execution modules includes at least one database, and the device request includes: the state data and the message data of the Internet of things equipment;
each execution module is used for storing the state data and the message data of the Internet of things equipment to a database corresponding to the execution module;
and/or the number of the groups of groups,
each execution module is used for sending a device control instruction for controlling the Internet of things device to the Internet of things device through a preconfigured MQTT address.
2. The system of claim 1, wherein the at least one routing forwarder comprises a development router and wherein the development router is configured with a development environment domain name address; the execution module comprises a development module; the at least one database includes a development environment database; wherein the development environment domain name address is connectable to the development module;
the development router is used for forwarding the equipment request to the development environment domain name address when being connected with the Internet of things equipment;
the development module is used for accessing the development environment database and acquiring corresponding function development configuration files from the development environment database.
3. The system of claim 1, wherein the at least one routing repeater comprises a test router having a test environment domain name address configured therein; the execution module comprises a test module; the at least one database includes a test environment database; wherein the test environment domain name address is connectable to the test module;
the test router is used for forwarding the equipment request to the test environment domain name address when being connected with the Internet of things equipment;
the test module is used for accessing the test environment database and acquiring a corresponding functional test configuration file from the test environment database.
4. A system according to any one of claims 1 to 3, wherein the internet of things device communicates with any server using the primary environment domain name address after the internet of things device has been developed and tested.
5. A switching method of a communication address of a switching system based on the communication address according to claims 1 to 4, characterized by comprising:
transmitting a device request to at least one forwarding router through a primary environment domain name address by using the Internet of things device; the primary environment domain name address is embedded in a code pre-burnt by the Internet of things equipment;
forwarding the equipment request to a pre-configured secondary environment domain name address by utilizing at least one forwarding router when the equipment is connected with the Internet of things equipment; wherein, each forwarding router is configured with a secondary environment domain name address, and can be connected to an execution module through each secondary environment domain name address;
completing data communication of the Internet of things equipment according to the equipment request by utilizing at least one execution module;
each of the execution modules includes at least one database, and the device request includes: the state data and the message data of the Internet of things equipment;
the data communication of the internet of things device is completed by using at least one execution module according to the device request, and the method comprises the following steps:
for each execution module, storing the state data and the message data of the Internet of things equipment to a database corresponding to the execution module by using the execution module;
and/or the number of the groups of groups,
the method further comprises the steps of:
and aiming at each execution module, transmitting the device control instruction for controlling the Internet of things device to the Internet of things device through the preconfigured MQTT address by utilizing the execution module.
6. The method of claim 5, wherein the at least one routing forwarder comprises a development router and wherein the development router has a development environment domain name address configured therein; the execution module comprises a development module; the at least one database includes a development environment database; wherein the development environment domain name address is connectable to the development module;
the forwarding, by the at least one forwarding router, the device request to a pre-configured secondary environment domain name address when connected to the internet of things device, includes:
forwarding the device request to the development environment domain name address by using the development router when the development router is connected with the Internet of things device;
the data communication of the internet of things device is completed by using at least one execution module according to the device request, and the method comprises the following steps:
and accessing the development environment database by using the development module, and acquiring a corresponding function development configuration file from the development environment database.
7. The method of claim 5, wherein the at least one routing repeater comprises a test router having a test environment domain name address configured therein; the execution module comprises a test module; the at least one database includes a test environment database; wherein the test environment domain name address is connectable to the test module;
the forwarding, by the at least one forwarding router, the device request to a pre-configured secondary environment domain name address when connected to the internet of things device, includes:
forwarding the equipment request to the testing environment domain name address by using a testing router when the testing router is connected with the Internet of things equipment;
the data communication of the internet of things device is completed by using at least one execution module according to the device request, and the method comprises the following steps:
and accessing the test environment database by using the test module, and acquiring a corresponding functional test configuration file from the test environment database.
8. The method of any of claims 5 to 7, further comprising, after the internet of things device has completed development and testing:
and communicating with any server by using the primary environment domain name address by using the Internet of things equipment.
CN202111461722.3A 2021-12-02 2021-12-02 Communication address switching system and method Active CN114115919B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111461722.3A CN114115919B (en) 2021-12-02 2021-12-02 Communication address switching system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111461722.3A CN114115919B (en) 2021-12-02 2021-12-02 Communication address switching system and method

Publications (2)

Publication Number Publication Date
CN114115919A CN114115919A (en) 2022-03-01
CN114115919B true CN114115919B (en) 2023-10-31

Family

ID=80365631

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111461722.3A Active CN114115919B (en) 2021-12-02 2021-12-02 Communication address switching system and method

Country Status (1)

Country Link
CN (1) CN114115919B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115987776A (en) * 2022-11-30 2023-04-18 四川虹美智能科技有限公司 Method for realizing environment separation on intelligent convergence platform by using router

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101043428A (en) * 2006-05-30 2007-09-26 华为技术有限公司 Routing retransmitting method and system
WO2018036746A1 (en) * 2016-08-24 2018-03-01 British Telecommunications Public Limited Company Data network address sharing
CN108965059A (en) * 2018-07-26 2018-12-07 深圳市吉祥腾达科技有限公司 Router DNS forwarding performance test method
CN109510751A (en) * 2018-12-19 2019-03-22 迈普通信技术股份有限公司 A kind of message forwarding method and routing device
CN111245914A (en) * 2020-01-06 2020-06-05 北京松果电子有限公司 Analog communication method and device of terminal equipment and storage medium
CN111277457A (en) * 2020-01-15 2020-06-12 平安银行股份有限公司 Method, device and equipment for switching network environment and readable storage medium
WO2021004144A1 (en) * 2019-07-11 2021-01-14 广东美的制冷设备有限公司 Domain name resolution method, domain name resolution device, household appliance, and storage medium
CN113381906A (en) * 2021-05-19 2021-09-10 郑州信大捷安信息技术股份有限公司 Restrictive external network access test method based on government and enterprise system business
CN113709256A (en) * 2021-09-09 2021-11-26 四川虹美智能科技有限公司 Switching method of test environment and application environment
CN113704136A (en) * 2021-11-01 2021-11-26 深圳市明源云科技有限公司 Test environment generation method, device, equipment and computer readable storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20210081309A1 (en) * 2019-09-13 2021-03-18 TestRigor, Inc. Mapping interactive elements in an application user interface

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101043428A (en) * 2006-05-30 2007-09-26 华为技术有限公司 Routing retransmitting method and system
WO2018036746A1 (en) * 2016-08-24 2018-03-01 British Telecommunications Public Limited Company Data network address sharing
CN108965059A (en) * 2018-07-26 2018-12-07 深圳市吉祥腾达科技有限公司 Router DNS forwarding performance test method
CN109510751A (en) * 2018-12-19 2019-03-22 迈普通信技术股份有限公司 A kind of message forwarding method and routing device
WO2021004144A1 (en) * 2019-07-11 2021-01-14 广东美的制冷设备有限公司 Domain name resolution method, domain name resolution device, household appliance, and storage medium
CN111245914A (en) * 2020-01-06 2020-06-05 北京松果电子有限公司 Analog communication method and device of terminal equipment and storage medium
CN111277457A (en) * 2020-01-15 2020-06-12 平安银行股份有限公司 Method, device and equipment for switching network environment and readable storage medium
CN113381906A (en) * 2021-05-19 2021-09-10 郑州信大捷安信息技术股份有限公司 Restrictive external network access test method based on government and enterprise system business
CN113709256A (en) * 2021-09-09 2021-11-26 四川虹美智能科技有限公司 Switching method of test environment and application environment
CN113704136A (en) * 2021-11-01 2021-11-26 深圳市明源云科技有限公司 Test environment generation method, device, equipment and computer readable storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
NoC Router Lifetime Improvement using Per-Port Router Utilization;Scott Lerner 等;《2018 IEEE International Symposium on Circuits and Systems (ISCAS)》;1-5 *
物联网寻址安全关键技术研究;汪胡青;《中国博士学位论文全文数据库 信息科技辑》;I136-13 *

Also Published As

Publication number Publication date
CN114115919A (en) 2022-03-01

Similar Documents

Publication Publication Date Title
CN110032512B (en) Debugging method of small program, related equipment and terminal
CN109474936B (en) Internet of things communication method and system applied among multiple lora gateways
CN110677829B (en) LTE-V2X test system and test method for long term evolution vehicle to everything
CN111726399A (en) Docker container secure access method and device
CN109040207B (en) Method, device and equipment for accessing user mode network file system
CN112333019B (en) Router configuration and test method and system and readable storage medium
CN114115919B (en) Communication address switching system and method
WO2017113848A1 (en) Testing method, testing platform and simulated testing device for test case
CN105245382A (en) Router configuration information modifying method and device
CN113296859A (en) Page loading method and device, storage medium and electronic device
CN101964923A (en) Configuration system and method for interactive commands
KR20220006605A (en) Cloud communication method and device, user device, network device
CN112073553B (en) Network address translation type detection method, device, equipment and storage medium
CN116028331A (en) Configuration file generation method and framework construction method for middleware test
CN110784391B (en) Method, device, storage medium and terminal for communication between small base station and gateway
US20220312211A1 (en) System and device for verifying function of radio base station
CN114490746B (en) Equipment testing method and device, equipment to be tested and storage medium
CN105208072A (en) Remote control method and device of virtual switch
CN114297083A (en) Agent test method, device, electronic equipment and readable medium
CN113676471A (en) Cross-node communication method, system, medium and electronic device based on container cloud platform
CN111082984A (en) Method and device for simulating login of network equipment to carry out command line interaction
Piao et al. The real implementation of NDN forwarding strategy on Android smartphone
Schottelius High speed nat64 with p4
US11729290B1 (en) Intelligent multicast proxy between container and outside network
CN113918326B (en) Method and device for processing request

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