Serial communication Tx

Hİ everybody!

i am new on the Arduino boards. i bought Arduino Uno R3. i used it 3 years ago. My problem is transmitting data form tx pin. how can i send data a device not computer? Serial.print() is usefull for this or just monitoring?

my real problem is transmitting GPS data . i read data from Uno Rx pin. Then i saw them

$GPGGA,004125.767,0000.0000,N,00000.0000,E,0,00,,0.0,M,0.0,M,,0000*47
$GPGSA,A,1,,,,,,,,,,,,,,,*1E
$GPGSV,3,1,12,04,66,335,38,02,53,006,39,08,47,166,,10,46,152,*75
$GPGSV,3,2,12,28,34,089,28,09,22,310,32,17,21,008,33,26,21,221,7C
$GPGSV,3,3,12,07,09,151,,15,04,253,,05,04,328,,24,-3,219,35
69

i want to send only GGA data from Tx pin to another device which can read only GGA data. So i decided to use arduino Uno. which function should i use sending filtered GGA directly after i read GPS sentences. And can memory of arduino be problem?

GPS Tx-Uno Rx-Uno Tx-Device Rx
thanks.

Your setup may be possible if your "other device" uses the same baudrate as the GPS. Just use Serial.read() to read the characters and Serial.write() to write them to the "other" device. Filtering is possible.

And can memory of arduino be problem?

Sure it can, how much of it do you need? The UNO has 2kB in total.

thanks for being intrested in me.

i can set same baudrates. i should take and send data to other device permanently. i take sample code in this link Arduino: showing information from a GPS on a LCD

so sending data array char is char buf[300] = ""; when i get 300 characters, i need empty this array.

if i take tx-pin of RS232 from GPS, is it problem?

if i take tx-pin of RS232 from GPS, is it problem?

Yes, because RS-232 uses other voltages than the Arduino's serial interface.

Please provide links to the hardware you're using.

i should take and send data to other device permanently.

So it's probably best if you describe how you're planning to filter the data you receive.

so sending data array char is char buf[300] = ""; when i get 300 characters, i need empty this array.

I doubt that it will be necessary to have a buffer with 300 bytes but this depends largely on what you plan to do with your setup.

If a carriage return/line feed ends each line, then you can use one of those as a line delimiter. Then you can capture each line in a String and check it for the presence of "$GPGGA". If that is in the String, then parse out the rest of the data and send it out the tx.