Wireless connection problem - wrong characters

Hi all,

I'm connecting my Arduino and a PC using a 868 MHz transmitter/receiver pair (one connected to Arduino by UART, second being a USB dongle). Adapters connect but on a Serial Monitor I get different characters that I'm sending.

I was trying to connect the adapter to Arduino both using Rx/Tx pins (0 and 1) and using Serial.print and using SoftwareSerial (like in code below). In both cases when I'm sending character '0' from Arduino, on PC Serial Monitor a get character 'þ'.

#include <SoftwareSerial.h>
#define rxPin 6
#define txPin 7
SoftwareSerial mySerial =  SoftwareSerial(rxPin, txPin);
void setup(){
  pinMode(rxPin, INPUT);
  pinMode(txPin, OUTPUT);
  mySerial.begin(4800);
}
void loop(){
mySerial.print('0');
delay(500);
}

I would really appreciate some help.

Best Regards,
Filip

Typically, Serial.write() is used to write values to the serial port, and Serial.print() is used to write text to the serial port. Since it appears to be text that you want to send, perhaps you should be using Serial.print().

In fact I only used "write" function to check if it changes anything. There should be a "print" function, because SoftwareSerial doesn't have "write" function. I'm editing previous post just in case.

And as I said it doesn't change anything.

Having two data points would make it easier to understand what is happening. Try printing more stuff.

When I'm sending 0s I get only þ, but when I send different characters I get not so simple string

'0' -> þþþþþ
'1' -> þþüþüüþüüþþ
'a' -> þüþþþü

For me it looks like adapters have different speeds, coding or something like that. But I don't know.

Anybody has any idea?

What happens if you use NewSoftSerial, instead of the obsolete Software Serial?

Also, please post links to the hardware you are using.