MOD5213 and serial echo, ioctl

Discussion to talk about software related topics only.
Post Reply
barttech
Posts: 135
Joined: Fri Feb 20, 2009 12:59 pm

MOD5213 and serial echo, ioctl

Post by barttech »

My MOD5213 apps insist on echoing back all characters sent to them. I do not have local echo on in MTTY, and my code does not explicitly echo. In my MOD5234 apps I can use ioctl to control this, and the iosys.h file says you can do it for 5213 as well:
int ioctl( int fd, int cmd );
/*
Example usage turns on all the options....for stdout,stdin and stderr
ioctl(0,IOCTL_SET| IOCTL_ALL_OPTIONS);
ioctl(1,IOCTL_SET| IOCTL_ALL_OPTIONS);
ioctl(2,IOCTL_SET| IOCTL_ALL_OPTIONS);
Or just some options
ioctl(1,IOCTL_SET| IOCTL_RX_CHANGE_CRLF|IOCTL_RX_PROCESS_EDITS);
*/
But the linker cannot find ioctl. I've included iosys.h and get no error regarding, e.g., IOCTL_ALL_OPTIONS (defined in iosys.h), so iosys.h is found.
I'm using the Rel24_RC2 beta, but had the same trouble with Rel23.
Has anyone else used ioctl with MOD5213?
Is ioctl actually in the MOD5213 lib?
Is there some other way to suppress the echo?
Thanks,
Sam
Post Reply