2f428a496db82bd9f37ac916957aa2765b8df60c
Board-dat/Board-DAT.md
| ... | ... | @@ -106,7 +106,11 @@ WCH - [[DPR1133-dat]] |
| 106 | 106 | |
| 107 | 107 | ### DVA |
| 108 | 108 | |
| 109 | -- [[DVA1002-dat]] - [[DVA1007-dat]] |
|
| 109 | +- [[DVA1002-dat]] |
|
| 110 | + |
|
| 111 | +- [[DVA1005-dat]] |
|
| 112 | + |
|
| 113 | +- [[DVA1007-dat]] - [[DVA1008-dat]] - [[lora-dat]] |
|
| 110 | 114 | |
| 111 | 115 | ### ESP |
| 112 | 116 |
Board-dat/DVA/DVA1007-DAT/2025-07-03-19-31-14.png
| ... | ... | Binary files /dev/null and b/Board-dat/DVA/DVA1007-DAT/2025-07-03-19-31-14.png differ |
Board-dat/DVA/DVA1007-DAT/2025-07-03-19-31-32.png
| ... | ... | Binary files /dev/null and b/Board-dat/DVA/DVA1007-DAT/2025-07-03-19-31-32.png differ |
Board-dat/DVA/DVA1007-DAT/DVA1007-DAT.md
| ... | ... | @@ -72,6 +72,32 @@ Buck order price: |
| 72 | 72 | - 16% discount for 100-499pcs order, |
| 73 | 73 | - 20% for 500pcs+ order. Auto update price. |
| 74 | 74 | |
| 75 | +## coding config |
|
| 76 | + |
|
| 77 | + const int csPin = 10; // LoRa radio chip select |
|
| 78 | + const int resetPin = 8; // LoRa radio reset |
|
| 79 | + const int irqPin = 2; // change for your board; must be a hardware interrupt pin |
|
| 80 | + ... |
|
| 81 | + |
|
| 82 | + LoRa.setPins(csPin, resetPin, irqPin); // set CS, reset, IRQ pin |
|
| 83 | + |
|
| 84 | + if (!LoRa.begin(868E6)) { // initialize ratio at 915 MHz |
|
| 85 | + Serial.println("LoRa init failed. Check your connections."); |
|
| 86 | + while (true); // if failed, do nothing |
|
| 87 | + } |
|
| 88 | + |
|
| 89 | + LoRa.setSignalBandwidth(125E3); |
|
| 90 | + LoRa.setSpreadingFactor(9); // ranges from 6-12,default 7 see API docs |
|
| 91 | + LoRa.setCodingRate4(4/6); |
|
| 92 | + |
|
| 93 | + Serial.println("LoRa init succeeded."); |
|
| 94 | + |
|
| 95 | +- from USB Lora Board to [[DVA1008-dat]] running at 868mhz |
|
| 96 | + |
|
| 97 | +  |
|
| 98 | + |
|
| 99 | +  |
|
| 100 | + |
|
| 75 | 101 | |
| 76 | 102 | ## demo video |
| 77 | 103 | |
| ... | ... | @@ -81,3 +107,5 @@ Buck order price: |
| 81 | 107 | ## ref |
| 82 | 108 | |
| 83 | 109 | - [[DVA1007]] - [[DVA1008]] - [[DVA1009]] |
| 110 | + |
|
| 111 | +- [[radiohead-dat]] - [[lora-sdk-dat]] |
|
| ... | ... | \ No newline at end of file |
SDK-dat/arduino-dat/arduino-lib-dat/radiohead-dat/radiohead-dat.md
| ... | ... | @@ -20,3 +20,55 @@ nrf24_client |
| 20 | 20 | No reply, is nrf24_server running? |
| 21 | 21 | Sending to nrf24_server |
| 22 | 22 | No reply, is nrf24_server running? |
| 23 | + |
|
| 24 | + |
|
| 25 | + |
|
| 26 | + |
|
| 27 | +## RF95 |
|
| 28 | + |
|
| 29 | + |
|
| 30 | +### config |
|
| 31 | + |
|
| 32 | +// Defaults after init are 434.0MHz, 13dBm, Bw = 125 kHz, Cr = 4/5, Sf = 128chips/symbol, CRC on |
|
| 33 | + |
|
| 34 | + rf95.setFrequency(868.0); |
|
| 35 | + rf95.setTxPower(22, true); |
|
| 36 | + // rf95.setModemConfig(RH_RF95::Bw125Cr46Sf9); |
|
| 37 | + rf95.spiWrite(RH_RF95_REG_1D_MODEM_CONFIG1, 0x72); // Bw125kHz, Cr4/6, Explicit Header |
|
| 38 | + rf95.spiWrite(RH_RF95_REG_1E_MODEM_CONFIG2, 0x94); // SF9, CRC off, RxTimeoutMsb=0 |
|
| 39 | + |
|
| 40 | + |
|
| 41 | +### config 2 |
|
| 42 | + |
|
| 43 | +https://github.com/meshtastic/RadioHead/blob/master/RH_RF95.cpp |
|
| 44 | + |
|
| 45 | + |
|
| 46 | + // rf95.setModemConfig(RH_RF95::Bw125Cr46Sf9); |
|
| 47 | + rf95.setSignalBandwidth(RH_RF95_BW_125KHZ); |
|
| 48 | + rf95.setCodingRate4(RH_RF95_CODING_RATE_4_6); |
|
| 49 | + rf95.setSpreadingFactor(RH_RF95_SPREADING_FACTOR_512CPS); |
|
| 50 | + |
|
| 51 | + |
|
| 52 | + |
|
| 53 | +### Explicit Header |
|
| 54 | + |
|
| 55 | +Explicit Header in the context of LoRa (as used by the RadioHead library and the RF95 chip) refers to a packet format where the header information—such as payload length, coding rate, and CRC presence—is included in each transmitted packet. |
|
| 56 | + |
|
| 57 | +Explicit Header mode: The packet contains a header with metadata (payload length, coding rate, CRC on/off). This allows the receiver to dynamically adapt to different packet configurations. |
|
| 58 | + |
|
| 59 | +Implicit Header mode: The header is omitted; both sender and receiver must be pre-configured with the same settings, as the packet does not carry this information. |
|
| 60 | + |
|
| 61 | +### RxTimeoutMsb=0 |
|
| 62 | + |
|
| 63 | +RxTimeoutMsb=0 refers to a setting in the RF95 LoRa modem configuration register (specifically, RH_RF95_REG_1E_MODEM_CONFIG2). The "RxTimeout" parameter controls how long the receiver will wait for a valid preamble before timing out. |
|
| 64 | + |
|
| 65 | +RxTimeoutMsb is the most significant byte of the receive timeout value. |
|
| 66 | +Setting RxTimeoutMsb=0 means the timeout is set to its minimum value (effectively disabled or very short), so the receiver will not wait long for a packet before giving up. |
|
| 67 | + |
|
| 68 | + |
|
| 69 | +- [[Lora-SDK-dat]] |
|
| 70 | + |
|
| 71 | +E:\Git-category\Git-Arduino\arduino-main2\libraries\RadioHead |
|
| 72 | + |
|
| 73 | + |
|
| 74 | +- [[Dva1007-dat]] |
|
| ... | ... | \ No newline at end of file |
Tech-dat/Network-dat/RF-dat/LORA-DAT/Lora-SDK-dat/Lora-SDK-dat.md
| ... | ... | @@ -30,6 +30,12 @@ Path: The UserConfig.c file in LR_driver is a common file generated when adaptin |
| 30 | 30 | |
| 31 | 31 | |
| 32 | 32 | |
| 33 | +## arduino library |
|
| 34 | + |
|
| 35 | +- https://github.com/sandeepmistry/arduino-LoRa |
|
| 36 | +- [[radiohead-dat]] |
|
| 37 | + |
|
| 38 | + |
|
| 33 | 39 | |
| 34 | 40 | ## code repro |
| 35 | 41 | |
| ... | ... | @@ -38,6 +44,18 @@ Path: The UserConfig.c file in LR_driver is a common file generated when adaptin |
| 38 | 44 | - https://github.com/Edragon/alios-asr-lora |
| 39 | 45 | - E:\Git-category\git-lora |
| 40 | 46 | |
| 47 | +## LORA STM32 code |
|
| 48 | + |
|
| 49 | + sx126x_mod_params_lora_t params; |
|
| 50 | + params.bw = SX126X_LORA_BW_125; // Set bandwidth to 125 kHz |
|
| 51 | + params.sf = SX126X_LORA_SF9; // Set spreading factor to 9 |
|
| 52 | + params.cr = SX126X_LORA_CR_4_6; // Set coding rate to 4/6 |
|
| 53 | + params.ldro = 0x00; // Low Data Rate Optimization disabled |
|
| 54 | + sx126x_set_lora_mod_params(NULL, ¶ms); // Apply these parameters to the radio |
|
| 55 | + |
|
| 56 | + |
|
| 57 | + |
|
| 58 | + |
|
| 41 | 59 | ## lora encrpytion |
| 42 | 60 | |
| 43 | 61 | - [[encryption-dat]] |