cifTelegramBinReceive

cifTelegramBinReceive — waits for any telegram to arrive.

Synopsis

(cifTelegramBinReceive)
  

Parameters

none

Returns

(cifTelegramBinReceive card_id return_value)

where return_value depends on the message response, or one of the following errors:

(error "cifTelegramBinReceive -1 (time) messageError message_error_code")
(error "cifTelegramBinReceive -1 (time) replyMailboxError device_error_code")
[Note]

The text string corresponding to the message_error_code and device_error_code can be obtained by issuing an errorDescription command, like this:

(errorDescription error_code)

Description

This command is used with cifTelegramBinSend to receive a response. These two functions are logically equivalent to using devPutMessage and devGetMessage from the Hilscher API.

The message content from cifTelegramBinSend is specified as ASCII encoded hex digits, and the resulting binary message is likewise encoded as ASCII hex. The data is encoded as a sequence of two-character hexadecimal numbers. For example, if the string is (hexadecimal):

FF012F07

then the data would be:

255 1 47 7

See the cifTelegram command for more information about messages.

Example

See protocol-specific configuration files.