콘텐츠로 이동

User Protocol Introduction

이 콘텐츠는 아직 번역되지 않았습니다.

Canvas supports User Protocol as a way to user user-defined protocols for advanced device communication. No additional settings will appear on the selection of this protocol.

Variable NameTag TypeDescription
txDataSTRINGThis holds the frame data which will be sent. Writing to the tag triggers a send.
txDataSendBOOLWriting to this value triggers the data held by "TX Data" to be sent.
rxDataSTRINGThis holds the current frame data which was received. The user must write to "RX Queue Get Next" to move the front frame in the RX Queue.
rxDataSizeUINT32This holds the size of the data held by the "RX Data" variable.
rxDataSizeLimitUINT32Maximum number of bytes RX Data can hold.
rxQueueSizeUINT32This holds the current number of frames inside the RX Queue.
rxQueueSizeLimitUINT32Maximum number of frames the RX Queue can hold.
rxQueueGetNextBOOLWriting to this value causes the front frame in the RX Queue to be written to the "RX Data" variable.
txSuccessCountUINT32Records the total number of successfully sent frames.
txFailureCountUINT32Records the total number of unsuccessfully sent frames.
rxCountUINT32Records the total number of received frames.
rxDataPrefixSTRINGUsed to determine the start of an incoming frame.
rxDataSuffixSTRINGUsed to determine the end of an incoming frame.
rxDataRegexSTRINGUsed to determine the start/end/structure of an incoming frame.
rxDataExpectedSizeUINT32Used to determine the end of an incoming frame.