altSoftSerial doesn't seem to work

I have an Arduino Uno connected with Windows10 laptop.

I use the example sketch in the altSoftSerial library.

#include <AltSoftSerial.h>

// AltSoftSerial always uses these pins:
//
// Board          Transmit  Receive   PWM Unusable
// -----          --------  -------   ------------
// Teensy 3.0 & 3.1  21        20         22
// Teensy 2.0         9        10       (none)
// Teensy++ 2.0      25         4       26, 27
// Arduino Uno        9         8         10
// Arduino Leonardo   5        13       (none)
// Arduino Mega      46        48       44, 45
// Wiring-S           5         6          4
// Sanguino          13        14         12

AltSoftSerial altSerial;

void setup() {
  Serial.begin(9600);
  while (!Serial) ; // wait for Arduino Serial Monitor to open
  Serial.println("AltSoftSerial Test Begin");
  altSerial.begin(9600);
  altSerial.println("Hello World");
}

void loop() {
  char c;

  if (Serial.available()) {
    c = Serial.read();
    altSerial.print(c);
  }
  if (altSerial.available()) {
    c = altSerial.read();
    Serial.print(c);
  }
}

When I open the Serial Monitor I see “AltSoftSerial Test Begin”.
Nothing else happens. When I write a charachter followed by an ENTER nothing happens.
On the website PJRC i see the use of seyon terminal emulator in combination with this sketch.
But that’s a Linux application.

Is there someone to help this newbee out?

What are you trying to talk to? On pins D8 & D9?

Actually in this test I didn't connect anything to pin D8, the recievepin on the arduino uno.

No, I'm not with you. You connect D9 to D0?

FrenskeP:
Actually in this test I didn't connect anything to pin D8, the recievepin on the arduino uno.

Fine. But what have you connected to pin D8 - the transmit pin?

...R

I think I begin to understand what your point is.

//
// Transmit data with Serial1 and try to receive
// it with AltSoftSerial. You must connect a wire
// from Serial1 TX to AltSoftSerial RX.

#include <AltSoftSerial.h>

AltSoftSerial altser;
const int mybaud = 9600;

// Board Serial1 TX AltSoftSerial RX
// ----- ---------- ----------------
// Teensy 3.x 1 20
// Teensy 2.0 8 (D3) 10 (C7)
// Teensy++ 2.0 3 (D3) 4 (D4)
// Arduino Leonardo 1 13
// Arduino Mega 18 48

// Serial1 on AVR @ 16 MHz minimum baud is 245
// Serial1 on Teensy 3.2 @ 96 MHz minimum baud is 733

byte sentbyte;
unsigned long prevmillis;
byte testbyte=0xF0;

void setup() {
delay(200);
Serial.begin(9600);
while (!Serial) ; // wait for Arduino Serial Monitor
Serial.begin(mybaud); // connect a wire from TX1
altser.begin(mybaud); // to AltSoftSerial RX
Serial.println(“AltSoftSerial Receive Test”);
prevmillis = millis();
}

void loop() {
// transmit a test byte on Serial
if (millis() - prevmillis > 250) {
sentbyte = testbyte++;
Serial.write(sentbyte);
prevmillis = millis();
}
// attempt to receive it by AltSoftSerial
if (altser.available() > 0) {
byte b = altser.read();
Serial.println(b);
if (b != sentbyte) Serial.println("***** ERROR *****");
}
}

This time I connected D1, TX to D8 the recievepin for AltSoftSerial on the Arduino Uno.

In the sketch in me openingspost I connected digital pin 1 with digital pin 8 (TX Serial to RX altSerial.
That made altSerial.available() true.
The result was that i could see output in the Serial Monitor.

For this moment that solved me problem. So Thanks for the help.

Grts Frans