RDS and TMC display
hello
i have tmc receiver http://www.ebay.co.uk/itm/royaltek-gps-rds-tmc-traffic-receiver-develop-module-/170561018797
i try data text crashe in head :~ started on again.
will me started code how can sort out tmc data (2) example! , display in text!
here code use data:
#include <softwareserial.h>
softwareserial rds(3,4); // rx, tx
void setup()
{
serial.begin(9600);
rds.begin(9600);
}
void loop()
{
if (rds.available()) serial.write(rds.read());
}
and here data:
$rttmc,0,e203,052f,77cd,2020*42
$rttmc,2,e203,2520,5033,2053*32
$rttmc,0,e203,052c,e67b,5352*47
$rttmc,2,e203,2521,7065,6c0d*37
$rttmc,2,e203,2520,5033,2053*32
$rttmc,8,e203,8521,4151,f252*40
$rtrds,99.8,9,3,2,1,1,1,100,0,0,0,0*6d
$rttmc,2,e203,2521,7065,6c0d*37
$rttmc,0,e203,0529,6174,2050*39
$rttmc,0,e203,052a,6468,3320*4c
$rttmc,2,e203,2520,5033,2053*32
$rttmc,8,e203,8521,4151,f252*40
$rttmc,0,e203,052f,77cd,2020*42
$rtrds,99.8,9,3,2,1,1,1,100,0,0,0,0*6d
i have tmc receiver http://www.ebay.co.uk/itm/royaltek-gps-rds-tmc-traffic-receiver-develop-module-/170561018797
i try data text crashe in head :~ started on again.
will me started code how can sort out tmc data (2) example! , display in text!
here code use data:
#include <softwareserial.h>
softwareserial rds(3,4); // rx, tx
void setup()
{
serial.begin(9600);
rds.begin(9600);
}
void loop()
{
if (rds.available()) serial.write(rds.read());
}
and here data:
$rttmc,0,e203,052f,77cd,2020*42
$rttmc,2,e203,2520,5033,2053*32
$rttmc,0,e203,052c,e67b,5352*47
$rttmc,2,e203,2521,7065,6c0d*37
$rttmc,2,e203,2520,5033,2053*32
$rttmc,8,e203,8521,4151,f252*40
$rtrds,99.8,9,3,2,1,1,1,100,0,0,0,0*6d
$rttmc,2,e203,2521,7065,6c0d*37
$rttmc,0,e203,0529,6174,2050*39
$rttmc,0,e203,052a,6468,3320*4c
$rttmc,2,e203,2520,5033,2053*32
$rttmc,8,e203,8521,4151,f252*40
$rttmc,0,e203,052f,77cd,2020*42
$rtrds,99.8,9,3,2,1,1,1,100,0,0,0,0*6d
hello again!
i have make string function frequency out string: $rtrds,99.8,7,3,2,1,1,1,100,0,0,0,0*63
void loop()
{
string s = checkrds();
if(s && s.substring(0, 6) == "$rtrds")
{
serial.print("frequency ");
serial.print(s[7]);
serial.print(s[8]);
serial.print(s[9]);
serial.print(s[10]);
serial.println("mhz");
}
and works frequency 99.8 if change 100.1 "100."
how can between comma?
i have make string function frequency out string: $rtrds,99.8,7,3,2,1,1,1,100,0,0,0,0*63
void loop()
{
string s = checkrds();
if(s && s.substring(0, 6) == "$rtrds")
{
serial.print("frequency ");
serial.print(s[7]);
serial.print(s[8]);
serial.print(s[9]);
serial.print(s[10]);
serial.println("mhz");
}
and works frequency 99.8 if change 100.1 "100."
how can between comma?
Arduino Forum > Using Arduino > Project Guidance > RDS and TMC display
arduino
Comments
Post a Comment