Google
  Web www.spinics.net

Re: Newbie: how to write a program to exchange files with HF modem?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


Marco,

I have not written a program like this for a while, but here are a few
suggestions:

Have the receiver read the modem buffer first and just throw it away. 
This may clear the modem buffer and get rid of the problem with bad
data.

You could implement a handshake protocol between the sender and
receiver.  I remember using net-bios in the past as the protocol.  At
any rate, the sender should send data, and listen for the reciever to
answer that it has it.  I know this will slow things down, and maybe
theres a better way to implement this, but this is what needs to be
done logically.


'73 - Jim KC9AOP



On 10/20/05, liva@xxxxxxxxxxxx <liva@xxxxxxxxxxxx> wrote:
> I'm trying to write in C a linux program to exchange files via hf radio using hal dsp4100 modems, just to learn to do something like that. The modems use the Clover protocol. I don't know how this programs are usually done. In a few words, in my program the sender split the file to be sent in packets and send them to the modem, the receiver collects them from the modem and merge them in one file. The problem is that I'm not able to synchronize the receiver with the sender, so almost always the receiver start to read the data from the modem too soon, reading the old data in the modem buffer instead of the data to come. If I wait too long, the modem buffer becomes full and I loose data. Of course there is some simple way to solve these problems, but I hasn't been able to find it. Thank you for your help,
> Marco Liva
>
> ________________________________________________________________________
> Offro&Cerco: CASA, LAVORO, VACANZE, ELETTRONICA, INCONTRI. Tutti gli
> annunci sono online su Kataweb all'indirizzo http://www.offroecerco.it
>
>
>
> -
> : send the line "unsubscribe linux-hams" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
-
: send the line "unsubscribe linux-hams" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Site Home]     [Linux Newbie]     [Kernel Newbies]     [Memory]     [Security]     [Netfilter]     [Linux Admin]     [Bugtraq]     [Rubini]     [Photo]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [ARM Linux Kernel]     [Linux Networking]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linux Resources]


Add to Google Powered by Linux