i have a small problem which i m not able to solve. ive made a form in PhAb and wat i intend to do is that when i press a button “#041701” goes out of my serial port.
i used the simple code for writing on serial port as:
fd=open("/dev/ser1", O_RDWR); write(fd, buffer, sizeof (buffer)) close(fd); return 0;
but i did not get the desired output. when i used Visual Basic on windows platfom i had to send “#041701” & chr$(13). here chr$(13) is used for enter key. can anyone tell me how do i achieve this.