Brazil
Offline
Sr. Member
Karma: 0
Posts: 381
|
 |
« on: August 03, 2012, 05:20:34 pm » |
//The default digital driver pins for the GSM and GPS mode //If you want to change the digital driver pins //or you have a conflict with D3~D5 on Arduino board, //you can remove the J10~J12 jumpers to reconnect other driver pins for the module! byte gsmDriverPin[3] = {3,4,5}; void setup(){ InitGpsMode(); } void InitGpsMode(){ //Init the driver pins for GSM function for(int i = 0 ; i < 3; i++){ pinMode(gsmDriverPin,OUTPUT); } digitalWrite(3,HIGH);//Disable the GSM mode digitalWrite(4,LOW);//Enable the GPS mode } void loop(){ }
como o programa a cima mostra os dados a baixo na porta serial? Qual linha do programa faz esta mostra?
$GPRMC,221621.803,V,,,,,,,030812,,,N*4A $GPVTG,,T,,M,,N,,K,N*2C $GPGGA,221622.803,,,,,0,00,,,M,0.0,M,,0000*5A $GPGSA,A,1,,,,,,,,,,,,,,,*1E $GPRMC,221622.803,V,,,,,,,030812,,,N*49 $GPVTG,,T,,M,,N,,K,N*2C $GPGGA,221623.803,,,,,0,00,,,M,0.0,M,,0000*5B $GPGSA,A,1,,,,,,,,,,,,,,,*1E $GPRMC,221623.803,V,,,,,,,030812,,,N*48 $GPVTG,,T,,M,,N,,K,N*2C $GPGGA,221624.803,,,,,0,00,,,M,0.0,M,,0000*5C $GPGSA,A,1,,,,,,,,,,,,,,,*1E $GPRMC,221624.803,V,,,,,,,030812,,,N*4F $GPVTG,,T,,M,,N,,K,N*2C $GPGGA,221625.803,,,,,0,00,,,M,0.0,M,,0000*5D $GPGSA,A,1,,,,,,,,,,,,,,,*1E $GPRMC,221625.803,V,,,,,,,030812,,,N*4E $GPVTG,,T,,M,,N,,K,N*2C $GPGGA,221626.803,,,,,0,00,,,M,0.0,M,,0000*5E $GPGSA,A,1,,,,,,,,,,,,,,,*1E $GPGSV,3,1,12,10,60,263,,13,52,115,,07,51,171,25,08,51,242,*73 $GPGSV,3,2,12,28,32,338,,23,28,078,,05,16,222,,19,11,091,*7C $GPGSV,3,3,12,04,09,307,,03,08,122,,20,08,022,,02,05,271,*70 $GPRMC,221626.803,V,,,,,,,030812,,,N*4D $GPVTG,,T,,M,,N,,K,N*2C $GPGGA,221627.803,,,,,0,00,,,M,0.0,M,,0000*5F $GPGSA,A,1,,,,,,,,,,,,,,,*1E $GPRMC,221627.803,V,,,,,,,030812,,,N*4C $GPVTG,,T,,M,,N,,K,N*2C $GPGGA,221628.803,,,,,0,00,,,M,0.0,M,,0000*50
|