Kepware Knowledge Base: Solution
U-CON: Receiving Unsolicited Data Without a Unique ID
Last Update: 2/11/2019
Problem:
A connected device sends several pieces of data in one transaction, but the data packets do not contain a unique identifier.
Solution:
Follow the instructions below.
- In KEPServerEX, create a new U-CON channel.
- In Mode, check Unsolicited Mode. In Key Length, enter 0.
- Continue through the Channel Wizard, configuring the channel as desired. Once finished, create a new device.
The unsolicited transaction steps are similar to those discussed in Processing Unsolicited Requests.
- Once the message from the device is read into the read buffer, use Processing Commands in the Transaction Editor (such as "Seek Character") to locate a byte within the data packet that can be used to locate the device data.
- Test the byte using Conditional Commands.
Note: If using a scale or barcode scanner that does not have unique identifiers, configure one channel for each device that is sending data.
©
2021
PTC Inc. All Rights Reserved.