Quotebut because i only need 1 serial port (in the project).Really? Then, why are you not using the one hardware serial port, then?You are using TWO serial ports - one hardware and one software.
but because i only need 1 serial port (in the project).
You probably shouldn't be waiting for all n bytes to arrive IN THE BACKGROUND while you sleep for two seconds. Swserial needs to go through some serious hacks to pretend to have interrupts. I'm not sure exactly how that works, but...hmmm... I can/will try that - I assumed, the soft-serial is using pin-interrupts since there is code for that...and the example form instructable doesn't do any sleeps...
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16