Expansion access method, device, system and computer program product
By configuring and managing multiple expansion modules in the extended access device and sending driver instructions through unicast, the difficulties in accessing and managing expansion modules in a multi-device system are solved, flexible control and accurate driving of different types of modules are achieved, and the flexibility and stability of the system are improved.
Patent Information
- Application Number
- CN202411934338.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-26
- Publication Date
- 2025-04-08
- Estimated Expiration
- 2044-12-26
AI Technical Summary
In multi-device systems, due to the diverse device types and complex communication protocols, there are difficulties in accessing and managing expansion modules, especially how to connect different types of expansion modules to the extended access device for unified management.
By extending the access device, these modules are configured and managed according to the relevant information of the multiple expansion modules. When receiving the driver instruction, the target expansion module is queried and the driver instruction is sent to the target expansion module in a unicast manner through the communication network to drive the subordinate terminal equipment. In addition, through mechanisms such as address checksum configuration information update, we ensure the correct configuration and communication ready state of the extension module.
It realizes flexible management and control of different types of expansion modules, solves the problems of insufficient hardware interfaces of extended access devices and limited expansion nodes, improves the flexibility and stability of the system, and ensures the accuracy of driver control.
Smart Images

Figure CN119788486A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of extension technology, and in particular to an extension access method, an extension access device, an extension access system, a computer-readable storage medium, and a computer program product. Background Art
[0002] In the actual application of automatic control, due to the differences in project scale and function, there are great differences in the system architecture of the project and the equipment actually needed in the project. That is, the equipment types are more diverse and complex, the communication protocols of the equipment are more numerous, and the types of interfaces are more numerous, which brings a certain degree of difficulty to the integration and unified management of multi-device systems (for example, building control systems, in which the equipment that needs to be integrated includes lighting, air conditioning, and elevators, etc.). Summary of the invention
[0003] The inventors of the present disclosure discovered that the above-mentioned related technologies have the following problems: in view of the diversity of devices, different types of devices can be controlled through expansion modules, but how to connect different types of expansion modules to the expansion access device to manage the expansion modules is a problem that needs to be solved.
[0004] According to some embodiments of the first aspect of the present disclosure, there is provided an extended access method, which is executed by an extended access device, and includes: configuring multiple extension modules according to relevant information of the multiple extension modules; querying a target extension module corresponding to a received driving instruction in the multiple extension modules; and sending the driving instruction to the target extension module in a unicast manner through a communication network, so that the target extension module drives a subordinate terminal device corresponding to the driving instruction.
[0005] In some embodiments, querying a target expansion module corresponding to the received driving instruction from multiple expansion modules includes: determining an expansion module that has passed address verification from the multiple expansion modules; and querying a target expansion module from the expansion modules that have passed address verification.
[0006] In some embodiments, the relevant information of the multiple expansion modules includes target configuration information of each expansion module in the multiple expansion modules, and determining the expansion module that has passed the address verification in the multiple expansion modules includes: receiving an address verification request from each expansion module, the address verification request including actual configuration information; and determining the expansion module whose actual configuration information is consistent with the target configuration information in the multiple expansion modules as the expansion module that has passed the address verification.
[0007] In some embodiments, the extended access method also includes: sending a configuration information update request to an extension module whose actual configuration information is inconsistent with the target configuration information in a unicast manner through a communication network, so that the extension module whose actual configuration information is inconsistent with the target configuration information updates the actual configuration information according to the target configuration information, wherein the configuration information update request includes the target configuration information.
[0008] In some embodiments, the extended access method further includes: receiving terminal device update data sent by the extension module that has passed the address verification through the communication network; and updating the saved terminal device data according to the terminal device update data.
[0009] In some embodiments, the extended access method further includes: monitoring the communication load of the port between the extended access device and the extension module that has passed the address verification; determining whether the port of the extended access device is in a communication ready state based on the communication load of the port between the extended access device and the extension module that has passed the address verification, wherein the communication ready state includes at least one of a send ready state and a receive ready state.
[0010] In some embodiments, determining whether the port of the extended access device is in a communication ready state based on the communication load of the port between the extended access device and the extension module that has passed the address verification includes: when the communication load of the port between the extended access device and the extension module that has passed the address verification is less than or equal to a first load threshold, determining that the port of the extended access device is in a communication ready state; when the communication load of the port between the extended access device and the extension module that has passed the address verification is greater than the first load threshold, determining that the port of the extended access device is in a communication not ready state.
[0011] In some embodiments, the extended access method further includes: broadcasting an overload warning in the communication network when the communication load of the port between the extended access device and the extended module that has passed the address check is greater than a first load threshold.
[0012] In some embodiments, the relevant information of the multiple expansion modules includes the type of each expansion module in the multiple expansion modules, the communication address of each expansion module, and the target configuration information of each expansion module.
[0013] In some embodiments, determining an expansion module that has passed address verification among multiple expansion modules includes: receiving a registration request from each expansion module among the multiple expansion modules; returning a registration result to each expansion module through a communication network, wherein the registration result is used to indicate a successful registration or a failed registration; and determining an expansion module that has passed address verification among the successfully registered expansion modules.
[0014] In some embodiments, the target configuration information of each expansion module includes at least one of the target sub-configuration information of each expansion module, the target point type of each expansion module, and the target point address of each expansion module. The target point type is used to indicate whether the parameter of the subordinate terminal device of the expansion module is an analog quantity or a digital quantity, and the target point address is used to indicate the query address of the parameter of the subordinate terminal device of the expansion module.
[0015] According to some embodiments of the second aspect of the present disclosure, an extended access device is provided, comprising: a configuration unit, configured to configure multiple extension modules according to relevant information of the multiple extension modules; a query unit, configured to query a target extension module corresponding to a received driving instruction in the multiple extension modules; and a sending unit, configured to send the driving instruction to the target extension module in a unicast manner through a communication network, so that the target extension module drives a subordinate terminal device corresponding to the driving instruction.
[0016] In some embodiments, the query unit is further configured to determine an expansion module that has passed address verification among the multiple expansion modules; and query a target expansion module among the expansion modules that have passed address verification.
[0017] In some embodiments, the relevant information of the multiple expansion modules includes target configuration information of each expansion module in the multiple expansion modules, and the query unit is further configured to receive an address verification request for each expansion module, the address verification request including actual configuration information; and determine the expansion module whose actual configuration information is consistent with the target configuration information in the multiple expansion modules as the expansion module that has passed the address verification.
[0018] In some embodiments, the sending unit is further configured to send a configuration information update request to an expansion module whose actual configuration information is inconsistent with the target configuration information in a unicast manner through a communication network, so that the expansion module whose actual configuration information is inconsistent with the target configuration information updates the actual configuration information according to the target configuration information, wherein the configuration information update request includes the target configuration information.
[0019] In some embodiments, the extended access device further includes a receiving unit configured to receive terminal device update data sent by the extended module that has passed the address verification through the communication network; and update the stored terminal device data according to the terminal device update data.
[0020] In some embodiments, the extended access device further includes a monitoring unit configured to monitor the communication load of a port between the extended access device and an extended module that has passed the address verification; and determine whether the port of the extended access device is in a communication ready state based on the communication load of the port between the extended access device and the extended module that has passed the address verification, wherein the communication ready state includes at least one of a send ready state and a receive ready state.
[0021] In some embodiments, the monitoring unit is further configured to determine that the port of the extended access device is in a communication ready state when the communication load of the port between the extended access device and the extension module that has passed the address verification is less than or equal to a first load threshold; and to determine that the port of the extended access device is in a communication not ready state when the communication load of the port between the extended access device and the extension module that has passed the address verification is greater than the first load threshold.
[0022] In some embodiments, the sending unit is further configured to broadcast an overload warning in the communication network when the communication load of the port between the expansion access device and the expansion module that has passed the address verification is greater than a first load threshold.
[0023] In some embodiments, the relevant information of the multiple expansion modules includes the type of each expansion module in the multiple expansion modules, the communication address of each expansion module, and the target configuration information of each expansion module.
[0024] In some embodiments, the query unit is further configured to receive a registration request from each of the multiple expansion modules; return a registration result to each expansion module via a communication network, wherein the registration result is used to indicate a successful registration or a failed registration; and determine an expansion module that has passed an address check among the successfully registered expansion modules.
[0025] In some embodiments, the target configuration information of each expansion module includes at least one of the target sub-configuration information of each expansion module, the target point type of each expansion module, and the target point address of each expansion module. The target point type is used to indicate whether the parameter of the subordinate terminal device of the expansion module is an analog quantity or a digital quantity, and the target point address is used to indicate the query address of the parameter of the subordinate terminal device of the expansion module.
[0026] According to some embodiments of the third aspect of the present disclosure, an extended access device is provided, comprising: a memory and a processor coupled to the memory, wherein the processor is configured to execute the extended access method in any one of the above embodiments based on instructions stored in the memory.
[0027] According to some embodiments of the fourth aspect of the present disclosure, an extended access system is provided, comprising: an extended access device in any one of the above embodiments; a plurality of extension modules, including a target extension module, wherein the target extension module is configured to receive a drive instruction through a communication network, and drive a subordinate terminal device corresponding to the drive instruction according to the drive instruction.
[0028] In some embodiments, multiple expansion modules include an expansion module that has passed the address verification, and the expansion module that has passed the address verification is configured to: determine the data of the subordinate terminal device of the expansion module that has passed the address verification based on the target configuration information of the expansion module that has passed the address verification; determine whether the data of the subordinate terminal device has changed; and when it is determined that the data of the subordinate terminal device has changed, send the terminal device update data to the expansion access device through the communication network, so that the expansion access device updates the stored data of the terminal device.
[0029] In some embodiments, each of the multiple extension modules is configured to send an address verification request to the extended access device in a unicast manner through the network, and the address verification request includes actual configuration information.
[0030] In some embodiments, an expansion module among multiple expansion modules that fails address verification is configured to: receive a configuration information update request sent by an expansion access device through a communication network, wherein the configuration information update request includes target configuration information; and update actual configuration information according to the target configuration information.
[0031] In some embodiments, the expansion module that passes the address check is further configured to: monitor the communication load of the port between the expansion module that passes the address check and the expansion access device; determine whether the port of the expansion module that passes the address check is in a communication ready state based on the communication load of the port between the expansion module that passes the address check and the expansion access device, wherein the communication ready state includes at least one of a send ready state and a receive ready state.
[0032] In some embodiments, the expansion module that has passed the address check is further configured to: when the communication load of the port between the expansion module that has passed the address check and the extended access device is less than or equal to a second load threshold, determine that the port of the expansion module that has passed the address check is in a communication ready state; when the communication load of the port between the expansion module that has passed the address check and the extended access device is greater than the second load threshold, determine that the port of the expansion module that has passed the address check is in a communication not ready state.
[0033] In some embodiments, the expansion module that has passed the address check is further configured to broadcast an overload warning in the communication network when the communication load of the port between the expansion module that has passed the address check and the expansion access device is greater than a second load threshold.
[0034] In some embodiments, each of the multiple extension modules is further configured to: send a registration request to the extension access device; and receive a registration result returned by the extension access device through a communication network, wherein the registration result is used to indicate a registration success or a registration failure.
[0035] In some embodiments, the plurality of extension modules include a pre-application extension module and an applied extension module, the pre-application extension module is configured to broadcast a communication address of the pre-application extension module in a communication network; the applied extension module is configured to receive the communication address of the pre-application extension module and determine whether the communication address of the pre-application extension module is consistent with the communication address of the applied extension module.
[0036] In some embodiments, the applied extension module is further configured to: when it is determined that the communication address of the pre-applied extension module is consistent with the communication address of the applied extension module, broadcast a conflict warning in the communication network.
[0037] In some embodiments, the pre-application extension module is further configured to: determine that the application for the pre-application extension module communication address is successful if no conflict warning broadcast by the applied extension module is received within a specified time.
[0038] In some embodiments, the expansion access system further includes an input device configured to input relevant information of the plurality of expansion modules into the expansion access device.
[0039] In some embodiments, the extended access system also includes subordinate terminal devices, wherein the subordinate terminal devices include subordinate terminal devices corresponding to drive instructions and subordinate terminal devices not corresponding to drive instructions, wherein the subordinate terminal devices corresponding to the drive instructions are configured to act according to the drive instructions of the target expansion module, and the subordinate terminal devices not corresponding to the drive instructions are configured to wait for driving.
[0040] According to some embodiments of the fifth aspect of the present disclosure, a computer-readable storage medium is provided, on which computer instructions are stored, and when the instructions are executed by a processor, the extended access method in any of the above embodiments is implemented.
[0041] According to some embodiments of the sixth aspect of the present disclosure, a computer program product is provided, comprising computer instructions, which, when executed by a processor, implement the extended access method in any one of the above embodiments.
[0042] In the above embodiment, multiple extension modules are configured according to the relevant information of multiple extension modules, so that different types of extension modules that can be accessed by the extended access device can be dynamically controlled. The target extension module corresponding to the received drive instruction is queried in multiple extension modules, so that the extended access module can flexibly control and select multiple extension modules that have been connected. By sending the drive instruction to the target extension module, it is helpful for the target extension module to drive the subordinate terminal device corresponding to the drive instruction. In addition, according to actual needs, a corresponding number of extension modules can be configured to solve the problem of limited extension nodes of the extended access device and insufficient hardware interfaces of the extended access device. According to actual needs, the configuration order of different types of extension modules can be selected to solve the problem that the connection between the extended access device and the extension module must be spliced in sequence, thereby improving the flexibility of the extended access method. In addition, the drive instruction is sent to the target extension module in a unicast manner through the communication network to avoid the risk of reducing the accuracy of the drive control during the extended access process due to the extension module other than the target extension module receiving the drive instruction. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] The accompanying drawings, which constitute a part of the specification, illustrate embodiments of the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0044] The present disclosure can be more clearly understood from the following detailed description with reference to the accompanying drawings.
[0045] Figure 1 A flow chart showing some embodiments of the extended access method of the present disclosure.
[0046] Figure 2 Schematic diagrams showing some embodiments of the extended access device of the present disclosure.
[0047] Figure 3 Schematic diagrams showing other embodiments of the extended access device of the present disclosure.
[0048] Figure 4 Schematic diagrams showing some embodiments of the extended access system of the present disclosure.
[0049] Figure 5 Schematic diagrams showing other embodiments of the extended access system of the present disclosure. DETAILED DESCRIPTION
[0050] Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that the relative arrangement of components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present disclosure unless otherwise specifically stated.
[0051] At the same time, it should be understood that for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.
[0052] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present disclosure, its application, or uses.
[0053] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered part of the specification.
[0054] In all examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not as limiting. Therefore, other examples of the exemplary embodiments may have different values.
[0055] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0056] In the related art, an integrated solution of a central controller and an expansion module is adopted, that is, a controller is provided, and the expansion module is connected at the hardware interface of the controller, wherein the main controller exchanges data with the expansion module via a communication bus such as USB (Universal Serial Bus) and UART (Universal Asynchronous Receiver / Transmitter). The connected expansion modules need to be connected in the order of addresses, that is, in the related art, the connection position of the expansion module is fixed.
[0057] For example, addresses 1 through 4 must be one type of expansion module, and 5 through 8 must be another.
[0058] Normally, the communication rates of different types of expansion modules are different. When the amount of data in the expansion module is large (such as the enhanced communication expansion module), the communication rate of the expansion module will be higher. The number of expansion modules that can be expanded (the number of terminal devices that can be connected) is also different for different types of expansion modules. Considering the reliability of the system involved in the expansion module, there are fewer expansion modules that can be connected to the high-speed communication port. In actual projects, when users need to use a large number of high-speed expansion modules, they need to use multiple main controllers, which increases the project cost.
[0059] In view of the above problems, the present disclosure proposes an extended access method, which is specifically as follows.
[0060] Figure 1A flow chart showing some embodiments of the extended access method of the present disclosure.
[0061] like Figure 1 As shown, the extended access method includes steps 110 to 130, wherein the extended access method is executed by an extended access device.
[0062] In step 110, multiple expansion modules are configured according to relevant information of the multiple expansion modules. The relationship between the multiple expansion modules and the expansion access device is that the multiple expansion modules occupy a communication port of the expansion access device.
[0063] In other words, by occupying one communication port of the expansion access device to expand multiple expansion modules, the hardware resources of the expansion access device are utilized to the maximum extent, and the problem of insufficient hardware interfaces of the expansion access device is solved.
[0064] For example, the expansion module is an RS485 expansion module with two ports. According to the relevant information of the expansion module, the expansion module can know that the first port of the expansion module is connected to a subordinate terminal device with a Modbus RTU (Modbus Remote Terminal Unit) address of 1, and the register address of the ModbusRTU function code is 03, which is 1, 2, and 3. The expansion module returns the read information to the expansion access device according to the communication of the subordinate terminal device.
[0065] Accordingly, the input device will send relevant information of the multiple expansion modules to the expansion access device, so that the expansion access device is configured with the multiple expansion modules.
[0066] In step 120, a target extension module corresponding to the received driving instruction is searched among multiple extension modules. The received driving instruction may be sent by the management platform, for example.
[0067] In step 130, a driving instruction is sent to a target expansion module in a unicast manner via a communication network, so that the target expansion module drives a subordinate terminal device corresponding to the driving instruction.
[0068] Correspondingly, the target expansion module receives the driving instruction through the communication network, and drives the subordinate terminal device corresponding to the driving instruction according to the driving instruction.
[0069] In the above embodiment, multiple extension modules are configured according to the relevant information of multiple extension modules, so that different types of extension modules that can be accessed by the extended access device can be dynamically controlled. The target extension module corresponding to the received drive instruction is queried in multiple extension modules, so that the extended access module can flexibly control and select multiple extension modules that have been connected. By sending the drive instruction to the target extension module, it is helpful for the target extension module to drive the subordinate terminal device corresponding to the drive instruction. In addition, according to actual needs, a corresponding number of extension modules can be configured to solve the problem of limited extension nodes of the extended access device and insufficient hardware interfaces of the extended access device. According to actual needs, the configuration order of different types of extension modules can be selected to solve the problem that the connection between the extended access device and the extension module must be spliced in sequence, thereby improving the flexibility of the extended access method. In addition, the drive instruction is sent to the target extension module in a unicast manner through the communication network to avoid the risk of reducing the accuracy of the drive control during the extended access process due to the extension module other than the target extension module receiving the drive instruction.
[0070] In some embodiments, the relevant information of the multiple expansion modules includes the type of each expansion module in the multiple expansion modules, the communication address of each expansion module, and the target configuration information of each expansion module.
[0071] By limiting the relevant information of the extension module to specifically include the type of the extension module, the communication address of the extension module, and the target configuration information of the extension module, it is feasible to configure multiple extension modules according to the relevant information of the multiple extension modules. Specifically, the extension access device needs to configure the extension module according to the target configuration information of the extension module, and will subsequently perform address verification on the extension module according to the target configuration information. The extension access device will communicate with the extension module according to the communication address of the extension module, and the extension access device will determine the target extension module among multiple extension modules according to the type of the extension module and the target configuration information.
[0072] For example, the type of the expansion module may be an I / O expansion module or an enhanced communication expansion module.
[0073] For example, when configuring the communication address of an expansion module, you can configure the communication address of the expansion module by dialing the code according to the relevant information of the expansion module. In addition, if there is an upper limit on the number of expansion modules allowed to be connected or the communication address set by the project development is different from the actual communication address of the expansion module, you can change the communication address of the expansion module by dialing the code.
[0074] In some embodiments, the target configuration information of each expansion module includes at least one of the target sub-configuration information of each expansion module, the target point type of each expansion module, and the target point address of each expansion module. The target point type is used to indicate whether the parameter of the subordinate terminal device of the expansion module is an analog quantity or a digital quantity, and the target point address is used to indicate the query address of the parameter of the subordinate terminal device of the expansion module.
[0075] By specifically defining the target configuration information of the expansion module including the target sub-configuration information, the target point type and the target point address, wherein the target point type and the target point address are both relevant configuration information of the parameters of the subordinate terminal devices, it is possible to configure multiple expansion modules more accurately, and also provides convenience for subsequently determining the target expansion module according to the drive instructions.
[0076] For example, the points of the subordinate devices of the extension module may be parameters such as the on / off status and operation mode of the air conditioner.
[0077] For example, the target sub-configuration information of the expansion module refers to the configuration information of the expansion module itself, such as the baud rate of the RS485 port of the RS485 expansion module.
[0078] When configuring the target point, different point types can be assigned to the point according to the read and write permissions of the target point and the range of the point value. For example, the target point type can be analog input AI (read-only, the input value is a real number), analog output AO (read-write, the output value is a real number), binary input BI (read-only, the input value is 0 or 1), and binary output BO (read-write, the output value is 0 or 1). To ensure uniqueness (i.e., the one-to-one correspondence between the target point type and the target point address), different attributes of the same target point type need to be numbered. This number is called the point address, i.e., the query address of the target point.
[0079] In some embodiments, the extended access device first determines an extended module that has passed address verification among multiple extended modules, and then searches for a target extended module among the extended modules that have passed address verification.
[0080] By querying the target expansion module corresponding to the drive instruction in the expansion module that has passed the address check, the accuracy and stability of the target expansion module are improved, thereby ensuring the stability of the expansion access process. In addition, by performing address check on the expansion module, the security of the expansion module is guaranteed, reducing the risk of expansion module call errors caused by the difference between the actual configuration information of the expansion module and the target configuration information, and ensuring the security of the expansion access process.
[0081] How to determine the expansion module that has passed the address check among the multiple expansion modules is specifically as follows: wherein the relevant information of the multiple expansion modules includes the target configuration information of each expansion module among the multiple expansion modules.
[0082] An address verification request from each extension module is received, the address verification request including actual configuration information; and an extension module whose actual configuration information is consistent with the target configuration information among the multiple extension modules is determined as an extension module that has passed the address verification.
[0083] According to the actual configuration information and target configuration information of the extension module, the address of the extension module is verified, and a verification method is provided, which provides feasibility for querying the target extension module in the extension module that has passed the address verification. In addition, the address verification request sent by the extension module triggers the extension access device to perform address verification on the extension module, which reduces the process redundancy caused by the extension access device directly triggering the address verification and the extension module is not ready for address verification.
[0084] Correspondingly, each of the multiple extension modules will send an address verification request to the extension access device in a unicast manner through the communication network, and the address verification request includes actual configuration information.
[0085] By sending an address verification request to the extended access device in a unicast manner, the stability of the communication process is ensured, the risk of information disorder caused by multiple extension modules sending information to the extended access device at the same time in a broadcast manner is reduced, and the stability and security of the extended access process are ensured.
[0086] Furthermore, for the expansion modules whose actual configuration information is consistent with the target configuration information among the multiple expansion modules, the verification pass information is sent to the expansion modules whose actual configuration information is consistent with the target configuration information in a unicast manner through the communication network.
[0087] In addition, for the expansion modules whose actual configuration information is inconsistent with the target configuration information among the multiple expansion modules (i.e., the expansion modules whose address verification fails), a configuration information update request is sent to the expansion modules whose actual configuration information is inconsistent with the target configuration information in a unicast manner through the communication network, so that the expansion modules whose actual configuration information is inconsistent with the target configuration information update the actual configuration information according to the target configuration information, wherein the configuration information update request includes the target configuration information.
[0088] By sending a configuration information update request to the expansion module whose actual configuration information is inconsistent with the target configuration information, the expansion module whose actual configuration information is inconsistent with the target configuration information can update its own actual configuration information according to the target configuration information, so that the expansion module whose actual configuration information is inconsistent with the target configuration information passes the address check, thereby ensuring the stability of the expansion access process. In addition, the actual configuration information of the expansion module is dynamically and real-time adjusted to timely enable the expansion module that fails the address check to pass the address check, so as to be able to provide services for the expansion access device in a timely manner, thereby ensuring the stability of the expansion access process.
[0089] Correspondingly, the expansion modules among the multiple expansion modules that fail the address check will receive a configuration information update request sent by the expansion access device through the communication network, wherein the configuration information update request includes the target configuration information; and update the actual configuration information according to the target configuration information.
[0090] By receiving the configuration information update request sent by the extended access device and updating the actual configuration information according to the target configuration information, it helps the extended module to update from the state of address verification failure to the state of address verification passing, thus ensuring the stability of the extended access process. In addition, by dynamically updating the actual configuration information in real time, it is possible to provide services to the extended access device in a timely manner.
[0091] It should be noted that the communication between multiple expansion modules and the expansion access device adopts a multi-master communication architecture, that is, any expansion module can initiate bus communication.
[0092] For example, the communication network may be a CAN (Controller Area Network) communication network.
[0093] In some embodiments, in the process of determining the extension module that has passed the address check among the multiple extension modules, the extension module that has successfully registered among the multiple extension modules may also be determined first, as described below.
[0094] Receive a registration request from each of the multiple extension modules; return a registration result to each extension module through a communication network, wherein the registration result is used to indicate a successful registration or a failed registration; determine an extension module that has passed the address verification among the successfully registered extension modules. Successful registration indicates that the communication address of the extension module is not in use, and failed registration indicates that the communication address of the extension module is in use.
[0095] Before performing address verification on the extension module, it is first determined whether multiple extension modules are successfully registered, that is, it is determined whether the communication address of the current extension module has been used by other extension modules. When it is determined that the communication address of the current extension module has not been used by other extension modules, the address of the current extension module is verified again. The extension module is verified at two levels, which improves the accuracy and stability of subsequent determination of the target extension module and ensures the stability of the extension access process. In addition, the security of the extension module is also ensured through the verification at two levels.
[0096] Accordingly, each extension module sends a registration request to the extension access device, and receives a registration result returned by the extension access device through the communication network, wherein the registration result is used to indicate a registration success or a registration failure.
[0097] By sending a registration request to the extended access device, it is determined whether the communication address of the current extended module has been used, so as to determine whether to send an address registration request to the extended access device according to the registration result. The extended module that has been successfully registered can send an address verification request to the extended access device, and the extended module is verified at two levels, which improves the accuracy and stability of the subsequent determination of the target extended module, and also ensures the stability of the extended access process. In addition, the security of the extended module is also guaranteed through the two-level verification.
[0098] In some embodiments, before sending a registration request to the extended access device, the multiple extension modules may further perform the following operations, as described in detail below.
[0099] The multiple extension modules include a pre-application extension module and an applied extension module, wherein the pre-application extension module broadcasts the communication address of the pre-application extension module in the communication network; the applied extension module receives the communication address of the pre-application extension module and determines whether the communication address of the pre-application extension module is consistent with the communication address of the applied extension module.
[0100] The pre-applied extension module broadcasts the communication address so that the applied extension module can determine whether the communication address of the pre-applied extension module is consistent with the communication address of the applied extension module, which helps to judge whether the communication address of the pre-applied extension module can be used directly or needs to be modified according to whether the communication address of the pre-applied extension module is consistent with the communication address of the applied extension module, and helps to reduce the risk of communication disorder between the extension module and the extended access device or between the extension modules due to the consistency of the communication addresses of the two extension modules.
[0101] In addition, the applied extension module will also broadcast a conflict warning in the communication network when it is determined that the communication address of the pre-applied extension module is consistent with the communication address of the applied extension module.
[0102] When the communication address of the pre-applied extension module is consistent with the communication address of the applied extension module, a conflict warning is broadcasted to notify each extension module and the extension access device that the communication address conflicts, so as to attract the attention of each extension module and the extension access device, thereby ensuring the security and stability of the extension access process.
[0103] The pre-application extension module will also determine that the pre-application extension module communication address application is successful if it does not receive a conflict warning broadcast by the applied extension module within a specified time. If the pre-application extension module communication address application is successful, the extension module that successfully applies for the communication address will then send a registration request to the extended access device.
[0104] By waiting for a specified time, if no conflict warning is received within the specified time, it is determined that the communication address application for the pre-application extension module is successful, saving time loss in the extension access process and reducing the risk of the extension access process being unable to continue due to infinite waiting without receiving a conflict warning.
[0105] In some embodiments, if the data of the subordinate terminal device of the expansion module that has passed the address verification changes, the expansion access device will receive the terminal device update data sent by the expansion module that has passed the address verification through the communication network; and update the saved terminal device data according to the terminal device update data.
[0106] Correspondingly, the expansion module that has passed the address verification will also determine the data of the subordinate terminal device of the expansion module that has passed the address verification based on the target configuration information of the expansion module that has passed the address verification; determine whether the data of the subordinate terminal device has changed; and when it is determined that the data of the subordinate terminal device has changed, send the terminal device update data to the expansion access device through the communication network, so that the expansion access device updates the saved terminal device data.
[0107] When the data of the subordinate terminal device changes, the extension module that passes the address check will send the terminal device update data to the extended access device, so that the extended access device can update the saved terminal device data according to the terminal device update data, reducing the data difference between the extended access device and the terminal device, and making the management platform of the extended access device more streamlined and standardized for the status and access method of the terminal device, thereby improving the real-time performance of the extended access method.
[0108] For example, the expansion module is an I / O expansion module. A wide port of the expansion module is connected to a temperature sensor. When the ambient temperature changes, the current or voltage supplied by the temperature sensor to this port will change, which means that the data of the subordinate terminal device has changed.
[0109] In some embodiments, for a large network environment, the communication throughput of the port between each expansion module and the expansion access device is relatively high, so the expansion access device will also monitor the communication load of the port between itself and the expansion module that has passed the address check, as follows.
[0110] Monitor the communication load of the port between the extended access device and the extended module that has passed the address verification; and determine whether the port of the extended access device is in a communication ready state based on the communication load of the port between the extended access device and the extended module that has passed the address verification, wherein the communication ready state includes at least one of a send ready state and a receive ready state.
[0111] By monitoring the communication load of the port between the extended access device and the extended module that has passed the address check in real time, and determining whether the port of the extended access device is in a communication ready state based on the monitored communication load, it helps to achieve load balancing of the extended access device, helps to effectively reduce the risk of untimely information processing and information loss during the extended access process due to communication congestion at the port of the extended access device, and helps to ensure the reliable operation of the extended access process.
[0112] In some embodiments, the extended access device sends point control (i.e., drive instructions) to the extended module to drive the subordinate terminal devices of the extended module. In addition, the extended access device receives the point status (i.e., data of the subordinate terminal devices of the extended module) sent by the extended module.
[0113] For example, when the data or status of the subordinate terminal device changes, the expansion module adds the updated data to the queue to be sent, and starts the sending task when the port is in the ready-to-send state. When the extended access device detects that its port is in the ready-to-receive state, it starts the receiving task.
[0114] In some embodiments, if the extended access device receives the point cloud status, the data processor inside the extended access device will complete the data parsing, and determine whether to store the data in the data buffer and initiate a reload request based on the parsing results to complete the point cloud status synchronization between the extended module and the extended access device.
[0115] In some embodiments, if the extended access device receives a driving instruction, the driving instruction will be added to the queue to be sent, and when the port of the extended access device is in a ready-to-send state, the arbitration scheduler in the extended access device starts the sending task. In addition, when the extension module detects that the port of the extension module is in a ready-to-receive state, the receiving task is started, and the data processor in the extension module completes the data parsing, initiates the terminal device driving request, and replies to the extended access device for the driving result of the driving instruction, completing the driving synchronization between the extension module and the extended access device.
[0116] By replying the driving result to the extended access device, the extended module and the extended access device can synchronize their understanding of the driving result, which helps the extended access device to fully control the current driving instruction. It can determine whether the driving instruction needs to be resent based on the driving result, effectively ensuring the efficiency and stability of the extended access method.
[0117] How to determine whether the port of the extended access device is in a communication ready state according to the communication load of the port between the extended access device and the extended module that has passed the address check is as follows.
[0118] When the communication load of the port between the extended access device and the extended module that has passed the address check is less than or equal to the first load threshold, it is determined that the port of the extended access device is in a communication ready state.
[0119] When the port communication load between the extended access device and the extended module that has passed the address check is greater than a first load threshold, it is determined that the port of the extended access device is in a communication unready state.
[0120] A specific method for determining whether a port of an extended access device is in a communication ready state according to a communication load is provided, which provides feasibility for subsequently controlling the reception and transmission of communication data of the port of the extended access device according to whether the port of the extended access device is in a communication ready state.
[0121] For example, when the port of the extended access device is in a receiving-ready state, the receiving task is started.
[0122] In addition, if the communication load of the port between the extended access device and the extended module that has passed the address check is greater than the first load threshold, the extended access device will also broadcast an overload warning in the communication network. At this time, the extended module that sends information to the extended access device should stop sending information and push the unfinished information into the sending buffer, and resume data transmission after the port load of the extended access device is normal.
[0123] By broadcasting an overload warning when the communication load of the port between the extended access device and the extended module that has passed the address check is greater than the first load threshold, the extended module can stop sending information to the extended access device in a timely manner, load balancing of the extended access device can be achieved, and the risk of untimely information processing and information loss during the extended access process due to communication congestion at the port of the extended access device can be effectively reduced, and the reliable operation of the extended access process is guaranteed.
[0124] Correspondingly, the expansion module that has passed the address check will also monitor the communication load of the port between the expansion module that has passed the address check and the expansion access device; and determine whether the port of the expansion module that has passed the address check is in a communication ready state based on the communication load of the port between the expansion module that has passed the address check and the expansion access device, wherein the communication ready state includes at least one of a send ready state and a receive ready state.
[0125] By real-time monitoring of the communication load of the port between the expansion module that has passed the address check and the expansion access device, and determining whether the port of the expansion module that has passed the address check is in a communication ready state based on the monitored communication load, it helps to effectively reduce the risk of untimely information processing and information loss during the expansion access process due to communication congestion at the port of the expansion module, and helps to ensure the reliable operation of the expansion access process.
[0126] In some embodiments, the expansion module sends point status (i.e., data of the subordinate terminal device of the expansion module) to the expansion access device to drive the subordinate terminal device of the expansion module. In addition, the expansion module receives point control (i.e., drive instructions) sent by the expansion access device.
[0127] How to determine whether the port of the expansion module that has passed the address check is in a communication ready state according to the communication load of the port between the expansion module that has passed the address check and the expansion access device is as follows.
[0128] When the communication load of the port between the expansion module that has passed the address check and the expansion access device is less than or equal to the second load threshold, it is determined that the port of the expansion module that has passed the address check is in a communication ready state.
[0129] When the communication load of the port between the expansion module that has passed the address check and the expansion access device is greater than the second load threshold, it is determined that the port of the expansion module that has passed the address check is in a communication unready state.
[0130] A specific method for determining whether a port of an expansion module is in a communication ready state according to a communication load is provided, which provides feasibility for subsequently controlling the reception and transmission of communication data of the port of the expansion module according to whether the port of the expansion module is in a communication ready state.
[0131] In addition, if the communication load of the port between the expansion module that has passed the address check and the expansion access device is greater than the second load threshold, the expansion module that has passed the address check will also broadcast an overload warning in the communication network. At this time, the expansion access device that sends information to the expansion module should stop sending information and push the unfinished information into the sending buffer, and resume data transmission after the port load of the expansion module is normal.
[0132] By broadcasting an overload warning when the communication load of the port between the expansion module and the expansion access device is greater than the second load threshold, the expansion access device or other expansion modules can promptly stop sending information to the expansion access device, which can effectively reduce the risk of untimely information processing and information loss during the expansion access process due to communication congestion at the port of the expansion module, and also ensure the reliable operation of the expansion access process.
[0133] In some embodiments, there will also be communication between the expansion modules that have passed the address verification. If there is currently an expansion module that has passed the address verification of the broadcast overload warning, other expansion modules that have passed the address verification will stop sending information to the expansion module that has passed the address verification of the broadcast overload warning, and will resume communication after the load of the expansion module that has passed the address verification of the broadcast overload warning is normal.
[0134] Figure 2 Schematic diagrams showing some embodiments of the extended access device of the present disclosure.
[0135] like Figure 2 As shown, the extended access device 20 includes a configuration unit 21 , a query unit 22 and a sending unit 23 .
[0136] The configuration unit 21 is configured to configure the multiple extension modules according to the related information of the multiple extension modules.
[0137] In some embodiments, the relevant information of the multiple expansion modules includes the type of each expansion module in the multiple expansion modules, the communication address of each expansion module, and the target configuration information of each expansion module.
[0138] In some embodiments, the target configuration information of each expansion module includes at least one of the target sub-configuration information of each expansion module, the target point type of each expansion module, and the target point address of each expansion module. The target point type is used to indicate whether the parameter of the subordinate terminal device of the expansion module is an analog quantity or a digital quantity, and the target point address is used to indicate the query address of the parameter of the subordinate terminal device of the expansion module.
[0139] The query unit 22 is configured to query a target expansion module corresponding to the received driving instruction among multiple expansion modules.
[0140] In some embodiments, the query unit 22 is further configured to determine an expansion module that has passed address verification among the multiple expansion modules; and query a target expansion module among the expansion modules that have passed address verification.
[0141] In some embodiments, the relevant information of the multiple expansion modules includes target configuration information of each expansion module in the multiple expansion modules. The query unit 22 is further configured to receive an address verification request for each expansion module, the address verification request including actual configuration information; and determine an expansion module in the multiple expansion modules whose actual configuration information is consistent with the target configuration information as an expansion module that has passed the address verification.
[0142] In some embodiments, the query unit 22 is further configured to receive a registration request from each of the multiple expansion modules; return a registration result to each expansion module through the communication network, wherein the registration result is used to indicate a successful registration or a failed registration; and determine an expansion module that has passed the address check among the successfully registered expansion modules.
[0143] The sending unit 23 is configured to send the driving instruction to the target expansion module in a unicast manner through the communication network, so that the target expansion module drives the subordinate terminal device corresponding to the driving instruction.
[0144] In some embodiments, the sending unit 23 is further configured to send a configuration information update request to the extension module whose actual configuration information is inconsistent with the target configuration information in a unicast manner through the communication network, so that the extension module whose actual configuration information is inconsistent with the target configuration information updates the actual configuration information according to the target configuration information, wherein the configuration information update request includes the target configuration information.
[0145] In some embodiments, the sending unit 23 is further configured to broadcast an overload warning in the communication network when the communication load of the port between the extended access device and the extended module that has passed the address verification is greater than a first load threshold.
[0146] In some embodiments, the extended access device 20 further includes a receiving unit configured to receive terminal device update data sent by the extended module that has passed the address verification through the communication network; and update the stored terminal device data according to the terminal device update data.
[0147] In some embodiments, the extended access device 20 further includes a monitoring unit configured to monitor the communication load of the port between the extended access device and the extended module that has passed the address verification; and determine whether the port of the extended access device is in a communication ready state based on the communication load of the port between the extended access device and the extended module that has passed the address verification, wherein the communication ready state includes at least one of a send ready state and a receive ready state.
[0148] In some embodiments, the monitoring unit is further configured to determine that the port of the extended access device is in a communication ready state when the communication load of the port between the extended access device and the extension module that has passed the address verification is less than or equal to a first load threshold; and to determine that the port of the extended access device is in a communication not ready state when the communication load of the port between the extended access device and the extension module that has passed the address verification is greater than the first load threshold.
[0149] In the above embodiment, the extended access device can dynamically control the different types of extended modules that the extended access device can access, so that the extended access module can flexibly control and select multiple extended modules that have been connected. In addition, a corresponding number of extended modules can be configured according to actual needs, solving the problem of limited extended nodes of the extended access device and insufficient hardware interfaces of the extended access device. The configuration order of different types of extended modules can also be selected according to actual needs, solving the problem that the connection between the extended access device and the extended modules must be spliced in sequence, and improving the flexibility of the extended access method.
[0150] Figure 3 Schematic diagrams showing other embodiments of the extended access device of the present disclosure.
[0151] like Figure 3 As shown, the extended access device 30 of this embodiment includes: a memory 31 and a processor 32 coupled to the memory 31 , and the processor 32 is configured to execute the extended access method in any one of the aforementioned embodiments based on instructions stored in the memory 31 .
[0152] The memory 31 may include, for example, a system memory, a fixed non-volatile storage medium, etc. The system memory may store, for example, an operating system, an application program, a boot loader, and other programs.
[0153] The extended access device 30 may also include an input / output interface 33, a network interface 34, a storage interface 35, etc. These interfaces 33, 34, 35, the memory 31, and the processor 32 may be connected, for example, via a bus 36. The input / output interface 33 provides a connection interface for input / output devices such as a display, a mouse, a keyboard, a touch screen, a microphone, and a speaker. The network interface 34 provides a connection interface for various networked devices. The storage interface 35 provides a connection interface for external storage devices such as an SD card and a USB flash drive.
[0154] In the above embodiment, the extended access device can dynamically control the different types of extended modules that the extended access device can access, so that the extended access module can flexibly control and select multiple extended modules that have been connected. In addition, a corresponding number of extended modules can be configured according to actual needs, solving the problem of limited extended nodes of the extended access device and insufficient hardware interfaces of the extended access device. The configuration order of different types of extended modules can also be selected according to actual needs, solving the problem that the connection between the extended access device and the extended modules must be spliced in sequence, and improving the flexibility of the extended access method.
[0155] Figure 4 Schematic diagrams showing some embodiments of the extended access system of the present disclosure.
[0156] like Figure 4 As shown, the extended access system 40 includes an extended access device 41 and a plurality of extended modules 42 in any one of the above embodiments.
[0157] The plurality of expansion modules 42 include a target expansion module, wherein the target expansion module is configured to receive a driving instruction through a communication network, and drive a subordinate terminal device corresponding to the driving instruction according to the driving instruction.
[0158] In some embodiments, each of the plurality of extension modules 42 is configured to send an address verification request to the extension access device in a unicast manner through the network, where the address verification request includes actual configuration information.
[0159] In some embodiments, multiple expansion modules 42 include expansion modules that have passed address verification, and the expansion modules that have passed address verification are configured to: determine the data of subordinate terminal devices of the expansion modules that have passed address verification based on target configuration information of the expansion modules that have passed address verification; determine whether the data of the subordinate terminal devices has changed; and when it is determined that the data of the subordinate terminal devices has changed, send terminal device update data to the expansion access device through the communication network, so that the expansion access device updates the stored data of the terminal devices.
[0160] In some embodiments, the expansion module that passes the address check is further configured to: monitor the communication load of the port between the expansion module that passes the address check and the expansion access device; determine whether the port of the expansion module that passes the address check is in a communication ready state based on the communication load of the port between the expansion module that passes the address check and the expansion access device, wherein the communication ready state includes at least one of a send ready state and a receive ready state.
[0161] In some embodiments, the expansion module that has passed the address check is further configured to: when the communication load of the port between the expansion module that has passed the address check and the extended access device is less than or equal to a second load threshold, determine that the port of the expansion module that has passed the address check is in a communication ready state; when the communication load of the port between the expansion module that has passed the address check and the extended access device is greater than the second load threshold, determine that the port of the expansion module that has passed the address check is in a communication not ready state.
[0162] In some embodiments, the expansion module that has passed the address check is further configured to broadcast an overload warning in the communication network when the communication load of the port between the expansion module that has passed the address check and the expansion access device is greater than a second load threshold.
[0163] In some embodiments, an expansion module among multiple expansion modules that fails address verification is configured to: receive a configuration information update request sent by an expansion access device through a communication network, wherein the configuration information update request includes target configuration information; and update actual configuration information according to the target configuration information.
[0164] In some embodiments, each of the plurality of expansion modules 42 is further configured to: send a registration request to the expansion access device; and receive a registration result returned by the expansion access device via a communication network, wherein the registration result is used to indicate a successful registration or a failed registration.
[0165] In some embodiments, the plurality of extension modules 42 include a pre-application extension module and an applied extension module. The pre-application extension module is configured to broadcast a communication address of the pre-application extension module in the communication network; the applied extension module is configured to receive the communication address of the pre-application extension module and determine whether the communication address of the pre-application extension module is consistent with the communication address of the applied extension module.
[0166] In some embodiments, the applied extension module is further configured to: when it is determined that the communication address of the pre-applied extension module is consistent with the communication address of the applied extension module, broadcast a conflict warning in the communication network.
[0167] In some embodiments, the pre-application extension module is further configured to: determine that the application for the pre-application extension module communication address is successful if no conflict warning broadcast by the applied extension module is received within a specified time.
[0168] In some embodiments, the expansion access system 40 further includes an input device configured to input relevant information of the plurality of expansion modules into the expansion access device.
[0169] The input device inputs the relevant information of multiple extension modules into the extension access device, which provides a guarantee for the extension access device to configure the multiple extension modules according to the relevant information of the multiple extension modules, thereby ensuring the feasibility of the extension access method.
[0170] In some embodiments, the extended access system 40 also includes subordinate terminal devices, wherein the subordinate terminal devices include subordinate terminal devices corresponding to drive instructions and subordinate terminal devices not corresponding to drive instructions, wherein the subordinate terminal devices corresponding to the drive instructions are configured to act according to the drive instructions of the target expansion module, and the subordinate terminal devices not corresponding to the drive instructions are configured to wait for driving.
[0171] The subordinate terminal devices corresponding to the driving instructions act according to the driving instructions, and the subordinate terminal devices not corresponding to the driving instructions wait to be driven, which ensures the feasibility of the extended access process and provides feasibility for the extended access device to drive the subordinate terminal devices corresponding to the driving instructions through the extension module.
[0172] In the above embodiment, the extended access device in the extended access system can dynamically control the different types of extended modules that the extended access device can access, so that the extended access module can flexibly control and select multiple extended modules that have been connected. In addition, according to actual needs, a corresponding number of extended modules can be configured, which solves the problem of limited extended nodes of the extended access device and insufficient hardware interfaces of the extended access device. According to actual needs, the configuration order of different types of extended modules can be selected, which solves the problem that the connection between the extended access device and the extended module must be spliced in sequence, and improves the flexibility of the extended access method.
[0173] Figure 5 Schematic diagrams showing other embodiments of the extended access system of the present disclosure.
[0174] like Figure 5 As shown, the extended access system 50 includes a computer program 510 (equivalent to an input device), a main controller 511 (equivalent to an extended access device), multiple extended modules, and multiple terminal devices corresponding to the multiple extended modules. Among them, the multiple extended modules (n extended modules) include extended module 1 (512), extended module 2 (513) to extended module n (514). For extended module 1, it includes multiple subordinate terminal devices (m subordinate terminal devices), namely terminal device 11 (515) to terminal device 1m (516); for extended module 2, it includes multiple subordinate terminal devices (i subordinate terminal devices), namely terminal device 21 (517) to terminal device 2i (518); for extended module n, it includes multiple subordinate terminal devices (j subordinate terminal devices), namely terminal device n1 (519) to terminal device nj (520).
[0175] like Figure 5 As shown, the computer program 510 and the main controller 511 can communicate through the TCP (Transmission Control Protocol) / IP (Internet Protocol) data sharing communication network, and the main controller 511 and multiple expansion modules can communicate through the CAN (Controller Area Network) extended communication network (equivalent to the communication network).
[0176] In the above embodiment, an expansion access system is provided, in which multiple expansion modules are accessed through a port of a main controller, wherein the expansion modules are configured by the main controller according to relevant information of the expansion modules sent by a computer program, thereby solving the problem of insufficient hardware interfaces of the controller and the problem that the expansion nodes of the controller are limited and must be spliced in sequence, thereby realizing the disorderly access of multiple expansion modules to one expansion bus.
[0177] In some embodiments, a computer program product is protected, including a computer program or instruction, which implements the above-mentioned display method when executed by a processor. The computer program product includes a computer instruction carried on a computer-readable medium, and the computer instruction contains a program code for executing the method shown in the flowchart. In such an embodiment, the computer instruction can be downloaded and installed from the network through an extended access device, or installed from a storage device, or installed from a ROM. When the computer program is executed by the CPU, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0178] Those skilled in the art will appreciate that the embodiments of the present disclosure may be provided as methods, systems, or computer program products. Therefore, the present disclosure may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present disclosure may take the form of a computer program product implemented on one or more computer-usable non-transient storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0179] So far, the extended access method, device, system and computer program product of the present disclosure have been described in detail. In order to avoid obscuring the concept of the present disclosure, some details known in the art are not described. Based on the above description, those skilled in the art can fully understand how to implement the technical solution disclosed here.
[0180] The method and system of the present disclosure may be implemented in many ways. For example, the method and system of the present disclosure may be implemented by software, hardware, firmware, or any combination of software, hardware, and firmware. The above order of steps for the method is for illustration only, and the steps of the method of the present disclosure are not limited to the order specifically described above, unless otherwise specifically stated. In addition, in some embodiments, the present disclosure may also be implemented as a program recorded in a recording medium, which includes machine-readable instructions for implementing the method according to the present disclosure. Therefore, the present disclosure also covers a recording medium storing a program for executing the method according to the present disclosure.
[0181] Although some specific embodiments of the present disclosure have been described in detail by way of example, it should be understood by those skilled in the art that the above examples are for illustration only and are not intended to limit the scope of the present disclosure. It should be understood by those skilled in the art that the above embodiments may be modified without departing from the scope and spirit of the present disclosure. The scope of the present disclosure is defined by the appended claims.
Claims
1. An extended access method, performed by an extended access device, comprising: Configure multiple extension modules according to relevant information of the multiple extension modules; Searching the plurality of extension modules for a target extension module corresponding to the received driving instruction; The driving instruction is sent to the target expansion module in a unicast manner through a communication network, so that the target expansion module drives the subordinate terminal device corresponding to the driving instruction.
2. The extended access method according to claim 1, wherein: Querying the target expansion module corresponding to the received driving instruction in the plurality of expansion modules includes: Determine an expansion module among the multiple expansion modules that passes the address check; The target expansion module is queried among the expansion modules that pass the address verification.
3. The extended access method according to claim 2, wherein: The relevant information of the plurality of extension modules includes target configuration information of each extension module in the plurality of extension modules. The step of determining the expansion module among the plurality of expansion modules that has passed the address check comprises: receiving an address verification request from each expansion module, wherein the address verification request includes actual configuration information; The expansion module whose actual configuration information is consistent with the target configuration information among the multiple expansion modules is determined as an expansion module that has passed the address check.
4. The extended access method according to claim 3, further comprising: A configuration information update request is sent to the extension module whose actual configuration information is inconsistent with the target configuration information in a unicast manner through the communication network, so that the extension module whose actual configuration information is inconsistent with the target configuration information updates the actual configuration information according to the target configuration information, wherein the configuration information update request includes the target configuration information.
5. The extended access method according to claim 2, further comprising: Receiving terminal device update data sent by the expansion module that has passed the address verification through the communication network; According to the terminal device update data, the saved data of the terminal device is updated.
6. The extended access method according to any one of claims 1 to 5, further comprising: Monitoring the communication load of the port between the extended access device and the extended module that has passed the address verification; According to the communication load of the port between the extended access device and the extended module that has passed the address check, it is determined whether the port of the extended access device is in a communication ready state, wherein the communication ready state includes at least one of a sending ready state and a receiving ready state.
7. The extended access method according to claim 6, wherein: The step of determining whether the port of the extended access device is in a communication ready state according to the communication load of the port between the extended access device and the extended module that has passed the address check comprises: In a case where the communication load of the port between the extended access device and the extended module that has passed the address check is less than or equal to a first load threshold, determining that the port of the extended access device is in the communication ready state; When the communication load of the port between the extended access device and the extended module that has passed the address check is greater than the first load threshold, it is determined that the port of the extended access device is in a communication unready state.
8. The extended access method according to claim 7, further comprising: When the communication load of the port between the expansion access device and the expansion module that has passed the address check is greater than the first load threshold, an overload warning is broadcast in the communication network.
9. The extended access method according to any one of claims 1 to 5, wherein: The relevant information of the plurality of expansion modules includes the type of each expansion module in the plurality of expansion modules, the communication address of each expansion module and the target configuration information of each expansion module.
10. The extended access method according to any one of claims 2 to 5, wherein: The step of determining the expansion module among the plurality of expansion modules that has passed the address check comprises: receiving a registration request for each of the plurality of extension modules; Returning a registration result to each of the extension modules via the communication network, wherein the registration result is used to indicate a registration success or a registration failure; The extension module that has passed the address verification is determined among the successfully registered extension modules.
11. The extended access method according to claim 3 or 4, wherein: The target configuration information of each expansion module includes at least one of the target sub-configuration information of each expansion module, the target point type of each expansion module and the target point address of each expansion module, the target point type is used to indicate whether the parameter of the subordinate terminal device of the expansion module is an analog quantity or a digital quantity, and the target point address is used to indicate the query address of the parameter of the subordinate terminal device of the expansion module.
12. An extended access device, comprising: A configuration unit, configured to configure the multiple extension modules according to the relevant information of the multiple extension modules; A query unit, configured to query the target expansion module corresponding to the received driving instruction among the plurality of expansion modules; The sending unit is configured to send the driving instruction to the target expansion module in a unicast manner through a communication network, so that the target expansion module drives the subordinate terminal device corresponding to the driving instruction.
13. An extended access device, comprising: Memory; and A processor coupled to the memory, wherein the processor is configured to execute the extended access method according to any one of claims 1 to 11 based on instructions stored in the memory.
14. An extended access system, comprising: The extended access device as claimed in claim 12 or 13; A plurality of expansion modules include a target expansion module, wherein the target expansion module is configured to receive the driving instruction through the communication network, and drive a subordinate terminal device corresponding to the driving instruction according to the driving instruction.
15. The expansion system according to claim 14, wherein: The multiple expansion modules include expansion modules that pass address verification, The expansion module that passes the address check is configured as follows: Determining data of a subordinate terminal device of the expansion module that has passed the address check according to the target configuration information of the expansion module that has passed the address check; Determine whether the data of the subordinate terminal device has changed; When it is determined that the data of the subordinate terminal device has changed, terminal device update data is sent to the extended access device via the communication network, so that the extended access device updates the stored data of the terminal device.
16. The extended access system according to claim 14, wherein: Each of the multiple extension modules is configured to send an address verification request to the extended access device in a unicast manner through the network, and the address verification request includes actual configuration information.
17. The extended access system according to claim 16, wherein: The expansion modules among the multiple expansion modules that fail the address check are configured as follows: receiving a configuration information update request sent by the extended access device through the communication network, wherein the configuration information update request includes target configuration information; According to the target configuration information, the actual configuration information is updated.
18. The extended access system according to any one of claims 15 to 17, wherein: The expansion module that passes the address check is also configured as follows: Monitoring the communication load of the port between the expansion module that has passed the address check and the expansion access device; According to the communication load of the port between the expansion module that has passed the address check and the expansion access device, it is determined whether the port of the expansion module that has passed the address check is in a communication ready state, wherein the communication ready state includes at least one of a sending ready state and a receiving ready state.
19. The extended access system according to claim 18, wherein: The expansion module that passes the address check is also configured as follows: In a case where the communication load of the port between the expansion module that has passed the address check and the expansion access device is less than or equal to a second load threshold, determining that the port of the expansion module that has passed the address check is in the communication ready state; When the communication load of the port between the expansion module that has passed the address check and the expansion access device is greater than the second load threshold, it is determined that the port of the expansion module that has passed the address check is in a communication unready state.
20. The extended access system according to claim 19, wherein: The expansion module that passes the address check is also configured as follows: When the communication load of the port between the expansion module that has passed the address check and the expansion access device is greater than the second load threshold, an overload warning is broadcast in the communication network.
21. The extended access system according to any one of claims 14 to 17, wherein: Each of the plurality of expansion modules is further configured to: Sending a registration request to the extended access device; A registration result returned by the extended access device is received through the communication network, wherein the registration result is used to indicate a registration success or a registration failure.
22. The extended access system according to any one of claims 14 to 17, wherein: The multiple expansion modules include pre-application expansion modules and applied expansion modules, The pre-application extension module is configured to broadcast a communication address of the pre-application extension module in the communication network; The applied extension module is configured to receive the communication address of the pre-applied extension module and determine whether the communication address of the pre-applied extension module is consistent with the communication address of the applied extension module.
23. The extended access system according to claim 22, wherein: The applied extension module is also configured as follows: When it is determined that the communication address of the pre-applied extension module is consistent with the communication address of the applied extension module, a conflict warning is broadcasted in the communication network.
24. The extended access system according to claim 23, wherein: The pre-application extension module is further configured to: If the conflict warning broadcast by the applied extension module is not received within the specified time, it is determined that the application for the communication address of the pre-applied extension module is successful.
25. The extended access system according to any one of claims 14 to 17, further comprising: The input device is configured to input relevant information of the multiple expansion modules into the expansion access device.
26. The extended access system according to any one of claims 14 to 17, further comprising: The subordinate terminal devices include subordinate terminal devices corresponding to the driving instructions and subordinate terminal devices not corresponding to the driving instructions, wherein the subordinate terminal devices corresponding to the driving instructions are configured to act according to the driving instructions of the target expansion module, and the subordinate terminal devices not corresponding to the driving instructions are configured to wait for driving.
27. A computer-readable storage medium having computer instructions stored thereon, wherein when the instructions are executed by a processor, the extended access method according to any one of claims 1 to 11 is implemented.
28. A computer program product, comprising computer instructions, wherein when the computer instructions are executed by a processor, the extended access method according to any one of claims 1 to 11 is implemented.
Citation Information
Patent Citations
Control system, control method thereof and computer readable storage medium
CN114594672A
Data processing method, extension device, control system and storage medium
CN115118795A
Equipment control system, method and device, electronic equipment and storage medium
CN116633987A
Computing power network system and operation method of computing power network system
CN117395257A
ECU (Electronic Control Unit) access method, system and equipment based on command line and storage medium
CN118432972A