Management method and apparatus for ethernet protocol categories of APL device, and load cell
The method and apparatus for APL devices automatically detect and switch Ethernet protocols using interface connection states, addressing operational complexity and environmental limitations, ensuring safe and adaptable protocol management in hazardous settings.
Patent Information
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- METTLER TOLEDO (CHANGZHOU) PRECISION INSTR CO LTD
- Filing Date
- 2025-08-21
- Publication Date
- 2026-04-23
AI Technical Summary
Existing methods for switching Ethernet protocol categories in APL devices are limited in environmental adaptability, complex in operation, and dependent on specialized devices and software, posing risks in harsh environments like oil and chemical facilities.
A management method and apparatus that automatically detects and switches Ethernet protocol categories using connection states of communication interfaces without additional human-machine interaction or specialized devices, utilizing a state detection circuit and indicator components to indicate and switch protocols through plugging and unplugging operations.
Enables simple, independent operation in hazardous environments by automatically identifying and switching Ethernet protocols, enhancing adaptability and reducing operational complexity and error risks.
Smart Images

Figure CN2025116006_23042026_PF_FP_ABST
Abstract
Description
MANAGEMENT METHOD AND APPARATUS FOR ETHERNET PROTOCOL CATEGORIES OF APL DEVICE, AND LOAD CELLTechnical Field
[0001] The present disclosure mainly relates to the technical field of communications, and in particular, to a management method and apparatus for Ethernet protocol categories of an APL device, and a load cell.Background Art
[0002] The Ethernet protocol includes various categories, such as the process field network (PROFINET) protocol, Ethernet / industrial protocol (Ethernet / IP) , and HART over IP (HART-IP) protocol. An advanced physical layer (APL) field device refers to a field device with an Ethernet-APL interface, capable of supporting various Ethernet categories. To adapt to different customer sites, the APL device needs to indicate its Ethernet protocol categories and switch its Ethernet protocol according to different requirements.
[0003] In the prior art, an additional interactive interface is often designed in the APL device, such as a graphical interactive interface, a button, and a DIP switch. Through the interactive interface, staff can learn about the Ethernet protocol categories of the APL device and switch to the required Ethernet protocol through the interactive interface. Another conventional design for learning about and switching to the required Ethernet protocol category involves checking an IP address of the APL device and then using a specialized device with a network interface (e.g., a personal computer) to query and switch the Ethernet protocol categories.
[0004] However, in certain harsh or special environments (e.g., in oil, chemical, and coal mining environments) , the installation and wiring of an electrical device must strictly adhere to explosion-proof standards. The additional arrangement of an external interface may damage an explosion-proof structure of the device and increase the risk of explosion. Therefore, in such environments, reliance on the external interface should be minimized. In yet another conventional design, an operator can obtain and switch the Ethernet protocol category of the APL device only when carrying the specialized device and having knowledge of the IP address of the APL. Sometimes, specific software is also required for the operation. If the operator forgets to bring the specialized device or cannot ascertain the IP address of the APL device, the operator will be unable to query or switch the Ethernet protocol category. Additional software operations also increase the operation complexity for the operator and the risk of errors due to improper handling or misoperations.
[0005] Therefore, there is an urgent need for a management method and device that allows the APL device to switch between Ethernet protocol categories without requiring the interactive interface, and with simple operations and strong independence.Summary of the Invention
[0006] The present disclosure provides a management method and apparatus for Ethernet protocol categories of an APL device, and a load cell, to solve the technical problems that an existing method for switching Ethernet protocol categories of an APL device is limited in environmental adaptability, highly complex in operation, dependent on a specialized device, etc.
[0007] In order to solve the above technical problems, the present disclosure provides a management method and apparatus for Ethernet protocol categories of an APL device, and a load cell.
[0008] In a first aspect, the present disclosure provides a management method for Ethernet protocol categories of an APL device. The method includes the following steps: connecting the APL device to an APL switch, where the APL device includes communication interfaces, and the communication interfaces include a first APL communication interface and a second APL communication interface; detecting connection states of the first APL communication interface and the second APL communication interface; in response to detecting that both the first APL communication interface and the second APL communication interface are connected to the APL switch, selecting one of the communication interfaces as a target interface, disconnecting the target interface from the APL switch and maintaining the disconnection for a first duration, then restoring the connection for a second duration, and after the second duration, providing an indication by the APL switch according to prestored Ethernet protocol categories; and identifying a current Ethernet protocol category of the APL device according to the indication.
[0009] In an embodiment of the present disclosure, the APL switch includes an indicator component. The step of providing an indication by the APL switch includes: the indicator component providing an indication according to a first pattern, where different first patterns are used to represent different Ethernet protocol categories.
[0010] In an embodiment of the present disclosure, operation states of the indicator component include a first state and a second state. The first pattern includes repeatedly performing the following process: the indicator component alternately switches between the first state and the second state, and after the number of switches reaches a first preset number, the indicator component remains in the second state for a second preset duration.
[0011] In an embodiment of the present disclosure, the first pattern further includes: after the number of repetitions of the first pattern reaches a preset threshold, the indicator component remaining in the first state.
[0012] In an embodiment of the present disclosure, the management method for Ethernet protocol categories of an APL device further includes: switching the current Ethernet protocol category to a target category after the indicator component remains in the first state; and the step of switching the current Ethernet protocol category to a target category includes: selecting the target interface from the first APL communication interface and the second APL communication interface; repeatedly disconnecting and connecting the target interface from / to the APL switch according to a second pattern, different second patterns being used to represent different Ethernet protocol categories to which the device is to be switched; and maintaining a connection between the target interface and the APL switch, and storing the Ethernet protocol category corresponding to the second pattern in a memory of the APL device.
[0013] In an embodiment of the present disclosure, the second pattern includes performing the following process; alternately switching the connection state of the target interface with respect to the APL switch between a disconnected state and a connected state, and after the number of switches reaches a second preset number, maintaining the connected state of the target interface with respect to the APL switch for a second preset duration.
[0014] In an embodiment of the present disclosure, the connection state is a power connection state or a communication connection state.
[0015] In a second aspect, the present disclosure provides a management apparatus for Ethernet protocol categories of an APL device, including a state detection circuit, arranged on the APL device, where the APL device includes communication interfaces, and the communication interfaces include a first APL communication interface and a second APL communication interface;
[0016] the state detection circuit includes a processor, a first current detection circuit, and a second current detection circuit, and the first current detection circuit is connected between the first APL communication interface and the processor, and is configured to detect a connection state of the first APL communication interface with respect to the APL switch; the second current detection circuit is connected between the second APL communication interface and the processor, and is configured to detect a connection state of the second APL communication interface with respect to the APL switch; and the processor is configured to: perform the management method in the first aspect.
[0017] In an embodiment of the present disclosure, the state detection circuit further includes a first switch control circuit and a second switch control circuit, the first switch control circuit is respectively connected to the first current detection circuit and the processor, the second switch control circuit is respectively connected to the second current detection circuit and the processor, and the processor is configured to: control a power connection state of the first APL communication interface through the first switch control circuit, and control a power connection state of the second APL communication interface through the second switch control circuit.
[0018] In an embodiment of the present disclosure, the management apparatus further includes a first PHY module and a second PHY module, the first PHY module is connected to the first APL communication interface, the second PHY module is connected to the second APL communication interface, and the processor is further configured to: control a communication connection state of the first APL communication interface through the first PHY module, and control a communication connection state of the second APL communication interface through the second PHY module.
[0019] In a third aspect, the present disclosure provides an APL load cell, including the management apparatus for the Ethernet protocol categories of the APL device in the second aspect.
[0020] According to the management method provided in the present disclosure, by detecting the connection between the communication interfaces of the APL device and the APL switch, the Ethernet protocol category of the APL device is automatically indicated without introducing an additional human-machine interaction interface, or depending on the specialized device for Ethernet protocol indication. In the Ethernet protocol category switching process, there is no need for a specialized operation instrument. By using the number of times of plugging and unplugging of the communication interface, the Ethernet protocol category of the APL device may be flexibly set. Therefore, the management method has the advantages of simple operation and high independence, improves the environmental adaptability of the APL device, and may be used in explosion-proof scenarios such as the coal mining industry and the petrochemical industry.Brief Description of the Drawings
[0021] The accompanying drawings are included to provide a further understanding of the present disclosure and are incorporated in and constitute a part of the present disclosure, which shows the embodiments of the present disclosure and serves to, together with this specification, explain the principles of the present disclosure. In the accompanying drawings:
[0022] FIG. 1 is a block diagram of a management apparatus for Ethernet protocol categories of an APL device according to an embodiment of the present disclosure;
[0023] FIG. 2 is a block diagram of a management apparatus for Ethernet protocol categories of an APL device according to another embodiment of the present disclosure;
[0024] FIG. 3 is a schematic diagram of a circuit including a management apparatus according to an embodiment of the present disclosure; and
[0025] FIG. 4 is an exemplary flowchart of a management method for Ethernet protocol categories of an APL device according to an embodiment of the present disclosure.Detailed Description of Embodiments
[0026] To describe the technical solutions in embodiments of the present disclosure more clearly, the accompanying drawings required for describing the embodiments will be briefly described below. Apparently, the accompanying drawings in the following description show merely some examples or embodiments of the present disclosure, and those of ordinary skill in the art may also apply the present disclosure to other similar scenarios according to these accompanying drawings without any creative effort. Unless it is obvious from the context or otherwise stated, the same reference numerals in the accompanying drawings represent the same structure or operation.
[0027] As shown in the present disclosure, unless the context expressly indicates otherwise, the words "one" , "a" , "an" , and / or "the" do not specifically refer to the singular, but may also include the plural. Generally, the terms "include" and "comprise" only suggest that the expressly identified steps and elements are included, but these steps and elements do not constitute an exclusive list, and the method or device may further include further steps or elements.
[0028] Unless specifically stated otherwise, 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. In addition, it should be understood that, for ease of description, the sizes of various parts shown in the accompanying drawings are not drawn to scale. The technologies, methods, and devices known to those of ordinary skill in the related art may not be discussed in detail, but where appropriate, the technologies, methods, and devices should be regarded as part of the specification. In all examples shown and discussed here, any specific value should be interpreted as merely exemplary and not as limiting. Therefore, other examples of the exemplary embodiment may have different values. It should be noted that similar reference numerals and letters refer to similar items in the following accompanying drawings. Therefore, once a specific item is defined in one of the accompanying drawings, there is no need for further discussion on the item in the subsequent accompanying drawings.
[0029] In addition, it should be noted that, the use of terms such as "first" and "second" to define parts is merely for ease of facilitating differentiation of the corresponding parts. If not otherwise stated, the above terms have no special meanings and thus cannot be construed as limiting the scope of protection of the present disclosure. Furthermore, although the terms used in the present disclosure are selected from well-known common terms, some of the terms mentioned in the specification of the present disclosure may have been selected by the applicant according to his or her judgment, and the detailed meaning thereof is described in the relevant section described herein. Furthermore, the present disclosure must be understood not simply through the actual terms used but also through the meanings embodied in each term.
[0030] In the present disclosure, a flowchart is used to illustrate the operations performed by a system according to the embodiments of the present disclosure. It should be understood that the preceding or following operations are not necessarily performed exactly in order. Instead, the various steps may be processed in reverse order or simultaneously. In addition, other operations are added to these processes, or operations of a certain step or several steps are removed from these processes.
[0031] FIG. 1 is a block diagram of a management apparatus for Ethernet protocol categories of an APL device according to an embodiment of the present disclosure, which also illustrates an APL device 100 and an APL switch 200. Referring to FIG. 1, the management apparatus in this embodiment includes a state detection circuit 300 arranged on the APL device 100, where the APL device 100 includes communication interfaces, and the communication interfaces include a first APL communication interface 101 and a second APL communication interface 102. Referring to FIG. 1, the state detection circuit 300 includes a first current detection circuit 301, a second current detection circuit 302, and a processor 303. The first current detection circuit 301 is connected between the first APL communication interface 101 and the processor 303, and is used to detect a connection state of the first APL communication interface 101 with respect to the APL switch 200. The second current detection circuit 302 is connected between the second APL communication interface 102 and the processor 303, and is used to detect a connection state of the second APL communication interface 102 with respect to the APL switch 200.
[0032] In an embodiment of the present disclosure, the first APL communication interface 101 of the APL device 100 is connected to a first communication interface 201 of the APL switch 200, and the second APL communication interface 102 is connected to a second communication interface 202 of the APL switch 200. The connection may be implemented using a twisted pair cable, a registered jack RJ45, or a three-line structure. Three lines in the three-line structure may include, for example, a power line, a ground line, and a data line. The APL switch 200 can connect a plurality of APL devices to form a communication network, is responsible for forwarding data packets between devices in the network, and additionally, can also provide power to the APL device 100. Specifically, in this embodiment, the APL device 100 refers generally to an electronic device that adopts an advanced physical layer technology and is capable of communicating with the APL switch 200 and other APL devices 100 through the Ethernet protocol. In the management apparatus shown in FIG. 1, no additional human-machine interaction interface is added, which reduces the complexity of the management apparatus, and improves the environmental adaptability of the APL device. In the management apparatus shown in FIG. 1, the processor 303 is configured to perform a management method for Ethernet protocol categories of an APL device according to the present disclosure, thereby achieving automatic identifying of a current Ethernet protocol category of the APL device 100 and facilitating the switching of the Ethernet protocol category of the APL device 100 through a simple operation, without excessive human intervention or additional devices. The operation is simple, and the environmental adaptability is high. A detailed description of the management method will be provided later.
[0033] FIG. 2 is a block diagram of a management apparatus for Ethernet protocol categories of an APL device according to another embodiment of the present disclosure. Referring to FIG. 2, in an embodiment of the present disclosure, the state detection circuit 300 further includes a first switch control circuit 304 and a second switch control circuit 305. The first switch control circuit 304 is respectively connected to the first current detection circuit 301 and the processor 303, and the second switch control circuit 305 is respectively connected to the second current detection circuit 302 and the processor 303. The processor 303 is also configured to: control a power connection state of the first APL communication interface 101 through the first switch control circuit 304, and control a power connection state of the second APL communication interface 102 through the second switch control circuit 305.
[0034] Continuing to refer to FIG. 2, in another embodiment of the present disclosure, the management apparatus further includes a first physical (PHY) module 103 and a second PHY module 104. The first PHY module 103 is connected to the first APL communication interface 101, and the second PHY module 104 is connected to the second APL communication interface 102. According to these embodiments, the processor 303 is also configured to: control a communication connection state of the first APL communication interface 101 through the first PHY module 103, and control a communication connection state of the second APL communication interface 102 through the second PHY module 104.
[0035] It should be noted that the connection state of the communication interface of the APL device 100 may be characterized in two aspects, the first aspect is the connection state of the communication interface with respect to a power supply, and the second aspect is the communication connection state of the communication interface. Therefore, in the above two embodiments, one is to control the power connection state of the communication interface through the switch control circuit between the communication interface and the power supply, and the other one is to control the communication connection state of the communication interface through the PHY module. In a third embodiment, the power connection state and the communication connection state of the communication interface may also be simultaneously controlled through both the switch control circuit and the PHY module.
[0036] FIG. 3 illustrates a schematic diagram of a circuit including a management apparatus according to an embodiment of the present disclosure. FIG. 3 schematically expands circuits in various modules based on FIG. 1 and FIG. 2, and therefore the same reference numerals are adopted for the identical modules. As shown in FIG. 3, the first current detection circuit 301 includes a resistor 3011, a comparator 3012, and an analog-to-digital converter 3013. Two input ends of the comparator 3012 are connected in parallel across two ends of the resistor 3011. An output end of the comparator 3012 is connected to one end of the analog-to-digital converter 3013, and the other end of the analog-to-digital converter 3013 is connected to the processor 303. Taking the first current detection circuit 301 as an example, assuming that there is a current flowing through the first APL communication interface 101, the current flows through the resistor 3011 of the first current detection circuit 301, creating a voltage difference, and the comparator 3012 outputs an electrical signal due to the existence of the voltage difference, such as a high level. The electrical signal of the comparator 3012 is transmitted through a circuit to the analog-to-digital converter 3013, and is further transmitted to the processor 303. The processor 303 receives the electrical signal output by the analog-to-digital converter 3013, and then the connection between the first APL communication interface 101 and the APL switch 200 is detected. The second current detection circuit 302 and the first current detection circuit 301 are the same in structure and similar in function, with the difference being that the second current detection circuit 302 is connected to the second APL communication interface 102, and therefore the structure and the working principle of the second current detection circuit 302 are not repeated herein.
[0037] As shown in FIG. 3, the first switch control circuit 304 includes two transistors. The present disclosure does not limit a specific type and model of the transistor. According to FIG. 3, the transistor 3042 is an NPN type, and the other transistor 3041 is a PNP type. Taking triodes as an example, a base of the transistor 3041 is connected to a collector of the transistor 3042, a resistor 3043 is connected between the base and an emitter of the transistor 3041, and a resistor 3044 is connected between a base and an emitter of the transistor 3042. The first switch control circuit 304 forms four terminals externally. An emitter terminal of the transistor 3041 is connected to the first current detection circuit 301, a collector terminal of the transistor 3041 is connected to a dual-power switch 306, a base terminal of the transistor 3042 is connected to the processor 303, and an emitter terminal of the transistor 3042 is connected to the ground of the device (the potential is zero) . The first switch control circuit 304 and the second switch control circuit 305 have the same circuit structure and working principle, which will not be repeated herein. It should be noted that the dual-power switch 306 may also be arranged in the APL device 100 to selectively connect the APL device 100 to an electrical device. The dual-power switch 306 is used to select the first switch control circuit 304 or the second switch control circuit 305 to be connected to the electrical device. When the dual-power switch 306 connects the first switch control circuit 304, the first APL communication interface 101 supplies power to the subsequent electrical device.
[0038] The following is an example for describing a circuit principle. As shown in FIG. 3, assuming that the two communication interfaces of the APL device 100 are respectively connected to two communication interfaces of the APL switch 200, the processor 303 selects to open the first switch control circuit 304, such as by outputting a high level to the first switch control circuit 304, accordingly, the voltage difference between the base and the emitter of the transistor 3042 is greater than a critical voltage, and the transistor 3042 is in an operating state. After the transistor 3042 is in the operating state, the transistor 3041 can form a circuit loop with the transistor 3042 and operate normally. In this case, the processor 303 does not open the second control circuit 305, such as by outputting a low level to the second switch control circuit 305, accordingly, a voltage difference between a base and an emitter of a transistor 3051 is less than a critical voltage, the transistor 3051 is in the off state, a transistor 3052 cannot form a circuit loop with the transistor 3051, and therefore the transistor 3052 is also in the off state. If the processor 303 opens the second switch control circuit 305, such as by outputting a high level to the second switch control circuit 305, the transistor 3051 is in the operating state, and the transistor 3052 is also in the operating state. Therefore, the connection state of the first APL communication interface 101 or the second APL communication interface 102 with respect to the APL switch 200 may be controlled through the first switch control circuit 304 or the second switch control circuit 305.
[0039] In some embodiments, when the connection state of the communication interface does not need to be detected, the processor 303 does not send an electrical signal to the second switch control circuit 305, such as a low level, and therefore the second switch control circuit 305 does not operate, the communication interface cannot establish a conductive path, there is no potential difference across the second current detection circuit 302, and accordingly the comparator 3022 cannot output the electrical signal. When the connection state of the communication interface needs to be detected in real time, the processor 303 may continuously output a high level to the second switch control circuit 305, thereby allowing the communication interface to be in a connected state all the time.
[0040] The APL switch 200 in the present disclosure is provided with an indicator component (not shown in the figure) , which is used to indicate whether the communication interface of the APL device 100 is connected to the communication interface of the APL switch 200. In this embodiment, the connection states of the communication interfaces of the APL device 100 may be controlled through the first switch control circuit 304 and the second switch control circuit 305, or through the first PHY module 103 and the second PHY module 104. The first PHY module 103 and the second PHY module 104 may be PHY chips.
[0041] The management apparatus for the Ethernet protocol categories of the APL device provided in this embodiment does not need an additional human-machine interaction interface, has the advantages of simple operation and high independence, improves the environmental adaptability of the APL device, and may be used in explosion-proof scenarios such as the coal mining industry and the petrochemical industry.
[0042] FIG. 4 is an exemplary flowchart of a management method for Ethernet protocol categories of an APL device according to an embodiment of the present disclosure. The management method may be specifically performed by the aforementioned management apparatus, but is not limited thereto. The following is a description of the management method in combination with the aforementioned management apparatus. As shown in FIG. 4, the management method includes the following steps:
[0043] Step S410: Connect the APL device 100 to the APL switch 200, where the APL device 100 includes communication interfaces, and the communication interfaces include the first APL communication interface 101 and the second APL communication interface 102.
[0044] Step S420: Detect connection states of the first APL communication interface 101 and the second APL communication interface 102.
[0045] Step S430: In response to detecting that both the first APL communication interface 101 and the second APL communication interface 102 are connected to the APL switch 200, select one of the communication interfaces as a target interface, disconnect the target interface from the APL switch 200 and maintain the disconnection for a first duration, then restore the connection for a second duration, and after the second duration, provide an indication by the APL switch 200 according to prestored Ethernet protocol categories.
[0046] Step S440: Identify a current Ethernet protocol category of the APL device 100 according to the indication.
[0047] The following provides a detailed description of steps S410 to S440 mentioned above in combination with FIG. 1 to FIG. 4.
[0048] In step S410, the connection between the APL device 100 and the APL switch 200 may be implemented using a twisted pair cable, a registered jack RJ45, or a three-line structure. Three lines in the three-line structure may include, for example, a power line, a ground line, and a data line.
[0049] In step S420, the connection state of the communication interface of the APL device 100 may be characterized in two aspects, the first aspect is a connection state of the communication interface with respect to a power supply, and the second aspect is a communication connection state of the communication interface. Therefore, in the above two embodiments, one is to control the power connection state of the communication interface through a switch control circuit between the communication interface and the power supply, and the other one is to control the communication connection state of the communication interface through a PHY module. In the third embodiment, the power connection state and the communication connection state of the communication interfaces may also be simultaneously controlled through both the switch control circuit and the PHY module. Specifically, detecting a communication state of the first APL communication interface 101 and the second APL communication interface 102 may be implemented through the first current detection circuit 301 and the second current detection circuit 302 shown in FIG. 2, and a working principle of the current detection circuit is as previously described.
[0050] In step S430, assuming that the first switch control circuit 304 and the second switch control circuit 305 are turned on, the processor 303 may detect that both the first APL communication interface 101 and the second communication interface are connected to the APL switch 200 through the first current detection circuit 301 and the second current detection circuit 302. Assuming that the processor 303 selects the second APL communication interface 102 as the target interface, in the following example, the second APL communication interface 102 is used as the target interface. The processor 303 may control a connection state of the second APL communication interface 102 with respect to the second communication interface 202 of the APL switch through the second switch control circuit 305. When the processor 303 turns off the second switch control circuit 305, the second APL communication interface is disconnected from the APL switch, and when the processor 303 turns on the second switch control circuit 305, the connection between the second APL communication interface and the APL switch is restored, and a working principle of the switch control circuit is as previously described. Specifically, in the process of maintaining the disconnection for the first duration and restoring the connection for the second duration, time control may be implemented through a timer of the processor 303. In some other embodiments, the first APL communication interface 101 may also be selected as the target interface.
[0051] In some embodiments, the APL switch 200 includes an indicator component. When the first APL communication interface 101 or the second APL communication interface is connected to the communication interface of the APL switch 200, the indicator component is in a first state, and when the first APL communication interface 101 or the second APL communication interface is disconnected from the communication interface of the APL switch 200, the indicator component is in a second state. Step S430 further includes: the indicator component providing an indication according to a first pattern, where different first patterns are used to represent different Ethernet protocol categories.
[0052] Specifically, operation states of the indicator component include the first state and the second state. The first pattern includes repeatedly performing the following process: the indicator component alternately switches between the first state and the second state, and after the number of switches reaches a first preset number, the indicator component remains in the second state for a first preset duration.
[0053] The present disclosure does not limit a specific implementation of the indicator component. Exemplarily, the indicator component is a controllable light that can be turned on and off. The indicator component may also provide other common physical quantities to indicate different states, such as sound and vibration.
[0054] In some embodiments, the indicator component of the APL switch 200 is an LED light, with the first state being constantly on and the second state being off. State switching of the LED light is achieved through a switching circuit. When the second switch control circuit 305 is turned off, the LED light will be off, and when the second switch control circuit 305 is turned on, the LED light will be constantly on. Therefore, the processor 303 may alternately switch a current connection of the second APL communication interface 102 by controlling the second switch control circuit 305, thereby allowing the LED light to be alternately switched between on and off. After the first preset number of switches is reached, the LED light remains in the off state for the first preset duration. According to different first preset numbers, the number of alternate switches between on and off of the LED light varies, thereby presenting different first patterns. For example, when the first preset number is 1, the alternate switch between on and off of the LED light is performed only once, and when the first preset number is 2, the alternate switch between on and off of the LED light is performed twice. In the first pattern, the LED off time is controlled through the first duration, and the LED on time is controlled through the second duration. The preset number controls the number of alternations between on and off of the LED light, and the Ethernet protocol category of the APL device is indicated according to the number of the alternations of the LED light.
[0055] In some embodiments, specifically, to effectively indicate the Ethernet protocol category of the APL device, the LED light will repeatedly perform the first pattern and operate according to the first pattern until the number of repetitions of the first pattern reaches a preset threshold. For example, when the preset threshold is 2, the first pattern is repeated twice. Meanwhile, to distinguish the number of times the LED exhibits the first pattern from the preset threshold, the LED light will remain in the off state after each completion of the first pattern. That is, after the LED light completes the first preset number, the LED light remains in the off state for a second preset duration. For example, when the first preset number is 1, after the LED light alternately switches between on and off once, the LED light remains in the off state for the second preset duration. After the second preset duration ends, the LED light performs the first pattern according to the first preset number until the number of repetitions of the first pattern reaches the preset threshold. After the number of repetitions of the first pattern reaches the preset threshold, the LED light remains in the on state, indicating that a process of indicating the Ethernet protocol category of the APL device 100 is completed, and an operator may proceed to other steps.
[0056] In some embodiments, the first preset number is set to 1, 2, and 3, which may be set to other values in other embodiments. In some embodiments, the first preset duration is set to 4 seconds, which may be set to other values in other embodiments. In some embodiments, that preset threshold is set to 3. In some embodiments, the first duration is set to 1 second, and the second duration is set to 2 seconds, both of which may be set to other values in other embodiments.
[0057] According to the above set values, the following three different patterns may be obtained:
[0058] 1. If a cycle of the LED light being on for 1 second and off for 2 seconds is executed once and then the LED light remains off for 4 seconds, and after the process is repeated three times, the LED light stays on, it is indicated that the current Ethernet protocol category is Ethernet protocol 1.
[0059] 2. If a cycle of the LED light being on for 1 second and off for 2 seconds is executed twice and then the LED light remains off for 4 seconds, and after the process is repeated three times, the LED light stays on, it is indicated that the current Ethernet protocol category is Ethernet protocol 2.
[0060] 3. If a cycle of the LED light being on for 1 second and off for 2 seconds is executed three times and then the LED light remains off for 4 seconds, and after the process is repeated three times, the LED light stays on, it is indicated that the current Ethernet protocol category is Ethernet protocol 3.
[0061] The Ethernet protocols 1, 2, and 3 may respectively correspond to any one of the PROFINET protocol, the Ethernet / IP protocol, and the HART-IP protocol, which is not limited by the present disclosure. In other embodiments, the first preset number and the Ethernet protocol category may be set according to an Ethernet protocol type of the APL device 100. According to the management method, the Ethernet protocol category of the APL device is automatically indicated by detecting the connection between the communication interfaces of the APL device 100 and the APL switch 200, without introducing the additional human-machine interaction interface or relying on a specialized device for Ethernet protocol indication.
[0062] In another embodiment, the connection state represents the communication connection state, and accordingly, the APL device 100 may control the communication connection through the first PHY module 103 and the second PHY module 104, such as disconnecting and establishing the communication connection. When the communication connection is disconnected, the indicator component of the APL switch 200 is in the second state, and when the communication connection is normal, the indicator component of the APL switch 200 is in the first state. The APL device 100 may control the indicator component of the APL switch 200 by controlling the communication connection, thereby providing an indication of the Ethernet protocol category.
[0063] In another embodiment, a management method for Ethernet protocol categories of the APL device 100 further includes: switching a current Ethernet protocol category to a target category after the indicator component remains in the first state. The step of switching a current Ethernet protocol category to a target category includes the following steps:
[0064] Step S451: Select a target interface from the first APL communication interface 101 and the second APL communication interface 102.
[0065] Step S452: Repeatedly disconnect and connect the target interface from / to the APL switch 200 according to a second pattern, where different second patterns are used to represent different Ethernet protocol categories to which the device is to be switched.
[0066] Step S453: Maintain a connection between the target interface and the APL switch 200, and store the Ethernet protocol category corresponding to the second pattern in a memory of the APL device 100.
[0067] It should be noted that the APL device 100 typically supports a plurality of Ethernet protocols and selects an appropriate Ethernet protocol according to different usage scenarios. Ethernet protocol category switching is typically performed after identifying the current Ethernet protocol category of the APL device 100 based on the indication, that is, after the indicator component remains in the first state. In some embodiments, the LED remains in a constantly on state after the number of repetitions of the first pattern exhibited by the LED light reaches the preset threshold.
[0068] The following provides a detailed description of steps S451 to S453 mentioned above in combination with the accompanying drawings.
[0069] It should be noted that before step S452, both the first APL communication interface 101 and the second APL communication interface 102 should be connected to the APL switch 200. Then, the target interface is selected in step S451, which is consistent with the target interface selected in step S430. If the target interface of the Ethernet protocol is indicated as the second APL communication interface 102, the target interface of the Ethernet protocol category is switched to the second APL communication interface 102. If the target interface of the Ethernet protocol is indicated as the first APL communication interface 101, the target interface of the Ethernet protocol category is switched to the first APL communication interface 101. In step S452, disconnection and connection refer to disconnecting or connecting the communication interface in a plugging and unplugging manner. For example, the APL device 100 and the APL switch 200 are connected through a twisted pair cable, and disconnecting and connecting the communication interface refer to unplugging the twisted pair cable and connecting the twisted pair cable. Finally, in step S453, the target interface and the APL switch 200 are kept connected, and the Ethernet protocol category corresponding to the second pattern is stored in the memory of the APL device 100.
[0070] Specifically, in the plugging and unplugging process, the current detection circuit, as mentioned earlier, is used to detect whether the communication interface is connected, thereby determining the number of times of plugging and unplugging. Taking the second APL communication interface 102 as the target interface as an example, if the processor 303 turns on the second switch control circuit, the second current detection circuit 302 may operate normally. Working principles of the switch control circuit and the current detection circuit are as described earlier. When the twisted pair cable is unplugged, the second current detection circuit 302 cannot detect the current, and therefore the processor 303 records one time of unplugging the twisted pair cable. When the twisted pair cable is plugged, the second current detection circuit 302 may detect the current, and the processor 303 records one time of plugging the twisted pair cable. By accumulating the number of times the current is undetected or detected, the number of times of plugging and unplugging can be determined. In other embodiments, the target interface may also be the first APL communication interface 101.
[0071] In some embodiments, the second pattern includes performing the following process: alternately switching the connection state of the target interface with respect to the APL switch 200 between a disconnected state and a connected state, and after the number of switches reaches a second preset number, maintaining the connected state of the target interface with respect to the APL switch for the second preset duration. In this embodiment, the second preset number is set to 1, 2, and 3, and the second preset duration is 20 seconds. In some embodiments, the disconnected state refers to unplugging the twisted pair cable from the target interface, while the connected state refers to plugging the twisted pair cable into the target interface. The method for switching the Ethernet protocol categories in the management method does not require a specialized instrument. The Ethernet protocol categories may be switched only through a simple plugging and unplugging process, use costs are low, and operations are easy, convenient and less prone to errors.
[0072] In some embodiments, in the alternate switching process between the disconnected state and the connected state, a certain time interval may exist due to the plugging and unplugging operations. In some embodiments, in the alternate switching process between the disconnected state and the connected state, the disconnected state and the connected state may be maintained for a certain period of time. For example, the state is kept for five seconds.
[0073] According to the above value settings, the following three different patterns may be obtained:
[0074] 1. If a cycle of the disconnected state for 5 seconds followed with the connected state for five seconds is executed once and then the connected state is kept for 20 seconds, the Ethernet protocol category is switched to the Ethernet protocol 1.
[0075] 2. If the cycle of the disconnected state for 5 seconds followed with the connected state for five seconds is executed twice and then the connected state is kept for 20 seconds, the Ethernet protocol category is switched to the Ethernet protocol 2.
[0076] 3. If the cycle of the disconnected state for 5 seconds followed with the connected state for five seconds is executed three times and then the connected state is kept for 20 seconds, the Ethernet protocol category is switched to the Ethernet protocol 3.
[0077] After the settings are successfully configured, the Ethernet protocol category corresponding to the second pattern is stored in the memory of the APL device 100. During the next connection, the APL switch 200 will automatically match and switch to the subsequent Ethernet protocol category. In other embodiments, the second preset number and the Ethernet protocol category may be set according to an Ethernet protocol type of the APL device 100.
[0078] In some embodiments, if there is no need to acquire the Ethernet protocol category of the APL device 100 in a use process, only one of the communication interfaces of the APL device 100 (the first APL communication interface 101 or the second APL communication interface 102) needs to be connected to one communication interface of the APL switch 200. In this case, the APL device 100 and the APL switch 200 are connected only through one interface, the indicator component of the APL switch remains constantly on, indicating that the establishment of the communication interface succeeds.
[0079] In some embodiments, a plurality of APL devices may be connected through a daisy chain method. That is, the communication interface of the previous APL device is connected to the communication interface of the next device, namely a series connection method. The other communication interface of the last or first APL device may be connected to one communication interface of the APL switch 200. Therefore, the design of the two communication interfaces in the APL device may also support different usage scenarios.
[0080] According to the management method for Ethernet protocol categories of an APL device provided in the present disclosure, no additional human-machine interaction interface is introduced, and by detecting the connection between the communication interfaces of the APL device and the APL switch, the Ethernet protocol category of the APL device is automatically indicated without depending on the specialized device for the Ethernet protocol indication. In the Ethernet protocol category switching process, there is no need for a specialized operation instrument. By using the number of times of plugging and unplugging of the communication interface, the Ethernet protocol category of the APL device may be flexibly set. Therefore, the management method has the advantages of simple operation and high independence, improves the environmental adaptability of the APL device, and may be used in explosion-proof scenarios such as the coal mining industry and the petrochemical industry.
[0081] The present disclosure further provides an APL load cell, which includes the aforementioned management apparatus for the Ethernet protocol categories of the APL device. By using the management apparatus, there is no need for the APL load cell to introduce the additional human-machine interaction interface, and by detecting a connection between a communication interfaces of the APL load cell and an APL switch, an Ethernet protocol category of the APL load cell is automatically indicated without depending on a specialized device for Ethernet protocol indication. In the Ethernet protocol category switching process, there is no need for a specialized operation instrument. By using the number of times of plugging and unplugging of the communication interface, the Ethernet protocol category of the APL load cell may be flexibly set. Therefore, the APL load cell has the advantages of simple operation and high independence, improves the environmental adaptability of the APL load cell, and may be used in explosion-proof scenarios such as the coal mining industry and the petrochemical industry.
[0082] The basic concepts have been described above. Obviously, for those skilled in the art, the above disclosure of the present disclosure is merely used as an example and does not constitute a limitation on the present disclosure. Although not explicitly stated herein, those skilled in the art may make various modifications, improvements and amendments to the present disclosure. Such modifications, improvements, and amendments are suggested in the present disclosure, and therefore, such modifications, improvements, and amendments still fall within the spirit and scope of exemplary embodiments of the present disclosure.
[0083] Also, the present disclosure uses specific words to describe the embodiments of the present disclosure. For example, "one embodiment" , "an embodiment" , and / or "some embodiments" mean a feature, structure, or characteristic associated with at least one embodiment of the present disclosure. Therefore, it should be emphasized and noted that two or more references to "an embodiment" , "one embodiment" , or "an alternative embodiment" in various places in this specification do not necessarily indicate the same embodiment. In addition, some features, structures, or characteristics in one or more embodiments of the present disclosure may be combined appropriately.
[0084] Similarly, it should be noted that, in order to simplify the presentation of the present disclosure to facilitate the understanding of one or more embodiments, in the foregoing description of the embodiments of the present disclosure, various features may be sometimes incorporated into one embodiment, accompanying drawing, or the description thereof. However, this method of disclosure does not imply that the subject of the present disclosure requires more features than those mentioned. In practice, the features of an embodiment are fewer than all the features of a single embodiment disclosed above.
[0085] In some embodiments, numbers for describing the quantity of compositions and attributes are used. It should be understood that such numbers used in the description of the embodiments are modified by the modifier "about" , "approximately" , or "substantially" in some examples. Unless otherwise stated, "about" , "approximately" , or "substantially" indicates that the number is allowed to vary by ± 20%. Accordingly, in some embodiments, the numerical parameters used in the present disclosure are approximate values, and the approximate values can vary with the characteristics required by individual embodiments. In some embodiments, for the numerical parameters, the specified significant digits should be taken into consideration, and a general digit retention method should be used. Although the numerical ranges and parameters used to confirm the breadth of the ranges of the numerical parameters in some embodiments of the present disclosure are approximate values, such numerical values need to be set as precisely as possible within a feasible range in specific embodiments.
Claims
1.A management method for Ethernet protocol categories of an advanced physical layer (APL) device, characterized by comprising:connecting the APL device to an APL switch, wherein the APL device comprises communication interfaces, and the communication interfaces comprise a first APL communication interface and a second APL communication interface;detecting connection states of the first APL communication interface and the second APL communication interface;in response to detecting that both the first APL communication interface and the second APL communication interface are connected to the APL switch, selecting one of the communication interfaces as a target interface, disconnecting the target interface from the APL switch and maintaining the disconnection for a first duration, then restoring the connection for a second duration, and after the second duration, providing an indication by the APL switch according to prestored Ethernet protocol categories; andidentifying a current Ethernet protocol category of the APL device according to the indication.2.The management method according to claim 1, characterized in that the APL switch comprises an indicator component, and the step of providing an indication by the APL switch comprises:providing the indication by the indicator component according to a first pattern, different first patterns being used to represent different Ethernet protocol categories.3.The management method according to claim 2, characterized in that operation states of the indicator component comprise a first state and a second state, and the first pattern comprises repeatedly performing the following process: the indicator component alternately switches between the first state and the second state, and after the number of switches reaches a first preset number, the indicator component remains in the second state for a first preset duration.4.The management method according to claim 3, characterized in that the first pattern further comprises: after the number of repetitions of the first pattern reaches a preset threshold, the indicator component remaining in the first state.5.The management method according to claim 4, characterized by further comprising: switching the current Ethernet protocol category to a target category after the indicator component remains in the first state; andthe step of switching the current Ethernet protocol category to a target category comprises:selecting the target interface from the first APL communication interface and the second APL communication interface;repeatedly disconnecting and connecting the target interface from / to the APL switch according to a second pattern, different second patterns being used to represent different Ethernet protocol categories to which the device is to be switched; andmaintaining a connection between the target interface and the APL switch, and storing the Ethernet protocol category corresponding to the second pattern in a memory of the APL device.6.The management method according to claim 5, characterized in that the second pattern comprises performing the following process: alternately switching the connection state of the target interface with respect to the APL switch between a disconnected state and a connected state, and after the number of switches reaches a second preset number, maintaining the connected state of the target interface with respect to the APL switch for a second preset duration.7.The management method according to any one of claims 1 to 6, characterized in that the connection state is a power connection state or a communication connection state.8.A management apparatus for Ethernet protocol categories of an advanced physical layer (APL) device, characterized by comprising a state detection circuit arranged on the APL device, wherein the APL device comprises communication interfaces, and the communication interfaces comprise a first APL communication interface and a second APL communication interface;the state detection circuit comprises a processor, a first current detection circuit, and a second current detection circuit, and the first current detection circuit is connected between the first APL communication interface and the processor, and is configured to detect a connection state of the first APL communication interface with respect to the APL switch; the second current detection circuit is connected between the second APL communication interface and the processor, and is configured to detect a connection state of the second APL communication interface with respect to the APL switch; andthe processor is configured to: perform the management method according to any one of claims 1 to 7.9.The management apparatus according to claim 8, characterized in that the state detection circuit further comprises a first switch control circuit and a second switch control circuit, the first switch control circuit is respectively connected to the first current detection circuit and the processor, the second switch control circuit is respectively connected to the second current detection circuit and the processor, and the processor is further configured to: control a power connection state of the first APL communication interface through the first switch control circuit, and control a power connection state of the second APL communication interface through the second switch control circuit.10.The management apparatus according to claim 8, characterized by further comprising a first physical (PHY) module and a second PHY module, the first PHY module being connected to the first APL communication interface, the second PHY module being connected to the second APL communication interface, and the processor being further configured to: control the communication connection state of the first APL communication interface through the first PHY module, and control the communication connection state of the second APL communication interface through the second PHY module.11.An advanced physical layer (APL) load cell, characterized by comprising the management apparatus for the Ethernet protocol categories of the APL device according to any one of claims 8 to 10.
Citation Information
Patent Citations
Ethernet multi-protocol communication device and method based on APL technology
CN115834733A
Providing optical and radio frequency information in ethernet advanced physical layer based end point field devices
US20240119812A1
APL field switch with automatic protocol detection
WO2022182771A1