Read TTL Signal and print it to Serial?

Is the above question doable? If so - how?

TTL from what?

from an old settopbox.

Well TTL (digital) signals are directly compatible with any Arduino that is running at +5vdc Vcc power, so they can be read by digital input commands. There is no reason that a Arduino sketch program could not read such digital inputs and send messages to an attached PC via serial commands.

Lefty

basically it is a simple rx tx comport i want to get the data from... yet it sends it as ttl signal.

It seems not to work with NSS, any ideas?

Without posting your sketch and posting a wiring drawing it's hard for anyone here to troubleshoot such a vague symptom.

Lefty

weeeelll... hard to draw G


using the left rx and tx on my arduino(1280).

Running a simple sketch with NSS that checks if the NSS RX Port is available and then sends the received to my pc via a "print".

So do you know the baud rate and data format? Look on a scope at the signal coming out. If you haven't got a scope then look at making one from an arduino.

using the left rx and tx on my arduino(1280).

Not sure what that means. The "left" ?

i was referencing to the picture ,0)
Anyhow, i know baud etc for it, its 115200,8,n

i know baud etc for it, its 115200,8,n

Can NSS work that fast?

on my arduino(1280).

Anyway as it is a mega you should be using the hardware ports.

oh, right! The mega has several Serials.... but after looking (ok, getting tired, therefore i cant focus on this anymore..) i didnt find an example showing how to send from one serial to the other
can someone show me a way?

Ah, nevermind, it works now :0)

void setup()  
{
  Serial.begin(115200);
  Serial.println("Start");
  Serial1.begin(115200);
}

void loop()                     // run over and over again
{

  if (Serial1.available()) {
     // if((int)Serial1.read() != 128 && (int)Serial1.read() !=0 && (int)Serial1.read() != -1)
      {
        Serial.print((char)Serial1.read());

      }
  }
}

ok.. that works... but i get a lot of wrong characters... do i miss something that cleans up the signal?

Example output:

üúå­V˝addrmss"from /tmp/bootloader_channel.conf
Current system time is 946684855
Scanning infocast channel 220,
.2.2:22222
Setting tZ[Y«Ñto 10 seconds
UP BR*
n
MQRUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0úg{¯«z2-
  "       TX packets:31 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 


J¹?сaddr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1