Pages: [1]   Go Down
Author Topic: Combining VirtualWire and Softserial  (Read 721 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 11
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I've briefly tried to combine the use of
   1. Softserial (for getting data from GPS) at 9600 bps
   2. VirtualWire (for sending the data to a remote host) at 2000 bps
But it seems like I'm not getting anything on the Softserial-watching port as soon as I include the VirtualWire-library.
They are of course using different pins.

Is this a known interrupt-issue?
I have the debugging computer connected on the normal Serial line. (115000 bps, is this an issue?)
I am in urgent need of sending the data. Please advise a lady in despair  smiley-red.

(Hardware: boarduino w atmega328, GPS, simple 434MHz ASK-transmitter)
« Last Edit: January 30, 2011, 11:09:31 am by Madeleine » Logged

Seattle, WA USA
Online Online
Brattain Member
*****
Karma: 642
Posts: 50434
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Is this a known interrupt-issue?
More like a missing code issue. As in your code is missing.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 11
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Haha. Point taken.
I switched to NewSoftSerial and rewrote everything from scratch. It seemed that I spent to much time recalculating checksums every turn in the loop.
Now it works. I simply watch the NewSoftSerial-port and when I get a stop-byte, I now recalculate the checksum and then send off the packet.
Logged

0
Offline Offline
Jr. Member
**
Karma: 2
Posts: 81
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

VirtualWire uses timer1 for its own purposes. May be that?
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 17
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Madeleine, could you please paste your code?? i've tried NewSoftSerial and I have the same problem... =S

Thanks in advance!
Logged

Pages: [1]   Go Up
Jump to: