node-dmr-lib icon indicating copy to clipboard operation
node-dmr-lib copied to clipboard

Sending pre-ambles in data?

Open NielsLelieveld opened this issue 1 year ago • 1 comments

Hi, I noticed using your IPSC example that the SMS is sometimes delivered and sometimes not. I think it might be due to the "burst" being really short and the radio might miss the data. Would it be possible to add a preamble to the sendSms example? What would be a correct way to do so? Thanks!

NielsLelieveld avatar Jun 02 '24 19:06 NielsLelieveld

Hello

The number of preambles (CSBK) can be configured in DMRIPGateway.sendIPPacket method (third parameter). So in the IPSC-client.js example it can be done this way:

    ...

    ip.src_port = 4007;
    ip.dst_port = 4007;
    ip.payload = tms.getBuffer();

    ipGateway.sendIPPacket(ip, slot, 3);

Where 3 - CSBK packets count , so 3 * 60ms = 180ms preamble

rick51231 avatar Jun 22 '24 07:06 rick51231