Hi,
I've got a little problem with my ATtiny85 (with ATtiny-core Google Code Archive - Long-term storage for Google Code Project Hosting.) and the NewSoftserial. I've got a program with 2 serials. One is connected with a GPS device and the other with another electronic.
First I just want to transmit the GPS signal just from the input to the output, without doing anything with it, but it doesn't work.
I read the output of my ATtiny with my computer and I get something like this:
$PG,92691,,00,M,,*D<LF>GGAA1,,,,,,,*E<LF>GRC012.3,,,,.000,462,
N4<CR>$PT,.0T,,.0N00,,*2<LF>
But the GPS outputs this:
$GPGGA,090818.931,,,,,0,0,,,M,,M,,*4B<CR><LF>$GPGSA,A,1,,,,,,,,,
,,,,,,*1E<CR><LF>$GPGSV,1,1,02,08,,,26,26,,,31*71<CR><LF>$GPRMC,090818.93
1,V,,,,,0.00,0.00,240612,,,N*4D<CR><LF>$GPVTG,0.00,T,,M,0.00,N,0.0
0,K,N*32<CR><LF>
It seems, that just every second received byte will send. Has anyone an idea?
#include <NewSoftSerial.h>
#define RXPIN_F 0
#define TXPIN_F 3
NewSoftSerial GPS(RXPIN_F, 1);
NewSoftSerial Out(2, TXPIN_F);
void setup(){
Out.begin(9600);
GPS.begin(9600);
}
void loop(){
if(GPS.available()){
byte c = GPS.read();
Out.print(c);
}
}