CN116155918B - Device connection method and device for carrying optoelectronic module - Google Patents

Device connection method and device for carrying optoelectronic module Download PDF

Info

Publication number
CN116155918B
CN116155918B CN202310122032.8A CN202310122032A CN116155918B CN 116155918 B CN116155918 B CN 116155918B CN 202310122032 A CN202310122032 A CN 202310122032A CN 116155918 B CN116155918 B CN 116155918B
Authority
CN
China
Prior art keywords
communication
connection
equipment
data packet
target
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
CN202310122032.8A
Other languages
Chinese (zh)
Other versions
CN116155918A (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.)
Xunyun Electronic Technology Zhongshan Co ltd
Original Assignee
Xunyun Electronic Technology Zhongshan 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 Xunyun Electronic Technology Zhongshan Co ltd filed Critical Xunyun Electronic Technology Zhongshan Co ltd
Priority to CN202310122032.8A priority Critical patent/CN116155918B/en
Publication of CN116155918A publication Critical patent/CN116155918A/en
Application granted granted Critical
Publication of CN116155918B publication Critical patent/CN116155918B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • H04L63/0478Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload applying multiple layers of encryption, e.g. nested tunnels or encrypting the content with a first key and then with at least a second key
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Abstract

The application discloses a device connection method and a device for carrying an optoelectronic module, wherein the method comprises the following steps: after receiving the task information of the user, acquiring device data of a target device for executing the task from the task information, wherein the device data comprises: the number of devices, the device communication format, and the device characteristics; constructing a communication local area network corresponding to the communication format based on the equipment communication format and the equipment, and generating a plurality of connection data packets according to the number of the equipment; and encapsulating the connection data packets according to the device characteristics to obtain encapsulated data packets, and synchronously transmitting a plurality of encapsulated data packets to the target device through the communication local area network so as to establish communication connection. The application can extract the equipment data from the task information after receiving the task information of the user, respectively construct the communication local area network and the connection data packet based on the equipment data, and synchronously establish communication connection with a plurality of devices by utilizing the communication local area network and the connection data packet so as to simplify the flow of communication connection, shorten the connection time length and improve the communication efficiency.

Description

Device connection method and device for carrying optoelectronic module
Technical Field
The present application relates to the technical field of device communication connection, and in particular, to a device connection method and apparatus for carrying an optoelectronic module.
Background
Devices on which an optoelectronic module (also called an optical module) is mounted may convert an electrical signal into an optical signal through the optoelectronic module, and then transmit the optical signal through an optical fiber and convert the optical signal into an electrical signal to realize data transmission.
There are various devices for mounting optoelectronic modules, for example: laser cutting machine, numerical control gear grinding machine, sander or full-automatic cleaning machine, etc. When each device performs full-automatic linkage operation, communication detection is required to be performed on the connection object, and connection is established and data transmission is performed after the object is determined to meet the requirements. The current common method is to send communication data packets to each transmission object one by one, if the communication data packet returned by the transmission object has the mark of the current device, the connected transmission object is determined to meet the connection requirement, and the two parties establish connection and perform data interaction. And after all the connection objects are connected, starting to execute the operation task.
However, the currently used method has the technical problems that: the equipment objects required by each work or execution task are different, the number of the equipment to be connected is also different, if the equipment objects are connected with each equipment one by one, the time consumption is long, the efficiency is low, and the work progress is delayed.
Disclosure of Invention
The application provides a device connection method and a device for carrying an optoelectronic module, wherein after task information is received, a local area network for communication with devices is constructed according to the task information, and communication is established between the local area network and a plurality of devices, so that the communication connection flow is simplified, the connection time is shortened, and the communication efficiency is improved.
A first aspect of an embodiment of the present application provides a device connection method for mounting an optoelectronic module, the method including:
after receiving task information uploaded by a user, acquiring device data of target devices for executing tasks from the task information, wherein the device data comprises: the number of devices, the device communication format, and the device characteristics;
constructing a communication local area network corresponding to the communication format based on the equipment communication format and the equipment, and generating a plurality of connection data packets according to the number of the equipment;
and encapsulating the connection data packet according to the equipment characteristics to obtain an encapsulated data packet, and synchronously transmitting a plurality of encapsulated data packets to the target equipment through the communication local area network so that the target equipment can establish communication connection by adopting the encapsulated data packet.
In a possible implementation manner of the first aspect, the device features include: a device chromaticity value;
the step of encapsulating the connection data packet according to the device characteristics to obtain an encapsulated data packet includes:
randomly generating a first encryption value by utilizing the device chromaticity value, and transmitting the first encryption value to corresponding target devices;
after a second encryption value fed back is obtained, a first encryption key is generated based on the first encryption value and the second encryption value, wherein the second encryption value is a value randomly generated by target equipment after receiving the first encryption value;
and encapsulating the connection data packet by adopting the first encryption key to obtain an encapsulated data packet.
In a possible implementation manner of the first aspect, the device features include: task execution sequence number;
the step of encapsulating the connection data packet according to the device characteristics to obtain an encapsulated data packet includes:
acquiring the equipment model of the target equipment;
generating a second encryption key by adopting the equipment model and the task execution sequence number;
and encapsulating the connection data packet by adopting the second encryption key to obtain an encapsulated data packet.
In a possible implementation manner of the first aspect, the constructing a communication local area network of a corresponding communication format based on the device communication format and a device includes:
generating a communication data packet according to the equipment communication format, and sending the communication data packet to target equipment;
acquiring a communication node fed back by target equipment, wherein the communication node is a node of a communication module arranged in the target equipment, and the communication module has an RF communication mode and an HPLC communication mode;
and constructing a communication local area network with mixed heterogeneous by adopting the communication nodes.
In a possible implementation manner of the first aspect, the sending, by the communication local area network, the plurality of encapsulated packets to the target device synchronously includes:
determining a plurality of communication paths contained in the communication local area network;
and transmitting a plurality of encapsulated data packets to a target device concurrently based on a plurality of the communication paths.
In a possible implementation manner of the first aspect, before the step of concurrently transmitting a plurality of the encapsulated data packets to a target device based on a plurality of the communication paths, the method further includes:
calculating the data transmission time length of the communication path;
if the data transmission time length is longer than the preset time length, determining adjacent communication nodes of the corresponding nodes of the target equipment;
an alternate path is generated based on the adjacent communication nodes and the communication path is replaced with the alternate path.
In a possible implementation manner of the first aspect, after the step of sending, through the communication local area network, a plurality of the encapsulated data packets to a target device in synchronization, so that the target device establishes a communication connection using the encapsulated data packets, the method further includes:
task information of a plurality of target devices is obtained, wherein the task information is progress information of the target devices after communication connection is established and tasks are executed;
and constructing a task schedule by adopting a plurality of task information, and visually displaying the task schedule for a user to check.
A second aspect of an embodiment of the present application provides a device connection apparatus for mounting an optoelectronic module, the apparatus comprising:
the device data acquisition module is used for acquiring device data of target devices for executing tasks from task information after receiving the task information uploaded by a user, wherein the device data comprises: the number of devices, the device communication format, and the device characteristics;
the construction and generation module is used for constructing a communication local area network corresponding to the communication format based on the equipment communication format and the equipment, and generating a plurality of connection data packets according to the number of the equipment;
and the connection module is used for encapsulating the connection data packet according to the equipment characteristics to obtain an encapsulated data packet, and synchronously transmitting a plurality of encapsulated data packets to the target equipment through the communication local area network so that the target equipment can establish communication connection by adopting the encapsulated data packet.
Compared with the prior art, the device connection method and the device for carrying the optoelectronic module provided by the embodiment of the application have the beneficial effects that: the application can extract the equipment data from the task information after receiving the task information of the user, respectively construct the communication local area network and the connection data packet based on the equipment data, and synchronously establish communication connection with a plurality of devices by utilizing the communication local area network and the connection data packet so as to simplify the flow of communication connection, shorten the connection time length and improve the communication efficiency.
Drawings
FIG. 1 is a flow chart of a method for connecting devices with optoelectronic modules according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a device connection apparatus for mounting an optoelectronic module according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
When the equipment carrying the optoelectronic module is controlled to execute work each time, connection needs to be established with each equipment one by one, the operation time is long, the efficiency is low, and the work progress is delayed.
In order to solve the above-mentioned problems, a device connection method for mounting an optoelectronic module according to an embodiment of the present application will be described and illustrated in detail by the following specific examples.
Referring to fig. 1, a flow chart of a device connection method for mounting an optoelectronic module according to an embodiment of the present application is shown.
In an embodiment, the method is applicable to a control system, where the control system may be disposed on an intelligent terminal or a cloud platform or a computer, where the intelligent terminal or the cloud platform or the computer may be in communication connection with each device, and a user may interact with the intelligent terminal or the cloud platform or the computer, and send task information to each device through interaction operation, so as to control each device to perform work.
The equipment can be a laser cutting machine, a numerical control gear grinding machine, a sanding machine and the like.
The device connection method for carrying the optoelectronic module may include:
s11, after receiving task information uploaded by a user, acquiring device data of target devices for executing tasks from the task information, wherein the device data comprises: number of devices, device communication format, device characteristics.
The user may upload task information, which may include parameters of each device performing tasks, execution time, device model number, number of devices, and the like. After the task information is acquired, the number of devices involved in the task, the communication format of each device, the characteristics of the devices and other device data can be extracted from the task information, so that communication connection can be established between each device data and the device to control the device to execute corresponding task operation.
S12, constructing a communication local area network corresponding to the communication format based on the equipment communication format and the equipment, and generating a plurality of connection data packets according to the number of the equipment.
In an embodiment, the communication local area network may be a communication network of each device involved in the task, and by establishing the communication local area network, each device may communicate with the intelligent terminal or the cloud platform or the computer, so that the platform or the terminal may conveniently regulate and control each device and send information.
In an embodiment, after the communication lan is established, a plurality of connection data packets for connecting to each device may be correspondingly generated according to the number of devices, and the communication connection may be established with each device through the connection data packet determining system or the terminal.
In an alternative embodiment, in order to be able to establish a stable and reliable communication local area network, step S12 may comprise the following sub-steps, as an example:
s121, generating a communication data packet according to the device communication format, and sending the communication data packet to a target device.
S122, acquiring a communication node fed back by the target device, wherein the communication node is a node of a communication module arranged in the target device, and the communication module has an RF communication mode and an HPLC communication mode.
S123, constructing a communication local area network by adopting the communication nodes to form a hybrid heterogeneous communication local area network.
In an embodiment, there may be multiple devices, and the communication data packets may be first generated one by one according to the device communication format corresponding to the devices. For example, there are 5 devices, and 5 communication data packets can be generated; these 5 communication data packets may then be sent to the corresponding devices, respectively.
After receiving the communication data packet, the device may acquire the communication node of the communication module built therein, and may then feed back the communication node of the communication module built therein to the system or the terminal. The communication module arranged in the device has two communication modes, namely an RF communication mode and an HPLC communication mode. The feedback node may be a node of the device in the RF communication mode or a node of the HPLC communication mode.
Finally, the communication nodes using the respective devices can be constructed as a communication local area network. Since the nodes of the feedback comprise an RF communication mode and an HPLC communication mode, the generated communication local area network also comprises the two communication modes, and thus the constructed communication local area network is hybrid heterogeneous.
In an alternative embodiment, after constructing a communication local area network that forms a hybrid dual-mode heterogeneous of HPLC and RF, a central node within the network may be configured to manage the hybrid of the whole network and contain a routing table of multiple communication paths. And when the network source node needs to send data, a plurality of available paths from the source node to the destination node are searched according to the mixed multipath routing table to carry out multipath concurrent transmission, so that the mixed dual-mode heterogeneous field network multipath concurrent transmission can be realized, the mixed mutual and advantages of two communication modes of HPLC and RF are fully exerted, and the communication rate in the network, the transmission efficiency of data transmission and the reliability are effectively improved.
It should be noted that, the communication module of the present embodiment may be a module having a high-speed power line broadband carrier communication capability and a micro-power wireless communication capability. In a specific implementation, the communication module mainly comprises a Main Control Unit (MCU), an HPLC part circuit and an RF part circuit, wherein the Main Control Unit (MCU) is a control core of the communication module and mainly runs dual-mode protocol and application layer software, and SDRAM and FLASH are used as storage components of programs and data. The HPLC part circuit mainly comprises a carrier communication chip, a line driver, a band-pass filter and a slightly-matched transformer, wherein the carrier communication chip can specifically select a chip supporting a multi-carrier orthogonal frequency division multiplexing technology; the line driver is used for amplifying the transmitted analog signal, the band-pass filter is used for filtering the received analog signal, and the coupling transformer is used for coupling the bidirectional analog signal and the power line. The RF part circuit comprises a radio frequency chip, an impedance matching circuit and a signal transmitting antenna. The main control unit can communicate with the main components in an SPI mode, and supports the communication of a DL/T645 protocol and the collector or the concentrator in a UART mode, so that functions of data reading, control and the like are realized.
In addition, the communication module of the embodiment may specifically adopt a four-layer architecture communication protocol, where the communication protocol may include an application layer, a heterogeneous network layer, a data link layer, and a physical layer, where the application layer replaces RF and HPLC ports with a unified and abstract "data channel" so that the communication status of the application layer is consistent; the heterogeneous network layer realizes network networking and maintenance, route management and aggregation and distribution of application layer messages, stores and dynamically refreshes a route table; the data link layer defines an RF link MAC layer and an HPLC link MAC layer, wherein the RF link MAC layer is specifically a carrier sense multiple access and time division multiple access control mechanism with collision avoidance, and the HPLC link MAC layer is specifically used for competing physical channels through the carrier sense multiple access and the time division multiple access; the physical layer defines an RF link PHY (physical layer) and an HPLC link PHY (physical layer), the RF link PHY layer includes frequency resources, output power, modulation mode, data channel coding mode, channel switching method and the like required for radio communication, and the HPLC link PHY layer is used for realizing modulation of a broadband carrier signal and coupling to a communication connection line, and receiving the communication connection line broadband carrier signal and demodulating the communication connection line broadband carrier signal into a data message. The application layer can specifically communicate with each device through a 485 bus by adopting a DL/T645i protocol.
And S13, packaging the connection data packet according to the equipment characteristics to obtain a packaged data packet, and synchronously transmitting a plurality of packaged data packets to the target equipment through the communication local area network so that the target equipment can establish communication connection by adopting the packaged data packet.
In one embodiment, to determine that the connection packet is sent to the corresponding device, the connection packet may be encapsulated encrypted using the device characteristics to generate an encapsulated packet. And then the encapsulated data packet is sent to the corresponding target equipment through the communication local area network.
After receiving the encapsulated data packet, the target device can decapsulate the encapsulated data packet to obtain a connection data packet, read data in the connection data packet, and feed back a corresponding connection response, so that a system or a terminal can establish communication with each device.
In one of these embodiments, the device features include: device chromaticity values.
The device chromaticity value may specifically be a chromaticity value corresponding to a device color, which is one of the characteristics of the device, and the encryption key may be generated by using the characteristics, so that the device chromaticity value may be encapsulated by using the encryption key.
As an example, step S13 may include the following sub-steps:
s21, randomly generating a first encryption value by using the device chromaticity value, and sending the first encryption value to a corresponding target device.
S22, after a second encryption value fed back is obtained, a first encryption key is generated based on the first encryption value and the second encryption value, wherein the second encryption value is a value randomly generated by target equipment after receiving the first encryption value.
S23, the connection data packet is packaged by adopting the first encryption key to obtain a packaged data packet.
In a specific implementation manner, after the device chromaticity value is obtained, a value corresponding to the device chromaticity value may be used as the first encryption value; or multiplying the device chromaticity value by a randomly generated positive number to obtain a first encryption value; the specific mode can also be adjusted according to actual needs.
The first encryption value may then be provided to the target device. The target device may randomly generate a second encryption value and give the second encryption value to the system. Wherein the second encryption value may be a value randomly generated by the target device.
It should be noted that, the target device randomly generates the second encrypted value in the same format as the first encrypted value. For example, the first encryption value is a value of 8 bytes and the second encryption value is a value of 8 bytes. If the first encryption value is a 16 byte value, the second encryption value is also a 16 byte value.
The system or terminal may employ the first encryption value and the second encryption value to generate a first encryption key. The specific generation mode can be addition, subtraction, multiplication or division of two encryption values, and the specific calculation mode can be adjusted according to actual needs.
Let a first encryption value be a and a second encryption value be B. The first encryption key C1 may be obtained by adding the first encryption value a and the second encryption value B.
Meanwhile, the target device may add the first encryption value a and the second encryption value B to obtain a key for decryption.
The system can use the secret key to encapsulate the connection data packet to obtain an encapsulated data packet, and finally send the encapsulated data packet to the target device. The target device may decapsulate the encapsulated data packet based on the key it generated for decryption to extract the data within the data packet.
Because the system and the device both use the first encryption value and the second encryption value to generate the corresponding encryption key and decryption key, and the generated encryption algorithm is the same, the keys are the same.
After reading the encrypted encapsulated data packet, the same encryption key may be used to decrypt the encapsulated data packet, thereby obtaining the final data.
If the data is stolen in the transmission process, the encryption algorithm cannot be known because the randomly generated encryption value cannot be known, the encryption key cannot be obtained, and the data in the package data packet cannot be read, so that the safety of the data and the information is improved.
In one of these embodiments, the device features include: task execution sequence number.
The task execution sequence number is specifically the sequence in which the device executes in the task.
For example, there are 5 devices for the present task, F, I, V, E, S. Each device performs a first to process sequence, the order of execution being F, I, V, E, S from start to end, respectively. Correspondingly, the task execution sequence number of the F device is 1, the task execution sequence number of the I device is 2, the task execution sequence number of the V device is 3, and so on.
Assuming that the device performs two processes, the sequence numbers of the two processes may be added to obtain the task execution sequence number of the device.
In the above example, 5 devices related to the present task are F, I, V, E, S. The execution sequence is F, I, V, E, S, E, I, V from the beginning to the end, respectively. For the second device I, the steps performed are the second and seventh steps, respectively, with corresponding sequence numbers of 2 and 7, respectively. 2 and 7 may be added together to give 9 a task execution sequence number for the second device I.
As an example, step S13 may include the following sub-steps:
s31, acquiring the device model of the target device.
S32, generating a second encryption key by adopting the equipment model and the task execution sequence number.
And S33, packaging the connection data packet by adopting the second encryption key to obtain a packaged data packet.
In a specific implementation, the equipment model can be the encapsulation model of the equipment, and also can be the production model of the corresponding model of the equipment.
The second encryption key may be generated by adding, subtracting, multiplying, or dividing the two values of the device model number and the task execution sequence number. The equipment model number and the task execution sequence number can also be substituted into a preset numerical conversion formula to be calculated, so that the second encryption key is obtained. The specific generation mode can be adjusted according to actual needs.
And finally, the connection data packet can be encapsulated by adopting the second encryption key to obtain an encapsulated data packet.
Because the device itself stores the corresponding model and the related data for executing the task (specifically, the related data may be the data input by the user into the device before executing the task, and the execution sequence of the task device is included). The device may generate a decrypted key based on the device model and the task execution sequence number, and after receiving the encapsulated packet, may decrypt the encapsulated packet based on the decrypted key, thereby extracting corresponding data to execute a subsequent task.
In order to synchronously control the individual devices to perform tasks, in an alternative embodiment, step S13 may comprise the sub-steps of:
s131, determining a plurality of communication paths contained in the communication local area network.
And S132, transmitting a plurality of encapsulated data packets to the target device based on a plurality of communication paths.
In one embodiment, each device may correspond to one or more communication paths within a communication local area network. The system can be in communication connection with one piece of equipment through one or more communication paths, so that stable communication between the system and the equipment is ensured, and the condition of communication interruption is avoided.
In this embodiment, the communication device includes a plurality of communication paths, and one communication path may be arbitrarily selected from the plurality of communication paths corresponding to each device, thereby obtaining a plurality of communications.
Then, multiple encapsulated data packets can be simultaneously transmitted to multiple target devices through multiple communication paths, so that the effect of multi-device communication is achieved.
In order to avoid the situation that the transmission speed of the communication path may be slow and the current transmission requirement is difficult to meet when the communication path is screened, in an alternative embodiment, before step S132, the method may further include the following steps:
s41, calculating the data transmission time length of the communication path.
And S42, if the data transmission time period is longer than the preset time period, determining adjacent communication nodes of the corresponding nodes of the target equipment.
S43, generating an alternative path based on the adjacent communication nodes, and replacing the communication path by the alternative path.
In this embodiment, after the communication path corresponding to the device is selected, the data transmission duration of the currently selected communication path may be calculated, and then it is determined whether the data transmission duration of the communication path is greater than a preset duration, and if the data transmission duration is greater than the preset duration, it is indicated that the currently selected communication path does not meet the requirement.
Since each device may correspond to multiple communication paths, each path corresponds to a node. The communication nodes of the adjacent paths can be obtained, the communication paths corresponding to the adjacent communication nodes are taken as replacement paths, and the replacement paths are adopted to replace the currently selected communication paths.
In yet another alternative embodiment, it may also be determined whether the data transmission duration of the current alternative path is longer than a preset duration, and if so, the next adjacent communication path may be selected again until a communication path with a data transmission duration shorter than the preset duration is found.
In yet another alternative embodiment, the data transmission duration of each communication path may be calculated from the remaining communication paths except the currently selected communication path, and then the data transmission duration with the smallest value is selected from the remaining plurality of data transmission durations, so that the communication path with the highest transmission speed is selected.
By screening the communication path with the optimal transmission speed, the efficiency of the subsequent data transmission can be effectively improved.
In an alternative embodiment, after each device receives the encapsulated data packet and decapsulates the encapsulated data packet to extract the instruction or data to execute the task, each device may be in a different task stage, and the first device may be operated, and the second device starts to execute, so as to facilitate a technician or a user to view the real-time status of the task executed by the device, where, by way of example, the method may further include the following steps:
s14, task information of a plurality of target devices is obtained, wherein the task information is progress information of the target devices after communication connection is established and tasks are executed.
S15, constructing a task schedule by adopting a plurality of task information, and visually displaying the task schedule for a user to check.
Specifically, the task information may be status information recorded about task execution progress after the device decapsulates the encapsulated data packet to obtain a connection data packet, establishes a communication connection using the connection data packet, and executes the task.
In one embodiment, the task information of each device may be acquired, and then a plurality of task information may be arranged in the order received or in accordance with the signals of the devices, thereby constructing a corresponding task schedule.
Finally, the task schedule can be visually displayed and can be viewed by a user.
The method and the device have the advantages that if the method and the device are applied to the user terminal, the task schedule can be directly visualized and displayed in the user terminal; if the method is applied to the cloud system, the cloud system can send the task schedule and the preset visual rendering format to a user terminal of a technician or a user, so that the user terminal can visually display the task schedule according to the visual rendering format.
In this embodiment, the present application provides a device connection method for carrying an optoelectronic module, which has the following beneficial effects: the application can extract the equipment data from the task information after receiving the task information of the user, respectively construct the communication local area network and the connection data packet based on the equipment data, and synchronously establish communication connection with a plurality of devices by utilizing the communication local area network and the connection data packet so as to simplify the flow of communication connection, shorten the connection time length and improve the communication efficiency.
The embodiment of the application also provides a device connecting device for carrying the optoelectronic module, and referring to fig. 2, a schematic structural diagram of the device connecting device for carrying the optoelectronic module is shown.
The device connection apparatus on which the optoelectronic module is mounted may include, for example:
the obtaining module 201 is configured to obtain, after receiving task information uploaded by a user, device data of a target device that performs a task from the task information, where the device data includes: the number of devices, the device communication format, and the device characteristics;
a construction and generation module 202, configured to construct a communication local area network corresponding to the communication format based on the device communication format and the devices, and generate a plurality of connection data packets according to the number of the devices;
and the connection module 203 is configured to encapsulate the connection data packet according to the device characteristics to obtain an encapsulated data packet, and synchronously send a plurality of encapsulated data packets to a target device through the communication local area network, so that the target device establishes communication connection by using the encapsulated data packet.
Optionally, the device features include: a device chromaticity value;
the connection module is further used for:
randomly generating a first encryption value by utilizing the device chromaticity value, and transmitting the first encryption value to corresponding target devices;
after a second encryption value fed back is obtained, a first encryption key is generated based on the first encryption value and the second encryption value, wherein the second encryption value is a value randomly generated by target equipment after receiving the first encryption value;
and encapsulating the connection data packet by adopting the first encryption key to obtain an encapsulated data packet.
Optionally, the device features include: task execution sequence number;
the connection module is further used for:
acquiring the equipment model of the target equipment;
generating a second encryption key by adopting the equipment model and the task execution sequence number;
and encapsulating the connection data packet by adopting the second encryption key to obtain an encapsulated data packet.
Optionally, the building and generating module is further configured to:
generating a communication data packet according to the equipment communication format, and sending the communication data packet to target equipment;
acquiring a communication node fed back by target equipment, wherein the communication node is a node of a communication module arranged in the target equipment, and the communication module has an RF communication mode and an HPLC communication mode;
and constructing a communication local area network with mixed heterogeneous by adopting the communication nodes.
Optionally, the connection module is further configured to:
determining a plurality of communication paths contained in the communication local area network;
and transmitting a plurality of encapsulated data packets to a target device concurrently based on a plurality of the communication paths.
Optionally, the apparatus further comprises:
the calculation module is used for calculating the data transmission time length of the communication path;
a replacing module, configured to determine an adjacent communication node of a node corresponding to the target device if the data transmission time period is longer than a preset time period;
an alternate path is generated based on the adjacent communication nodes and the communication path is replaced with the alternate path.
Optionally, the apparatus further comprises:
the task progress module is used for acquiring task information of a plurality of target devices, wherein the task information is progress information of the target devices after communication connection is established and tasks are executed;
and the construction schedule module is used for constructing a task schedule by adopting a plurality of task information and visually displaying the task schedule for a user to check.
It will be clearly understood by those skilled in the art that, for convenience and brevity, the specific working process of the apparatus described above may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
Further, an embodiment of the present application further provides an electronic device, including: a memory, a processor, and a computer program stored on the memory and executable on the processor, which when executed, implements the device connection method of mounting an optoelectronic module as described in the above embodiments.
Further, an embodiment of the present application also provides a computer-readable storage medium storing a computer-executable program for causing a computer to execute the device connection method for mounting an optoelectronic module according to the above embodiment.
While the foregoing is directed to the preferred embodiments of the present application, it will be appreciated by those skilled in the art that changes and modifications may be made without departing from the principles of the application, such changes and modifications are also intended to be within the scope of the application.

Claims (8)

1. A device connection method for mounting an optoelectronic module, the method comprising:
after receiving task information uploaded by a user, acquiring device data of target devices for executing tasks from the task information, wherein the device data comprises: the number of devices, the device communication format, and the device characteristics;
constructing a communication local area network corresponding to the communication format based on the equipment communication format and the equipment, and generating a corresponding number of connection data packets according to the number of the equipment to obtain a plurality of connection data packets;
encapsulating the connection data packet according to the equipment characteristics to obtain an encapsulated data packet, and synchronously transmitting the encapsulated data packet to each target equipment through the communication local area network so that the target equipment adopts the encapsulated data packet to establish communication connection;
the device features include: task execution sequence number;
the step of encapsulating the connection data packet according to the device characteristics to obtain an encapsulated data packet includes:
acquiring the equipment model of the target equipment;
generating an encryption key by adopting the equipment model and the task execution sequence number;
and encapsulating the connection data packet by adopting the encryption key to obtain an encapsulated data packet.
2. The device connection method for mounting an optoelectronic module according to claim 1, wherein the constructing a communication local area network of a corresponding communication format with a device based on the device communication format comprises:
generating a communication data packet according to the equipment communication format, and sending the communication data packet to target equipment;
acquiring a communication node fed back by target equipment, wherein the communication node is a node of a communication module arranged in the target equipment, and the communication module has an RF communication mode and an HPLC communication mode;
and constructing a communication local area network with mixed heterogeneous by adopting the communication nodes.
3. The method for connecting devices on which optoelectronic modules are mounted according to claim 2, wherein the step of synchronously transmitting the encapsulated packet to each target device through the communication lan includes:
determining a plurality of communication paths contained in the communication local area network;
and screening any communication path which is communicated with the target device from a plurality of communication paths, and transmitting the encapsulated data packet to the target device based on the screened communication path.
4. A device connection method for mounting an optoelectronic module as claimed in claim 3 wherein prior to the step of transmitting the encapsulated packet to a target device over a communications path based on screening, the method further comprises:
calculating the data transmission time length of one communication path to be screened;
if the data transmission time length is longer than the preset time length, determining adjacent communication nodes of the corresponding nodes of the target equipment;
an alternate path is generated based on the adjacent communication nodes and the communication path is replaced with the alternate path.
5. The method of claim 1, wherein after the step of synchronously transmitting the encapsulated data packet to each target device via the communication lan to enable the target device to establish a communication connection using the encapsulated data packet, the method further comprises:
task information of a plurality of target devices is obtained, wherein the task information is progress information of the target devices after communication connection is established and tasks are executed;
and constructing a task schedule by adopting a plurality of task information, and visually displaying the task schedule for a user to check.
6. A device connection apparatus for mounting an optoelectronic module, the apparatus comprising:
the device data acquisition module is used for acquiring device data of target devices for executing tasks from task information after receiving the task information uploaded by a user, wherein the device data comprises: the number of devices, the device communication format, and the device characteristics;
the construction and generation module is used for constructing a communication local area network corresponding to the communication format based on the equipment communication format and the equipment, and generating a corresponding number of connection data packets according to the number of the equipment to obtain a plurality of connection data packets;
the connection module is used for encapsulating the connection data packet according to the equipment characteristics to obtain an encapsulated data packet, and synchronously transmitting the encapsulated data packet to each target equipment through the communication local area network so that the target equipment can establish communication connection by adopting the encapsulated data packet;
the device features include: task execution sequence number;
the step of encapsulating the connection data packet according to the device characteristics to obtain an encapsulated data packet includes:
acquiring the equipment model of the target equipment;
generating an encryption key by adopting the equipment model and the task execution sequence number;
and encapsulating the connection data packet by adopting the encryption key to obtain an encapsulated data packet.
7. An electronic device, comprising: a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the device connection method for mounting an optoelectronic module according to any one of claims 1 to 5 when executing the program.
8. A computer-readable storage medium storing a computer-executable program for causing a computer to execute the device connection method for mounting an optoelectronic module according to any one of claims 1 to 5.
CN202310122032.8A 2023-02-15 2023-02-15 Device connection method and device for carrying optoelectronic module Active CN116155918B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310122032.8A CN116155918B (en) 2023-02-15 2023-02-15 Device connection method and device for carrying optoelectronic module

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310122032.8A CN116155918B (en) 2023-02-15 2023-02-15 Device connection method and device for carrying optoelectronic module

Publications (2)

Publication Number Publication Date
CN116155918A CN116155918A (en) 2023-05-23
CN116155918B true CN116155918B (en) 2023-11-03

Family

ID=86340325

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310122032.8A Active CN116155918B (en) 2023-02-15 2023-02-15 Device connection method and device for carrying optoelectronic module

Country Status (1)

Country Link
CN (1) CN116155918B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0814583A2 (en) * 1996-06-20 1997-12-29 International Business Machines Corporation Method and system for minimizing the connection set up time in high speed packet switching networks
CN101610183A (en) * 2009-07-21 2009-12-23 杭州华三通信技术有限公司 A kind of method and apparatus of probing processing ability of hypertext transfer protocol server
CN106533826A (en) * 2016-10-25 2017-03-22 乐视控股(北京)有限公司 Network state detection method and system
CN112016635A (en) * 2020-10-16 2020-12-01 腾讯科技(深圳)有限公司 Device type identification method and device, computer device and storage medium
CN112859660A (en) * 2019-11-28 2021-05-28 上海微电子装备(集团)股份有限公司 Equipment synchronization control method, device, terminal and system
CN113765544A (en) * 2021-09-30 2021-12-07 国网湖南省电力有限公司 Dual-mode heterogeneous field area network multipath concurrent transmission method based on HPLC and RF
CN114258153A (en) * 2021-11-15 2022-03-29 珠海慧联科技有限公司 Wireless communication connection method, system and wireless communication equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP4018612B1 (en) * 2019-08-19 2024-02-28 Nokia Technologies Oy Verifiability for execution in trusted execution environment
US11539789B2 (en) * 2020-04-03 2022-12-27 Electronics And Telecommunications Research Institute Method and apparatus for recovering missing data in multi-source hybrid overlay network

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0814583A2 (en) * 1996-06-20 1997-12-29 International Business Machines Corporation Method and system for minimizing the connection set up time in high speed packet switching networks
CN101610183A (en) * 2009-07-21 2009-12-23 杭州华三通信技术有限公司 A kind of method and apparatus of probing processing ability of hypertext transfer protocol server
CN106533826A (en) * 2016-10-25 2017-03-22 乐视控股(北京)有限公司 Network state detection method and system
CN112859660A (en) * 2019-11-28 2021-05-28 上海微电子装备(集团)股份有限公司 Equipment synchronization control method, device, terminal and system
CN112016635A (en) * 2020-10-16 2020-12-01 腾讯科技(深圳)有限公司 Device type identification method and device, computer device and storage medium
CN113765544A (en) * 2021-09-30 2021-12-07 国网湖南省电力有限公司 Dual-mode heterogeneous field area network multipath concurrent transmission method based on HPLC and RF
CN114258153A (en) * 2021-11-15 2022-03-29 珠海慧联科技有限公司 Wireless communication connection method, system and wireless communication equipment

Also Published As

Publication number Publication date
CN116155918A (en) 2023-05-23

Similar Documents

Publication Publication Date Title
CN106878926A (en) A kind of data transmission method based on low-power consumption bluetooth, from main equipment and system
CN106254147B (en) It is a kind of for the configuration method of Wi-Fi network, internet-of-things terminal and control terminal
JP2011254415A (en) Wireless device and wireless base station device
JP7030797B2 (en) Network management information receiving method, receiving device and storage medium
CN104168582B (en) A kind of microcell base station system, relevant device and data processing method
US11800337B2 (en) Method and apparatus for establishing Bluetooth data channel
CN109428665A (en) Wavelength-division multiplex sending device, receiving device, trunking and Transmission system
CN111954100B (en) Interface upgrading method and device and optical network unit management method and device
CN108809642A (en) A kind of encryption certification high-speed transfer implementation method of multi-channel data 10,000,000,000 based on FPGA
CN110505633A (en) A kind of means of communication, communication device and the communication system of energy information acquisition
CN116155918B (en) Device connection method and device for carrying optoelectronic module
CN112511215B (en) Data channel switching method and terminal equipment
CN102497302B (en) Hybrid network access system
CN103885068A (en) Dispatching management type user receiver
CN107465711A (en) A kind of serial port communication method, control terminal and veneer
CN203912045U (en) Digital forwarding relay modem self-adaptive to a variety of modulation modes
CN112351355B (en) Management method and system of ONU channel based on gPC
CN102081383B (en) Device and method for secure network protocol for field control
CN110752878A (en) Data processing method and device
CN105357112B (en) Communication means and device in a kind of software defined network
CN108023780A (en) The gateway method to set up and system of convergent terminal, convergent terminal
RU2007109347A (en) METHOD FOR DATA TRANSFER BETWEEN THE SWITCH AND TERMINAL, AND ALSO THE FSK-PROCESSING MODULE, TERMINAL AND SWITCH
CN206805587U (en) Internet of Things intelligent control information acquisition terminal
CN108696365A (en) A kind of method and device for realizing outband management
CN107612653A (en) Data processing method, source electronic equipment and server

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