rick51231 / node-dmr-lib

Motorola MotoTRBO DMR protocols research project.
MIT License
40 stars 7 forks source link

Sending pre-ambles in data? #4

Open NielsLelieveld opened 1 month ago

NielsLelieveld commented 1 month ago

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!

rick51231 commented 2 weeks ago

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