Sponsored Content
Top Forums Programming problem while having a communication with serial port????? Post 302142506 by porter on Friday 26th of October 2007 03:39:14 PM
Old 10-26-2007
Quote:
Originally Posted by arunchaudhary19
whats going wrong ....I am not getting data at the recievers End ....
When writing communications code, start with some known methods for testing.

Rather than tear your hair out do the following....

1. ensure machines are connected, with null modem if required

2. run terminal emulator on those serial ports at both ends

3. confirm terminal emulators exchange characters

4. replace the send end with your sending program and check that the sender does send.

5. stop that, and restart the terminal emulator

6. stop the terminal emulator at the receiving end, start your receiving program

7. confirm receiving program receives what ever is typed.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Serial port communication

We're running SCO Unix Openserver 5.05 and I'm having trouble with serial communication between the com2 serial port and a handheld device. Downloading data from Unix to the handheld works perfectly, but the other way around creates a major problem. I don't know whether it's a buffer overflow or... (1 Reply)
Discussion started by: Aretha
1 Replies

2. UNIX for Advanced & Expert Users

Serial Communication in UNIX

Hi, I am working on serial communication on Unix. Can anyone guide me through it. The steps required for RS 232 communication and can i do serial communication even if i dont have super user previledges. Thankx, Vicky (1 Reply)
Discussion started by: Vicky
1 Replies

3. UNIX for Dummies Questions & Answers

serial communication

This isn't really a unix question, or even a programming question, but I hope you guys can help. I want to create a program to control the electricity on a model railway. I have created the program to that it sends characters over the serial cable, but now I need to do the switch that will... (1 Reply)
Discussion started by: KrazyGuyPaul
1 Replies

4. IP Networking

ip communication through serial connection

I have serial modem connection between two computers. We have to login the remote computer through ip address. How can I get the ip address in this connection? (1 Reply)
Discussion started by: pcsaji
1 Replies

5. Programming

Problem regarding serial port and multithreading

hello, I am creating a application in which I first open the serial port and then create the thread..for reading the data comming through that serial port. from that same thread I create another thread that is write thread means for writing on the serial port... I am continously polling again... (3 Replies)
Discussion started by: arunchaudhary19
3 Replies

6. UNIX for Dummies Questions & Answers

problem with serial port BSD

Hello all , i have change my system debian linux to freebsd( pcBSD) all working as well , but the serial does not work correctly. Under linux the problem does not appears. my problem is than my serial port does work . the first step than i have make is look with dmesg if my serial are... (0 Replies)
Discussion started by: pitbac23
0 Replies

7. Solaris

Serial port problem

I am working with solaris 9 sparc and I want to connect physical device in serial port but when I am connecting it,It is showing the error window saying-- So can any1 tell me the reason or is there any package I have to add to work with serial port??? (2 Replies)
Discussion started by: smartgupta
2 Replies

8. Programming

problem in coding for GSM interfacing using serial port

i am having some coding problem in c for interfacing the GSM module through serial port. i want to send/receive sms. i have done all the setting for the port and know the AT command to use in this but i am actually having problem in reading and writing from serial port how to handle the signal when... (1 Reply)
Discussion started by: harsh_it
1 Replies

9. Programming

Serial communication failing

edit: never mind; mods please delete. I finally got so frustrated I figured it couldn't be the code and it must be the device on the other end. After pulling it out of its cradle, I realized it was a different model number than the one I was using before, and wasn't accepting my... (1 Reply)
Discussion started by: DreamWarrior
1 Replies

10. SCO

Problem finding what is using a serial port

How can I determine what process is currently using a serial port? A good bit of google searching hasn't turned up anything useful, but it seems like there has to be a way to do this without too much difficulty. When I first started looking into this problem, I assumed that when a port was in... (2 Replies)
Discussion started by: jdsnatl
2 Replies
YEAHCONSOLE(1)							  [FIXME: manual]						    YEAHCONSOLE(1)

NAME
yeahconsole - drop-down X terminal emulator wrapper SYNOPSIS
yeahconsole [-h] [-e command] DESCRIPTION
This manual page documents briefly the yeahconsole command. This manual page was written for the Debian distribution because the original program does not have a manual page. yeahconsole is a wrapper for X terminal emulators that provide a drop-down terminal embedding other terminal emulators OPTIONS
A summary of options is included below. Any other argument is passed to the X terminal emulator. -h Show summary of options and supported xresources. -e command command will be run in the X terminal emulator used. If specified this must be the last option since everything after the -e will be interpreted as the command. RESOURCES
The resources from the embedded X terminal emulator will be used and are documented in the corresponding manpage for your X terminal emulator. The specific resources for yeahconsole follow: restart 0 or 1, 1 should restart the terminal. Default is 0. term terminal to use, valid values: urxvt, urxvtc, xterm. Default is xterm. screenWidth width of the terminal. Default is the display width. consoleHeight number of lines of the console. Default is 10. xOffset x position. Default is set to 0. aniDelay delay for the slide animation. Default is 40. stepSize step size in pixels for the animation 0 will disable the animation. Default is set 1. handleWidth width for the resize handle. Default is 3. handleColor color for the resize handle. Default is grey70. toggleKey key combo that toggles yeahconsole. Default is ControlAlt+y. keyBigger increase height of yeahconsole. Default is Control+KP_Add. keySmaller decrease height of yeahconsole. Default is Control+KP_Subtract. keyFull toggle fullscreen mode. Default is Alt+F11. SEE ALSO
xterm (1), rxvt (1). AUTHOR
This manual page was written by Damian Viano debian@damianv.com.ar for the Debian system (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later version published by the Free Software Foundation. On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL. COPYRIGHT
Copyright (C) 2006 Damian Viano [FIXME: source] April 15, 2006 YEAHCONSOLE(1)
All times are GMT -4. The time now is 01:10 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy