Debugging function, 10 debugging function – Solvline Eddy DK User Manual

Page 122

Advertising
background image

Eddy DK Programmer Guide

122

6.10 Debugging Function

Eddy can debug operating condition of each application via Telnet in real time.
The following functions are used to print debug log message to Telnet window when SB_DEBUG of each application
is set ON.

SB_LogDataPrint

Function

Print each byte of data in hex or ascii code.

Format

void SB_LogDataPrint (char *RTx, char *buff, int data_len);

Parameter

*RTx

Description message of data

*Buff
Data_len

Buffer address of data to be printed is saved/
Size of data.

Returns

None

Notice

Prints messages to telnet which logged in first.
The message include Eddy’s tick counter of 1msec unit and printed in
following form.
SB_LogDataPrint (‚Send‛, ‚\t12345\n‛, 8);
[191020202] Send 8 = 08,1,2,3,4,5,0d,0a
-------------- ------- ------ -----------------------
Tick Counter RTx data_Len buff
Debugging of each application in Eddy can be configured as follows by
using Def command. (Please see def.c)
# def po <1/2/all> debug <on/off>

SB_LogMsgPrint

Function

Prints in the same format as Printf.

Format

void SB_LogMsgPrint (const char *Format, . . . );

Parameter

*Format

Format of Printf

Returns

None

Notice

Prints messages to telnet which logged in first.
The message include Eddy’s tick counter of 1msec unit and printed in
following form.
SB_LogMsgPrint (‚%s means Real-Time\n‛, ‚Eddy‛);
[191020202] Eddy means Real-Tile
Debugging of each application in Eddy can be configured as follows by
using Def command. (Please see def.c)
# def po <1/2/all> debug <on/off>

Advertising