J1939ILFreezeTp
Valid for: CANoe DE • CANoe4SW DEFunction Syntax
long J1939ILFreezeTp(dword protocol, dword sa, dword da); //Form 1long J1939ILFreezeTp(dbNode node, dword protocol, dword sa, dword da); //Form 2
Description
Function freezes the handling of the transport protocol connection by the current simulation node when the simulation node interacts as an originator or as a receiver in the connection, and the connection matches the given protocol (BAM RTS/CTS), source address and destination address. The source address specifies the originator (the node sending RTS or BAM) and the destination address specifies the receiver (the node sending CTS, or 255 for BAM) of a connection. If the connection was not found, an error will be returned. Freezing a connection means, that the connection will be paused in the current state without reacting to any timeouts or messages. Be aware that if you freeze a connection right after a message is sent, the response is not received at all, because the connection is already frozen when the responder sends its message. If you then unfreeze the connection again, the node waits for the response that it missed before and is not necessarily sending the next message. To freeze a connection immediately you need to specify a delay for the transport protocol messages of 1 ms or greater, since the interaction layer will react on a message as soon as possible, and this may be before the CAPL function is handled. To setup delays for transport protocol messages, refer to the CAPL function J1939ILSetNodeProperty. Note: A node supports only one instance per destination address of each transport protocol at the same time. If the node holds a frozen connection, the connection must be killed before another can be established.Parameters
- node: Simulation node to apply the function.
- protocol:
- 1: BAM
- 2: RTS/CTS
- 3: Fast Packet (not supported)
- 4: ETP (ISO11783 Interaction Layer)
- 5: FD TP BAM (not supported)
- 6: FD TP RTS/CTS (not supported)
- sa: 0-255
- da: 0-255
Return Values
- 0: OK
- 0x050008: Connection not found