Local harware modification :shipit:

pull/4/head
zenghi 2017-12-20 17:44:39 +08:00
rodzic dd6bb7715f
commit d816f5f706
2 zmienionych plików z 14 dodań i 4 usunięć

Wyświetl plik

@ -852,6 +852,16 @@ void initLoraModem()
writeRegister(REG_LNA, (uint8_t) LNA_MAX_GAIN); // 0x0C, 0x23
uint8_t version = readRegister(REG_VERSION); // Read the LoRa chip version id
#if 0
uint8_t count = 1000;
while(count--)
{
uint8_t version1 = readRegister(REG_VERSION); // Read the LoRa chip version id
Serial.println(version1,HEX);
yield();
}
#endif// endif 0
if (version == 0x22) {
// sx1272
#if DUSB>=2

Wyświetl plik

@ -22,8 +22,8 @@
// Our code should correct the server timing
long txDelay= 0x00; // delay time on top of server TMST
//#define SPISPEED 8000000 // was 50000/50KHz < 10MHz
#define SPISPEED 8000000 // was 50000/50KHz < 10MHz
// Frequencies
// Set center frequency. If in doubt, choose the first one, comment all others
// Each "real" gateway should support the first 3 frequencies according to LoRa spec.
@ -103,10 +103,10 @@ struct pins {
#elif _PIN_OUT==2
// For ComResult gateway PCB use the following settings
struct pins {
uint8_t dio0=5; // GPIO5 / D1. Dio0 used for one frequency and one SF
uint8_t dio1=4; // GPIO4 / D2. Used for CAD, may or not be shared with DIO0
uint8_t dio0=4; // GPIO5 / D1. Dio0 used for one frequency and one SF
uint8_t dio1=5; // GPIO4 / D2. Used for CAD, may or not be shared with DIO0
uint8_t dio2=0; // GPIO0 / D3. Used for frequency hopping, don't care
uint8_t ss=15; // GPIO15 / D8. Select pin connected to GPIO15
uint8_t ss=16; // GPIO15 / D8. Select pin connected to GPIO15
uint8_t rst=0; // GPIO0 / D3. Reset pin not used
} pins;
#else