CN-122001704-A - Communicating with two or more slaves
Abstract
A method of communicating with two or more slaves is provided. The method includes receiving a command packet with an interface, wherein the command packet is sent by a host over a host-slave bus, and associating a slave address of the command packet with one of two or more slaves communicatively coupled to the interface.
Inventors
- SUN LI
- SONG JINGXIAN
Assignees
- 高准公司
Dates
- Publication Date
- 20260508
- Application Date
- 20160226
Claims (11)
- 1. A method of communicating with two or more slaves, the method comprising: Receiving a command packet with an interface, wherein the command packet is sent by a host over a host-slave bus; associating a slave address of the command packet with one of two or more slaves communicatively coupled to the interface, and Associating a slave address with one of two or more slaves communicatively coupled to an interface, including Resolving a slave address from a command packet, and Comparing the resolved slave addresses with two or more address sets, wherein each of the two or more address sets is associated with each of the two or more slaves, wherein the two or more slaves include at least a first vibration metering component and a second vibration metering component; Transmitting a first drive signal from the interface to the first vibratory metering assembly and a second drive signal to the second vibratory metering assembly; Receiving first left and right sensor signals from first and second sensitive sensors, respectively, by an interface from a first vibration metrology assembly, and Receiving, by the interface, a second left sensor signal and a second right sensor signal from the third and fourth sensitive sensors, respectively, from the second vibratory metering assembly; at least one of a mass flow rate and a density of the material passing through the first vibratory metering assembly and the material passing through the second vibratory metering assembly is calculated using the interface.
- 2. The method of claim 1, wherein receiving a command packet with the interface comprises receiving a command packet with a port communicatively coupled to a master-slave bus, and determining whether a slave address corresponds to at least one of the two or more slaves.
- 3. The method of one of claim 1 or claim 2, wherein associating a slave address with one of two or more slaves communicatively coupled to the interface comprises associating a slave address with one of two or more arrays, wherein each of the two or more arrays is associated with each of the two or more slaves.
- 4. A method according to any of the preceding claims 1 to 3, further comprising responding to the command packet by transmitting a response packet with data obtained from the one of the two or more slaves associated with a slave address in the command packet.
- 5. The method of claim 4, wherein the response packet is transmitted through a port communicatively coupled to the master-slave bus.
- 6. An interface (100) for communicating with two or more slaves, the interface (100) comprising: A processor (110) configured to be communicatively coupled to the two or more slaves (10 a, 10 b), and A communication port (140) communicatively coupled to the processor (110), the communication port (140) configured to be communicatively coupled to the master-slave bus (50); wherein the processor (110) is configured to: Receiving command packets (500 a, 500 b) from a host (40) over a host-slave bus (50), and Associating a slave address (502 a, 502 b) of the command packet (500 a, 500 b) with one of the two or more slaves (10 a, 10 b); wherein the processor (110) being configured to receive a command packet comprises the processor being configured to Receiving command packets using a communication port communicatively coupled to a master-slave bus, and Determining whether the slave address corresponds to at least one of the two or more slaves, and Wherein the processor being configured to associate the slave address with one of two or more slaves communicatively coupled to the interface comprises the processor being configured to Resolving a slave address from a command packet, and Comparing the resolved slave addresses with two or more address sets, wherein each of the two or more address sets is associated with each of two or more slaves, wherein the two or more slaves (10 a,10 b) comprise at least a first vibration metering component and a second vibration metering component; wherein the processor (110) is further configured to: Transmitting a first drive signal from the interface (100) to a first drive mechanism (18 a) of a first vibratory metering assembly and a second drive signal to a second drive mechanism (18 a) of a second vibratory metering assembly, Receiving, by an interface (100), a first left sensor signal and a first right sensor signal from a first vibration metrology assembly from a first and a second sensitive sensor (17 al,17 ar), respectively, and Receiving, by the interface (100), a second left sensor signal and a second right sensor signal from a third and a fourth sensitive sensor (17 bl,17 br), respectively, from a second vibratory metering assembly, At least one of a mass flow rate and a density of material passing through the first vibratory metering assembly and material passing through the second vibratory metering assembly is calculated with a processor (110).
- 7. The interface (100) of claim 6, wherein the processor (110) being configured to associate a slave address (502 a, 502 b) with one of two or more slaves (10 a, 10 b) communicatively coupled to the interface (100) comprises the processor (110) being configured to associate a slave address (502 a, 502 b) with one of two or more arrays (104 a, 104 b), wherein each of the two or more arrays (104 a, 104 b) is associated with each of the two or more slaves (10 a, 10 b).
- 8. The interface (100) of any of the preceding claims 6 to 7, wherein the processor (110) is further configured to respond to the command packet (500 a, 500 b) by transmitting a response packet with data obtained from one of the two or more slaves (10 a, 10 b) associated with a slave address (502 a, 502 b) of the command packet (500 a, 500 b).
- 9. The interface (100) of claim 8, wherein the response packet is transmitted through a port (140) communicatively coupled to the master-slave bus (50).
- 10. A system (5) for communicating with two or more slaves, the system (5) comprising: an interface (100) communicatively coupled to the host (40) via a host-slave bus (50), and Two or more slaves (10 a,10 b) communicatively coupled to the interface (100), wherein the two or more slaves (10 a,10 b) include at least a first vibration metering component and a second vibration metering component; Wherein the interface (100) is configured to: Receiving command packets (500 a, 500 b) from a host (40) over a host-slave bus (50), and Associating a slave address (502 a, 502 b) of the command packet (500 a, 500 b) with one of the two or more slaves (10 a, 10 b); Wherein the interface being configured to receive command packets includes the interface being configured to Receiving command packets using a communication port communicatively coupled to a master-slave bus, and Determining whether the slave address corresponds to at least one of the two or more slaves, and Wherein the interface being configured to associate the slave address with one of two or more slaves communicatively coupled to the interface includes the interface being configured to Resolving a slave address from a command packet, and Comparing the resolved slave address with two or more address sets, wherein each of the two or more address sets is associated with each of the two or more slaves, Transmitting a first drive signal from the interface (100) to a first drive mechanism (18 a) of a first vibratory metering assembly and a second drive signal to a second drive mechanism (18 a) of a second vibratory metering assembly, Receiving, by an interface (100), a first left sensor signal and a first right sensor signal from a first vibration metrology assembly from a first and a second sensitive sensor (17 al,17 ar), respectively, and Receiving, by the interface (100), a second left sensor signal and a second right sensor signal from a third and a fourth sensitive sensor (17 bl,17 br), respectively, from a second vibratory metering assembly, At least one of a mass flow rate and a density of material passing through the first vibratory metering assembly and material passing through the second vibratory metering assembly is calculated with a processor (110).
- 11. The system (5) of claim 10, wherein the interface (100) being configured to associate a slave address (502 a, 502 b) with one of two or more slaves (10 a, 10 b) communicatively coupled to the interface (100) comprises the interface (100) being configured to associate a slave address (502 a, 502 b) with one of two or more arrays (104 a, 104 b), wherein each of the two or more arrays (104 a, 104 b) is associated with each of the two or more slaves (10 a, 10 b).
Description
Communicating with two or more slaves The scheme is a divisional application, and the mother application is PCT application with the application number 201680082589.1 entering the national stage, and the name of the PCT application is 'communication with two or more slaves', and the application date is 2018, 8, 24 days. Technical Field The embodiments described below relate to vibration sensors, and more particularly to communicating with two or more slaves. Background Vibration sensors (such as, for example, vibrating densitometers and coriolis flowmeters) are generally known and are used to measure mass flow and other information related to material flowing through a conduit in the flowmeter. Exemplary coriolis flowmeters are disclosed in U.S. patent 4,109,524, U.S. patent 4,491,025, and reference 31,450. These flow meters have a metering assembly with one or more conduits in either a straight or curved configuration. For example, each conduit configuration in a coriolis mass flowmeter has a set of natural modes of vibration, which may be of the simple bending, torsional, or coupled type. Each conduit may be driven to oscillate in a preferred mode. When there is no flow through the meter, the driving force applied to the conduit(s) will cause all points along the conduit(s) to oscillate with exactly the same phase or with a small "zero offset" (which is the time delay measured at zero flow). As the material begins to flow through the conduit(s), the coriolis force causes each point along the conduit(s) to have a different phase. For example, the phase at the inlet end of the flowmeter lags the phase at the centralized drive mechanism location, while the phase at the outlet leads the phase at the centralized drive mechanism location. A sensing element (pickoff) on the catheter(s) generates a sinusoidal signal representative of the motion of the catheter(s). The signals output from the pickoffs are processed to determine the time delay between pickoffs. The time delay between two or more sensing elements is proportional to the mass flow rate of material flowing through the conduit(s). Meter electronics connected to the drive mechanism generates a drive signal that is used to operate the drive mechanism and also to determine the mass flow rate and/or other properties of the process material from the signal received from the sensing element. The drive mechanism may comprise one of many known arrangements, however, magnets and opposing drive coils have met with great success in the flowmeter industry. Alternating current is delivered to the drive coil for vibrating the conduit(s) at the desired conduit amplitude and frequency. It is also known in the art to provide a sensing element as a magnet and coil arrangement very similar to the drive mechanism arrangement. Many systems utilize two or more metering assemblies due to various design constraints. For example, a metering assembly used in distributing Liquefied Natural Gas (LNG) to an LNG vehicle may utilize a first metering assembly to measure fuel pumped from an LNG storage tank to the LNG vehicle. The second metering assembly may be used to measure fuel returned to the LNG tank. The fuel returned to the LNG tanks may have different flow rates, temperatures, conditions, etc. A host (host) may obtain information from the first and second metering components over a host-slave bus, where the host is a host and the first and second metering components are slaves. Thus, there is a need to communicate with two or more slaves. Disclosure of Invention A method of communicating with two or more slaves is provided. According to one embodiment, the method includes receiving a command packet with an interface, wherein the command packet is sent by a host over a master-slave bus, and associating a slave address of the command packet with one of two or more slaves communicatively coupled to the interface. An interface is provided for communicating with two or more slaves. According to one embodiment, the interface includes a processor configured to be communicatively coupled to two or more slaves and a communication port communicatively coupled to the processor. The communication port is configured to be communicatively coupled to a master-slave bus. The processor is configured to receive a command packet from a host over a host-slave bus and associate a slave address of the command packet with one of the two or more slaves. A system is provided for communicating with two or more slaves. According to one embodiment, the system includes an interface communicatively coupled to a host via a host-slave bus and two or more slaves communicatively coupled to the interface. The interface is configured to receive a command packet from a host over a host-slave bus and to associate a slave address of the command packet with one of the two or more slaves. Aspects are described. According to one aspect, a method of communicating with two or more slaves includes receiving a command pa