It is currently Wed May 22, 2013 4:06 am

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: how to send aprs beacon with location?
PostPosted: Thu May 03, 2012 3:04 pm 
Offline

Joined: Thu May 03, 2012 2:49 pm
Posts: 3
hi to all,
in this days i have in testing a demo application in Bertos, for a send a beacon aprs.
I'm not a master in Arduino program, but however the system is perfectly functioning, and without a problem sending a callsign and the message text.
The APRS beacons, however, is devoid of the location by latitude and longitude, how can I implement this information in the beacon to send?
Many thanks in advanced.
Claudio


Top
 Profile  
 
 Post subject: Re: how to send aprs beacon with location?
PostPosted: Fri May 04, 2012 12:26 pm 
Offline

Joined: Fri May 04, 2012 5:27 am
Posts: 3
check main.c

Code:
#define APRS_MSG    ">Test BeRTOS APRS http://www.bertos.org"


Code:
      if (timer_clock() - start > ms_to_ticks(15000L))
      {
         start = timer_clock();
         ax25_sendVia(&ax25, path, countof(path), APRS_MSG, sizeof(APRS_MSG));
      }


Top
 Profile  
 
 Post subject: Re: how to send aprs beacon with location?
PostPosted: Fri May 04, 2012 2:13 pm 
Offline

Joined: Thu May 03, 2012 2:49 pm
Posts: 3
Unfortunately my problem is non in this part of code
Who receives my beacon, only see my callsign and message text, but not my position.

My position is always and absolutely static. Never changing...
Code:
static AX25Call path[] = AX25_PATH(AX25_CALL("apzbrt", 0), AX25_CALL("IZ1LAT", 0), AX25_CALL("wide1", 1), AX25_CALL("wide2", 2));

#define APRS_MSG    ">73 de IZ1LAT by static position"

int main(void)
{
   init();
   ticks_t start = timer_clock();

   while (1)
   {
      /*
       * This function will look for new messages from the AFSK channel.
       * It will call the message_callback() function when a new message is received.
       * If there's nothing to do, this function will call cpu_relax()
       */
      ax25_poll(&ax25);


      /* Send out message every 15sec */
      if (timer_clock() - start > ms_to_ticks(15000L))
      {
         start = timer_clock();
         ax25_sendVia(&ax25, path, countof(path), APRS_MSG, sizeof(APRS_MSG));
      }
   }


Top
 Profile  
 
 Post subject: Re: how to send aprs beacon with location?
PostPosted: Fri May 04, 2012 2:20 pm 
Offline
User avatar

Joined: Wed May 26, 2010 9:46 pm
Posts: 73
You should change the APRS_MSG macro with the correct APRS message string.
Should be something like this:
#define APRS_MSG "!4903.50N/07201.75W-73 de IZ1LAT"

Obviously you have to change your coordinates.

For information on APRS messages format, you can look here:
http://www.aprs.org/doc/APRS101.PDF

Cheers

_________________
Francesco Sacchi - Develer S.r.l.
BeRTOS Developer
http://www.develer.com/ - http://www.bertos.org/


Top
 Profile  
 
 Post subject: Re: how to send aprs beacon with location?
PostPosted: Fri May 04, 2012 2:41 pm 
Offline

Joined: Thu May 03, 2012 2:49 pm
Posts: 3
many thanks Francesco, this evening i'll try this modify.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group