Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~1K People Reached
About Me

active, like to learn

Interests
c, c++, linux, socket
Favorite Forums
Favorite Tags
Member Avatar for sridhar.selva

hi, i m doing a program now. in which i need to get ascii values like SOH, NUL etc from the serial port. i m getting the values as string. i don know how to process the ascii values to obtain the original values back. example my data is SOH …

Member Avatar for sridhar.selva
0
237
Member Avatar for sridhar.selva

hi can u ppl help me on this. can i use multiple enums in a single c program, if so is there any constrain on it? [CODE]enum pattern1 {red, green, yellow} pt1; enum pattern2 {orange, blue, black} p2; enum pattern3 {white, grey, violet} p3;[/CODE] is this possible????

Member Avatar for sridhar.selva
0
163
Member Avatar for sridhar.selva

[CODE]#include <stdio.h> #include <string.h> #include <unistd.h> #include <fcntl.h> #include <errno.h> #include <termios.h> int main() { int fd; int wd=0; unsigned char buff[] = { 0x02, 0xFA, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x23, 0x01, 0x21, 0x03}; fd = open("/dev/ttyS0", O_RDONLY | O_NOCTTY | O_NDELAY ); if (fd == -1) …

Member Avatar for Ab000dy_85
0
259
Member Avatar for sridhar.selva

serial port problem is occuring,,, pls guide on the same as i new to this,,, [CODE]#include <stdio.h> #include <string.h> #include <unistd.h> #include <fcntl.h> #include <errno.h> #include <termios.h> int main() { int fd; int wd=0; unsigned char buff[] = { 0x02, 0xFA, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x23, 0x01, …

Member Avatar for sridhar.selva
0
404