Main Menu

Recent posts

#81
General topics / Re: Dropped Packets with High ...
Last post by Felix - August 26, 2025, 09:12:04 PM
Do you use encryption?
There is no data whitening by default. It's good to ensure you don't have too much data that consists of repeated bits. Maybe play with the whitening and see if it yields any different results (bits 6-7 in register 37):

void RFM69::set300KBPS() {
  writeReg(0x03, 0x00);  //REG_BITRATEMSB: 300kbps (0x006B, see DS p20)
  writeReg(0x04, 0x6B);  //REG_BITRATELSB: 300kbps (0x006B, see DS p20)
  writeReg(0x19, 0x40);  //REG_RXBW: 500kHz
  writeReg(0x1A, 0x80);  //REG_AFCBW: 500kHz
  writeReg(0x05, 0x13);  //REG_FDEVMSB: 300khz (0x1333)
  writeReg(0x06, 0x33);  //REG_FDEVLSB: 300khz (0x1333)
  writeReg(0x29, 240);   //set REG_RSSITHRESH to -120dBm
  writeReg(0x37, 0b10010000); //DC=WHITENING, CRCAUTOOFF=0
  //                ^^->DC: 00=none, 01=manchester, 10=whitening
}
#82
General topics / Re: Dropped Packets with High ...
Last post by Aerokeith - August 12, 2025, 09:54:20 PM
I'm back again, still struggling and frustrated, with my deadline days away. But I have new data that will hopefully shed some light on the root cause. I'm sending packets continuously, and I'm seeing that the packet drop is heavily dependent on the data contents of the packet and the position of the data within the packet. For example, if a packet contains all zeros, I'll get a certain successful-receive rate (pkts/sec), and the rate remains fairly constant if the data isn't changed. If I change the first 5 or 6 bytes in the packet, the packet rate changes (sometimes up, sometimes down) and stabilizes. But if I change any bytes beyond byte 6-ish, the packet receive rate drops to zero and stays there.

I've seen this behavior from the beginning, and I thought there might be another cause (unrelated to the radio). But now I've created a more thorough test to measure the packet rate. I'm currently testing at 300 Kbps.

Does this give you any clues?
#83
General topics / Re: Dropped Packets with High ...
Last post by Felix - July 16, 2025, 05:28:58 PM
Oh interesting. There's a related forum post where the user reports the Teensy as causing their issues  :-X
I think that was one of the first things I suggested eliminating as a variable to see if it reduces the problem  ;)
#84
General topics / Re: Dropped Packets with High ...
Last post by Aerokeith - July 16, 2025, 05:25:31 PM
Thanks. By the way, I reduced the Teensy 4's clock rate from 600MHz to 100MHz, and that seemed to reduce the drop rate in the intermittent-tx scenario. No drops at all when sending/receiving continuously.
#85
Thanks for the update.
Coincidentally there's another Teensy related post right now where some dropped packet issues are happening.
#86
General topics / Re: Dropped Packets with High ...
Last post by Felix - July 16, 2025, 05:18:10 PM
Sorry I didn't reply yet, I did read through the post but didn't have a better suggestion so wasn't sure what alternatives I could recommend.
What you are trying is what I would probably try as well.
There are many variables in the radio configuration. This is certainly more of an edge case and perhaps the library is not optimized for this so you might have to tweak the library functions to try and see if that gets you closer. I just don't have insight without trying to solve the exact problem you're facing.
#87
General topics / Re: Dropped Packets with High ...
Last post by Aerokeith - July 16, 2025, 05:08:57 PM
Sorry to bug you. Can you at least confirm that the approach I'm using should work, and that it's not unusual? I keep looking for something stupid I've done, but no luck so far.
#88
Just an update, in case someone happens to encounter the same weird stutter.

It turned out to be something Teensy-related! As soon as I replaced Teensy with ATmega32U4-based board, the weird 200ms delay went away. I have no idea if the problem is with Teensy itself or the NRF24L01+ libraries.
#89
Pi Gateway / Re: Running on PROXMOX LXC
Last post by Uncle Buzz - July 12, 2025, 04:53:39 PM
The nedb that was installed with the script was not the latest version on your GitHub (which I believe is the latest version from Louischatriot). It threw an exception about IsDate from Utils. I changed utils.IsDate to utils.types.IsDate, which solved the problem and allowed the app to start correctly.

After finding the link to your nedb GitHub fork, I checked your code and saw another correction to mine. I manually copied your repo of nedb and didn't notice any difference, but everything is working correctly right now. I'm not sure if it's related or if it's related to some browser extensions I have uniloaded. I have to investigate further, but it works!
#90
Pi Gateway / Running on PROXMOX LXC
Last post by Uncle Buzz - July 12, 2025, 08:14:38 AM
Hi,

I'am trying to run the gateway app on  a proxmox container LXC (not a VM) and I have some strange behavior...


I created a container with Debian 12.2 amd64 base, pass the USB device to the CT and installed the gateway app via the github script (version 9.2.1)


I'm able to run the app, getting node data, seams to be almost good... apart from following :

The node is auto generated when gateway receives new message, but I'm not able to edit or save any update since the node is reset at each new message, like the autogeneration was always executed even if the node already exists.

When I reload the webpage, the node list I void, but I can't add a node already known, and it appears on the GUI when a new message is received.

I'm not able to set a new label nor description, nor new event (I'm trying to add mqtt event which is correctly set and connect to the mqtt broker thanks to this topic


I wonder if all this strange stuff is due to the container, or library version from the debian 12 repository, or any misconfiguration.

Do you have any idea Felix ?