Home \ Help \ Search \ Login RSS

Welcome, Guest. Please Login

This forum is now READ-ONLY! Please visit http://forum.wiring.co/ for the new forum.

Wiring ForumWiring HardwareTangible computing › Dual serial problem

Page Index Toggle Pages: 1
Dual serial problem (Read 3575 times)
04/16/07 at 03:38:36

barmak   Offline
YaBB Newbies
I Love YaBB 2!

Posts: 5
Hi I was trying to connect the serial from my PC (COM1) to the Serial1 (pins 2 and 3) of the wiring board. And after receiving any char typed at COM1 sending it back again to the PC trough the wiring USB. But somehow I can't see the typed chars... Why?

The same happens when i connect my GPS to the Serial1 and try to send it back through serial0, it's looks like baud-rate problem...???

Can it be logic levels problems? Something like trying to read TTL but actually reading RS-232?

This is the code I wrote:

int val;

void setup() {
Serial1.begin(1200); // RFID reader SOUT pin connected to Serial1 RX pin at 2400bps
Serial.begin(9600);  // Serial set to 9600

void loop() {
  if(Serial1.available() > 0) {          // if data available from reader
    val = Serial1.read();
    Serial.print(val, BYTE);   // possibly a good TAG
    Serial.print(" * ");

Thank you
IP Logged
Reply #1 - 04/19/07 at 21:00:34

barragan   Offline
YaBB Administrator

Posts: 939
hi, have you checked this? http://wiring.org.co/learning/examples/rfid_reading.html
could you post a diagram of what you're doing?
IP Logged
Page Index Toggle Pages: 1