if you think so... it's your project.
tx is a single wire. You can add as many receivers as you want.
If you want to read both directions, you need two terminals. A teensy, maybe, with two uarts rx's connected to both, one to tx and one to rx...transfering both via usb to a PC. Or a just PC with two uarts (and terminals)
If you don't need both directions, a single uart (and one terminal program) will do.
it's all a pretty standard setup.
putty could be used, for example.
just have fun.
Difficult to help with specific advice when the question is so vague, lacking detail of the hardware or application.
[FONT=courier new] Teensy
[----------------]
[ dev ]----------->[s3.rx ---> s1.tx]----------->[ dev ]
[ 1 ]<-----------[s3.tx <--- s1.rx]<-----------[ 2 ]
[----------------]
[/FONT]
void setup() {
Serial.begin( 115200 );
Serial1.begin( 38400 );
Serial3.begin( 38400 );
}
short direction = 0; // 1=RX, 2=TX
void loop()
{
char c;
for (;;) {
while (Serial1.available()) {
if (direction!=1) {
direction = 1;
Serial.printf( "\nRX " );
}
char c = Serial1.read();
Serial3.write( c );
Serial.printf( "%02hX ", (short)c );
Serial.send_now();
}
while (Serial3.available()) {
if (direction!=2) {
direction = 2;
Serial.printf( "\nTX " );
}
char c = Serial3.read();
Serial1.write( c );
Serial.printf( "%02hX ",(short)c );
Serial.send_now();
}
}
}
If you are using a Windows PC with at least two COM ports, go to taltech.com/downloads/freesoftware & look for the link to download "Serial Breakout Box Software", a free utility which allows you to do full duplex serial analyzer style snooping. Pay particular attention to any export restrictions that may apply to your intended usage.
Mark J Culross
KD5RXT
What do you mean by PS?I have one PS + uCenter program + GPS receiver. I need another program to analyze (listen) the dialogue
OP is looking for a Windows XP program to solve his problem –– i.e. a COM port sniffer ––, and is not interested in solutions that use a Teensy. I'd say this is the wrong forum to ask such questions.
Code:OP is looking for a Windows XP program to solve his problem –– i.e. a COM port sniffer ––, and is not interested in solutions that use a Teensy. I'd say this is the wrong forum to ask such questions.
Yes! I screwed up. PC of course! Windows 7 64bit.