KPOP brak ustawień domyślnych

[email protected]
Posts: 1584
Joined: Mon Feb 06, 2023 8:56 am
Has thanked: 18 times
Been thanked: 26 times

Post

@klew
może coś podpowiesz co może być nie tak, taka sytuacja jak poniżej, a w Cloud po zarejestrowaniu nie ma jednostki PO oraz precyzji ustawionej, dopiero jak kliknę: przywróć domyślne wartości to się ustawiają.

Jeśli dobrze zrozumiałem źrodła GPM to tam jest taki warunek i pewnie on nie jest spełniony? https://github.com/SUPLA/supla-device/b ... e.cpp#L139

Code: Select all

namespace Supla {
namespace Sensor {
class HC_SR04_KPOP : public GeneralPurposeMeasurement {
 public:
  HC_SR04_KPOP(int8_t trigPin, int8_t echoPin, int16_t minRange = 0, int16_t maxRange = 500, bool calculate = false, bool simulate = false)
  : GeneralPurposeMeasurement(nullptr, false) {
    _trigPin = trigPin;
    _echoPin = echoPin;
    _minRange = minRange;
    _maxRange = maxRange;
    _calculate = calculate;
    _simulate = simulate;

    if(!_simulate) { 
      sonar = new NewPing(_trigPin, _echoPin, _maxRange > 0 ? _maxRange : 500);
      delay(100);  // give time to initialize, preventing ping_median fails
      sonar->ping_median(5);
    }
    setDefaultUnitAfterValue("%");
    setDefaultValuePrecision(2);
  }

  virtual double getValue() {
    if(_simulate) {
      return random(_minRange, _maxRange);  // Simulated value for testing purposes
    }

    uint32_t echoTime = sonar->ping_median(5);
    if (echoTime == 0) {
      return NAN;
    }

    float distance = (float)echoTime / US_ROUNDTRIP_CM;

    if (_maxRange == _minRange) {
      return NAN;
    }

    if(_calculate) {
      float percent = (distance - _minRange) / (float)(_maxRange - _minRange) * 100.0f;
      if (percent < 0.0f) {
        percent = 0.0f;
      }
      if (percent > 100.0f) {
        percent = 100.0f;
      }

      return static_cast<double>(percent);
    } 
    else {
      return static_cast<double>(distance);
    }

  }

 protected:
  int8_t _trigPin;
  int8_t _echoPin;
  int16_t _minRange;
  int16_t _maxRange;
  bool _calculate;
  bool _simulate;

  NewPing *sonar = nullptr;
};

};  // namespace Sensor
};  // namespace Supla

#endif
#endif
User avatar
klew
Posts: 13905
Joined: Thu Jun 27, 2019 12:16 pm
Location: Wrocław
Has thanked: 134 times
Been thanked: 137 times

Post

[email protected] wrote: Mon Aug 03, 2026 5:40 pm
To normalne w trakcje pisania. Najpierw mogłeś dodać urządzenie bez tych parametrów, a potem dodałeś parametry.
Ogólnie te wartości default pokazują się tylko gdy:
1. Serwer nia ma zapisanych wcześniejszych ustawień
2. Urządznenie nie ma zapisanych wcześniejszych ustawień.

Także najlpeiej przetestdować zerując flash i wgrywając wszystko od nowa. Wtedy wskoczy nowe urządzenie i zobaczysz czy stan początkowy jest prawidłowy.
Najlepsze suple dla Twojego domu :mrgreen:
[email protected]
Posts: 1584
Joined: Mon Feb 06, 2023 8:56 am
Has thanked: 18 times
Been thanked: 26 times

Post

klew wrote: Mon Aug 03, 2026 6:34 pm
[email protected] wrote: Mon Aug 03, 2026 5:40 pm
To normalne w trakcje pisania. Najpierw mogłeś dodać urządzenie bez tych parametrów, a potem dodałeś parametry.
Ogólnie te wartości default pokazują się tylko gdy:
1. Serwer nia ma zapisanych wcześniejszych ustawień
2. Urządznenie nie ma zapisanych wcześniejszych ustawień.

Także najlpeiej przetestdować zerując flash i wgrywając wszystko od nowa. Wtedy wskoczy nowe urządzenie i zobaczysz czy stan początkowy jest prawidłowy.
no właśnie tak robiłem i nie jest prawidłowy, czyściłem flash i usuwałem z cloud i jest to powtarzalne
User avatar
klew
Posts: 13905
Joined: Thu Jun 27, 2019 12:16 pm
Location: Wrocław
Has thanked: 134 times
Been thanked: 137 times

Post

[email protected] wrote: Mon Aug 03, 2026 6:42 pm no właśnie tak robiłem i nie jest prawidłowy, czyściłem flash i usuwałem z cloud i jest to powtarzalne
Daj wszystko na czysto i zbierz logi z urządzenia z pierwszego startu.
Najlepsze suple dla Twojego domu :mrgreen:
[email protected]
Posts: 1584
Joined: Mon Feb 06, 2023 8:56 am
Has thanked: 18 times
Been thanked: 26 times

Post

klew wrote: Tue Aug 04, 2026 9:23 am
[email protected] wrote: Mon Aug 03, 2026 6:42 pm no właśnie tak robiłem i nie jest prawidłowy, czyściłem flash i usuwałem z cloud i jest to powtarzalne
Daj wszystko na czysto i zbierz logi z urządzenia z pierwszego startu.

Code: Select all


--- Terminal on COM4 | 115200 8-N-1
--- Available filters and text transformations: debug, default, direct, esp32_exception_decoder, hexlify, log2file, nocontrol, printable, send_on_enter, time
--- More details at https://bit.ly/pio-monitor-filters
--- Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H
ESP-ROM:esp32c6-20220919
Build:Sep 19 2022
rst:0x1 (POWERON),boot:0x4 (DOWNLOAD(USB/UART0/SDIO_FEI_FEO))
waiting for download
ESP-ROM:esp32c6-20220919
Build:Sep 19 2022
rst:0x1 (POWERON),boot:0xc (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:2
load:0x40875720,len:0x1228
load:0x4086c110,len:0xd9c
load:0x4086e610,len:0x2f74
entry 0x4086c110
File not found
[SPIFFS] Version file saved: Z2S-26.01.01
SET FIRST DEVICE CONFIGURATION!
Save key: 4 Value: admin
Save key: 5 Value: pass
Save key: 6 Value: GUI Generic
Save key: 7 Value: svrX.supla.org
Save key: 8 Value: [email protected]
Save key: 20 Value: 1
Save key: 24 Value: ,,,,,,,1,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Save key: 32 Value: ,,0,,,,,,,,,,,,,,,1,,,,,,,,,,,,,,,,,
Save key: 71 Value: 1
Save key: 72 Value: 0
Save key: 0 Value: ��0}�␞�5�C`e�#�b
Save key: 1 Value: w�r�␃n���d�8{�u�
Save key: 4 Value: admin
Save key: 5 Value: pass
Save key: 6 Value: GUI Generic
Save key: 7 Value: svrX.supla.org
Save key: 8 Value: [email protected]
Save key: 20 Value: 1
Save key: 24 Value: ,,,,,,,1,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Save key: 32 Value: ,,0,,,,,,,,,,,,,,,1,,,,,,,,,,,,,,,,,
Save key: 71 Value: 1
Save key: 72 Value: 0
[Wi-Fi] setConfigMode
Initializing Status LED on GPIO 8 inverted: 1
Button[0] setMulticlickTime: 450
Applying preconfigured settings from build configuration...
Save key: 0 Value: ��0}�␞�5�C`e�#�b
Save key: 1 Value: w�r�␃n���d�8{�u�
Save key: 2 Value: bbb
Save key: 3 Value: ccc
Save key: 4 Value: admin
Save key: 5 Value: pass
Save key: 6 Value: GG BD1
Save key: 7 Value: ssss
Save key: 8 Value: mmm
Save key: 20 Value: 1
Save key: 24 Value: ,,,,,,,1,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Save key: 32 Value: ,,0,,,,,,,,,,,,,,,1,,,,,,,,,,,,,,,,,
Save key: 45 Value: 1,11,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Save key: 46 Value: 1,12,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Save key: 71 Value: 1
Save key: 72 Value: 0
Save key: 115 Value: 1
Save key: 116 Value: 10
Save key: 117 Value: 20
Save key: 118 Value: 1
SD: enableNetwork
SD: initial mode: Start in cfg mode (legacy, deprected)
SD: leave cfg mode after inactivity: 5 min

 *** Supla - starting initialization (platform 0)
Clock not configured, using default clock
SD: add flag DEVICE_CONFIG_SUPPORTED
SD: add flag CALCFG_RESTART_DEVICE
Storage initialization
EEPROM: Read 8 bytes [FF 00 00 00 00 00 00 00 ] (offset 0)
Storage: missing Supla tag. Rewriting...
EEPROM: Wrote 7 bytes (offset 8)
EEPROM: Wrote 8 bytes (offset 0)
EEPROM: Commit
SPIFFSConfig:: config file "/supla-dev.cfg" missing
SPIFFSConfig:: config file "/supla-dev.cfg.bak" missing

 *** Supla - Config initalization
SD: add flag CALCFG_ENTER_CFG_MODE
SD: add flag CALCFG_FACTORY_RESET_SUPPORTED
Automatic firmware update is disabled
Device mode: 0

 *** Supla - Config load for elements
SD: add flag CALCFG_IDENTIFY_DEVICE
RemoteDeviceConfig: Registering field 0x000000001
Button[0] don't load config
RemoteDeviceConfig: Registering field 0x000000010
Clock: automaticTimeSync: 1
 *** Supla - Config load for elements done

 *** Supla - Load state storage
Validating storage state section with current device configuration
Storage state section validation successful
 *** Supla - Load state storage done

 *** Supla - Init elements
Button[0]: Initialized: pin 0, pullUp 1, activeHigh 0, state 1
 *** Supla - Init elements done

GUID: ECFA307DA41EFA35E34360658E23DD62
Device name: GG BD1
Device software version: GG v26.01.01
 *** Supla - Initializing network layer
[Wi-Fi] Network AP/hostname: GG-BD1-404CCA5EA748
Using Supla protocol version 23
Current status: [5] SuplaDevice initialized
Enter normal mode
[Wi-Fi] setNormalMode
 *** Supla - Initialization done

 *** Self-test ***
TEST: ManufacturerID is 0
TEST failed: ProductID is empty
TEST failed: storage init result is false
TEST failed: missing public RSA key
TEST failed: automatic firmware update is disabled
TEST failed: config encryption is disabled
TEST failed: missing web server
TEST failed: security log is disabled
TEST failed: initial mode is set to config mode
 *** Self-test done ***
WiFi: establishing connection with SSID: "xxx"
Connected BSSID: 32:DE:4B:1D:ED:DE
local IP: 192.168.1.119
subnetMask: 255.255.255.0
gatewayIP: 192.168.1.1
Signal strength (RSSI): -86 dBm
Establishing NOT encrypted connection with: xxxx (port: 2015)
Connected via IP 192.168.1.119
Connected to Supla Server
Initializing SRPC (proto: 23)
LAST STATE ADDED: Register in progress
Current status: [10] Register in progress
SRPC TX call=REGISTER_DEVICE_F(75) size=602 raw=[53 55 50 4C 41 17 01 00 00 00 4B 00 00 00 48 02 00 00 72 61 66 61 6C 65 6B 6B 61 6C 77 61 6B 40 77 70 2E 70 6C 00{237} 77 8C 72 F3 03 6E DA C0 BA 64 FA 38 7B DA 75 99 EC FA 30 7D A4 1E FA 35 E3 43 60 65 8E 23 DD 62 47 47 20 42 44 31 00{195} 47 47 20 76 32 36 2E 30 31 2E 30 31 00{9} 53 76 72 38 35 2E 73 75 70 6C 61 2E 6F 72 67 00{50} D0 4C 00{7} ]
SRPC RX call=REGISTER_DEVICE_RESULT(70) size=7 raw=[03 00 00 00 78 1C 01 ]
Device registered (activity timeout 120 s, server version: 28, server min version: 1)
LAST STATE ADDED: Registered and ready
Current status: [17] Registered and ready
Changing activity timeout to 30 s
SRPC TX call=SET_ACTIVITY_TIMEOUT(210) size=1 raw=[1E ]
SRPC TX call=GET_USER_LOCALTIME(480) size=0 payload=<redacted>
SRPC RX call=SET_DEVICE_CONFIG(685) size=27 raw=[01 00{26} ]
Received new device config
RemoteDeviceConfig: Config fields mismatch (0x000000000 != 0x000000011) - sending device config for fields 0x000000011
Sending device config result OK (1)
SRPC TX call=SET_DEVICE_CONFIG_RESULT(695) size=10 raw=[01 00{9} ]
Adding StatusLed config field
Setting StatusLedType to 0 (0x0)
Adding AutomaticTimeSync config field
Setting AutomaticTimeSync to 1
SRPC TX call=SET_DEVICE_CONFIG(684) size=29 raw=[01 00{8} 11 00{7} 11 00{7} 02 00 00 01 ]
SRPC RX call=SET_ACTIVITY_TIMEOUT_RESULT(220) size=3 raw=[1E 0A F0 ]
Activity timeout set to 30 s
SRPC RX call=GET_USER_LOCALTIME_RESULT(490) size=26 raw=[EA 07 08 04 03 13 1E 06 0E 00 00 00 45 75 72 6F 70 65 2F 57 61 72 73 61 77 00 ]
Clock: current time: 1970-01-01 00:00:03
Clock: time diff (system-new): -1785871803 s
Clock: new time: 2026-08-04 19:30:06
SRPC RX call=SET_DEVICE_CONFIG_RESULT(694) size=10 raw=[01 00{9} ]
Received set device config result OK (1)
SRPC RX call=SET_DEVICE_CONFIG(685) size=29 raw=[01 00{8} 11 00{7} 11 00{7} 02 00 00 01 ]
Received new device config
Processing StatusLed config
Processing AutomaticTimeSync config
Sending device config result OK (1)
SRPC TX call=SET_DEVICE_CONFIG_RESULT(695) size=10 raw=[01 00{9} ]
EEPROM: Wrote 7 bytes (offset 8)
EEPROM: Commit
SRPC TX call=PING(40) size=16
SRPC RX call=PONG(50) size=16
SRPC TX call=PING(40) size=16
SRPC RX call=PONG(50) size=16
SRPC TX call=PING(40) size=16
SRPC RX call=PONG(50) size=16


RESET ręcznie


ESP-ROM:esp32c6-20220919
Build:Sep 19 2022
rst:0x1 (POWERON),boot:0xc (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:2
load:0x40875720,len:0x1228
load:0x4086c110,len:0xd9c
load:0x4086e610,len:0x2f74
entry 0x4086c110
Config read
Key: 0 Value: ��0}�␞�5�C`e�#�b
Key: 1 Value: w�r�␃n���d�8{�u�
Key: 2 Value: xxxx
Key: 3 Value: xxx
Key: 4 Value: admin
Key: 5 Value: pass
Key: 6 Value: GG BD1
Key: 7 Value: xxx
Key: 8 Value: xxxx
Key: 9 Value: 
Key: 10 Value: 
Key: 11 Value: 
Key: 12 Value: 
Key: 13 Value: 
Key: 14 Value: 
Key: 15 Value: 
Key: 16 Value: 
Key: 17 Value: 
Key: 18 Value: 
Key: 19 Value: 
Key: 20 Value: 1
Key: 21 Value: 
Key: 22 Value: 
Key: 23 Value: 
Key: 24 Value: ,,,,,,,1,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Key: 25 Value: 
Key: 26 Value: 
Key: 27 Value: 
Key: 28 Value: 
Key: 29 Value: 
Key: 30 Value: 
Key: 31 Value: 
Key: 32 Value: ,,0,,,,,,,,,,,,,,,1,,,,,,,,,,,,,,,,,
Key: 33 Value: 
Key: 34 Value: 
Key: 35 Value: 
Key: 36 Value: 
Key: 37 Value: 
Key: 38 Value: 
Key: 39 Value: 
Key: 40 Value: 
Key: 41 Value: 
Key: 42 Value: 
Key: 43 Value: 
Key: 44 Value: 
Key: 45 Value: 1,11,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Key: 46 Value: 1,12,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Key: 47 Value: 
Key: 48 Value: 
Key: 49 Value: 
Key: 50 Value: 
Key: 51 Value: 
Key: 52 Value: 
Key: 53 Value: 
Key: 54 Value: 
Key: 55 Value: 
Key: 56 Value: 
Key: 57 Value: 
Key: 58 Value: 
Key: 59 Value: 
Key: 60 Value: 
Key: 61 Value: 
Key: 62 Value: 
Key: 63 Value: 
Key: 64 Value: 
Key: 65 Value: 
Key: 66 Value: 
Key: 67 Value: 
Key: 68 Value: 
Key: 69 Value: 
Key: 70 Value: 
Key: 71 Value: 1
Key: 72 Value: 0
Key: 73 Value: 
Key: 74 Value: 
Key: 75 Value: 
Key: 76 Value: 
Key: 77 Value: 
Key: 78 Value: 
Key: 79 Value: 
Key: 80 Value: 
Key: 81 Value: 
Key: 82 Value: 
Key: 83 Value: 
Key: 84 Value: 
Key: 85 Value: 
Key: 86 Value: 
Key: 87 Value: 
Key: 88 Value: 
Key: 89 Value: 
Key: 90 Value: 
Key: 91 Value: 
Key: 92 Value: 
Key: 93 Value: 0
Key: 94 Value: 
Key: 95 Value: 
Key: 96 Value: 
Key: 97 Value: 
Key: 98 Value: 
Key: 99 Value: 
Key: 100 Value: 
Key: 101 Value: 
Key: 102 Value: 
Key: 103 Value: 
Key: 104 Value: 
Key: 105 Value: 
Key: 106 Value: 
Key: 107 Value: 
Key: 108 Value: 
Key: 109 Value: 
Key: 110 Value: 
Key: 111 Value: 
Key: 112 Value: 
Key: 113 Value: 
Key: 114 Value: 
Key: 115 Value: 1
Key: 116 Value: 10
Key: 117 Value: 20
Key: 118 Value: 1
[SPIFFS] Version file saved: Z2S-26.01.01
Initializing Status LED on GPIO 8 inverted: 1
Button[0] setMulticlickTime: 450
Channel[0]: setDefaultFunction: 520
GPM[0]: DefaultUnitAfterValue "%"
GPM[0]: DefaultValuePrecision 2
Preconfigured settings already applied.
SD: initial mode: Start in cfg mode (legacy, deprected)
SD: leave cfg mode after inactivity: 5 min

 *** Supla - starting initialization (platform 0)
Clock not configured, using default clock
SD: add flag DEVICE_CONFIG_SUPPORTED
SD: add flag CALCFG_RESTART_DEVICE
Storage initialization
EEPROM: Read 8 bytes [53 55 50 4C 41 01 00 01 ] (offset 0)
Storage: Number of sections 1
Reading section: 0
EEPROM: Read 7 bytes [03 00 00 FF FF FF FF ] (offset 8)
Section type: 3; size: 0
storedCRC 65535, CRC calc 65535
SPIFFSConfig:: config file "/supla-dev.cfg" missing
SPIFFSConfig:: config file "/supla-dev.cfg.bak" missing

 *** Supla - Config initalization
SD: add flag CALCFG_ENTER_CFG_MODE
SD: add flag CALCFG_FACTORY_RESET_SUPPORTED
Automatic firmware update is disabled
Device mode: 0

 *** Supla - Config load for elements
SD: add flag CALCFG_IDENTIFY_DEVICE
RemoteDeviceConfig: Registering field 0x000000001
Button[0] don't load config
GPM[0]: config loaded successfully
GPM[0]: RefreshIntervalMs 5000 ms
RemoteDeviceConfig: Registering field 0x000000010
Clock: automaticTimeSync: 1
 *** Supla - Config load for elements done

 *** Supla - Load state storage
Validating storage state section with current device configuration
Storage state section validation successful
 *** Supla - Load state storage done

 *** Supla - Init elements
Button[0]: Initialized: pin 0, pullUp 1, activeHigh 0, state 1
Channel(0) value changed to 12.00
 *** Supla - Init elements done

GUID: ECFA307DA41EFA35E34360658E23DD62
Device name: GG BD1
Device software version: GG v26.01.01
 *** Supla - Initializing network layer
[Wi-Fi] Network AP/hostname: GG-BD1-404CCA5EA748
Using Supla protocol version 23
Current status: [5] SuplaDevice initialized
Enter normal mode
[Wi-Fi] setNormalMode
 *** Supla - Initialization done

 *** Self-test ***
TEST: ManufacturerID is 0
TEST failed: ProductID is empty
TEST failed: storage init result is false
TEST failed: missing public RSA key
TEST failed: automatic firmware update is disabled
TEST failed: config encryption is disabled
TEST failed: missing web server
TEST failed: security log is disabled
TEST failed: initial mode is set to config mode
 *** Self-test done ***
WiFi: establishing connection with SSID: "xxxx"
Connected BSSID: 32:DE:4B:1D:ED:DE
local IP: 192.168.1.119
subnetMask: 255.255.255.0
gatewayIP: 192.168.1.1
Signal strength (RSSI): -85 dBm
Establishing NOT encrypted connection with: xxxx (port: 2015)
Connected via IP 192.168.1.119
Connected to Supla Server
Initializing SRPC (proto: 23)
LAST STATE ADDED: Register in progress
Current status: [10] Register in progress
SRPC TX call=REGISTER_DEVICE_F(75) size=602 payload={Email=<redacted>, AuthKey=<redacted>, GUID=<redacted>, Name="GG BD1", SoftVer="GG v26.01.01", ServerName="Svr85.supla.org", Flags=0x4CD0, ManufacturerID=0, ProductID=0, channel_count=1}
SRPC TX call=REGISTER_DEVICE_F(75) size=35 payload={Number=0, Type=9000, FuncList=0x0, Default=520, Flags=0x008010000, Offline=0(online), ValueValidityTimeSec=0, value[8]=00 00 00 00 00 00 28 40, DefaultIcon=0}
SRPC RX call=REGISTER_DEVICE_RESULT(70) size=7 raw=[03 00 00 00 78 1C 01 ]
Device registered (activity timeout 120 s, server version: 28, server min version: 1)
LAST STATE ADDED: Registered and ready
Current status: [17] Registered and ready
Changing activity timeout to 30 s
SRPC TX call=SET_ACTIVITY_TIMEOUT(210) size=1 raw=[1E ]
SRPC TX call=GET_USER_LOCALTIME(480) size=0 payload=<redacted>
SRPC RX call=SET_DEVICE_CONFIG(685) size=29 raw=[01 00{8} 11 00{7} 11 00{7} 02 00 00 01 ]
Received new device config
Processing StatusLed config
Processing AutomaticTimeSync config
Sending device config result OK (1)
SRPC TX call=SET_DEVICE_CONFIG_RESULT(695) size=10 raw=[01 00{9} ]
SRPC RX call=SET_CHANNEL_CONFIG(682) size=8 payload={ChannelNumber=0, Func=520, ConfigType=0(default), ConfigSize=0, Config=<redacted>}
Channel[0] Received SetChannelConfig: fnc 520, config type 0, config size 0
Channel[0] handleChannelConfig, func 520, configtype 0, configsize 0
Channel[0] ConfigType 0 SetChannelConfigNeeded
Channel[0] Sending SetChannelConfigResult OK (1)
SRPC TX call=SET_CHANNEL_CONFIG_RESULT(692) size=3 raw=[01 00 00 ]
SRPC RX call=CHANNEL_CONFIG_FINISHED(683) size=1 raw=[00 ]
Channel[0] Received ChannelConfigFinished
Channel[0] some config is missing on server... (rcv: 0x1 != used: 0x2)
ConfigTypesBitmap: Set all to 0x2
SRPC TX call=SET_CHANNEL_CONFIG(681) size=116 payload={ChannelNumber=0, Func=520, ConfigType=0(default), ConfigSize=108, Config=<redacted>}
Channel[0] SetChannelConfig send, func 520, type 0
SRPC RX call=SET_ACTIVITY_TIMEOUT_RESULT(220) size=3 raw=[1E 0A F0 ]
Activity timeout set to 30 s
SRPC RX call=GET_USER_LOCALTIME_RESULT(490) size=26 raw=[EA 07 08 04 03 13 1F 2E 0E 00 00 00 45 75 72 6F 70 65 2F 57 61 72 73 61 77 00 ]
Clock: current time: 1970-01-01 00:00:01
Clock: time diff (system-new): -1785871905 s
Clock: new time: 2026-08-04 19:31:46
SRPC RX call=SET_CHANNEL_CONFIG_RESULT(691) size=3 raw=[01 00 00 ]
Channel[0] Set channel config succeeded (1) for config type 0
SRPC RX call=SET_CHANNEL_CONFIG(682) size=116 payload={ChannelNumber=0, Func=520, ConfigType=0(default), ConfigSize=108, Config=<redacted>}
Channel[0] Received SetChannelConfig: fnc 520, config type 0, config size 108
Channel[0] handleChannelConfig, func 520, configtype 0, configsize 108
GPM[0]: RefreshIntervalMs 5000 ms
Channel[0] ConfigType 0 applied
Channel[0] Sending SetChannelConfigResult OK (1)
SRPC TX call=SET_CHANNEL_CONFIG_RESULT(692) size=3 raw=[01 00 00 ]
Channel(0) value changed to 13.00
SRPC TX call=VALUE_CHANGED_C(103) size=14 payload={ChannelNumber=0, Offline=0, ValidityTimeSec=0, value[8]=00 00 00 00 00 00 2A 40}
SPIFFSConfig: writing to file "/supla-dev.cfg"
SPIFFSConfig: writing to file "/supla-dev.cfg.bak"
Channel(0) value changed to 18.00
SRPC TX call=VALUE_CHANGED_C(103) size=14 payload={ChannelNumber=0, Offline=0, ValidityTimeSec=0, value[8]=00 00 00 00 00 00 32 40}
Channel(0) value changed to 19.00
SRPC TX call=VALUE_CHANGED_C(103) size=14 payload={ChannelNumber=0, Offline=0, ValidityTimeSec=0, value[8]=00 00 00 00 00 00 33 40}
SRPC RX call=GET_CHANNEL_STATE(500) size=8 raw=[00{8} ]
SRPC TX call=CHANNEL_STATE_RESULT(510) size=50 raw=[00{8} B3 01 00{6} C0 A8 01 77 40 4C CA 5E A7 48 00 00 AC 20 00 00 10 00 00 00 0F 00{13} ]
Channel(0) value changed to 17.00
SRPC TX call=VALUE_CHANGED_C(103) size=14 payload={ChannelNumber=0, Offline=0, ValidityTimeSec=0, value[8]=00 00 00 00 00 00 31 40}
SRPC RX call=GET_CHANNEL_STATE(500) size=8 raw=[00{8} ]
SRPC TX call=CHANNEL_STATE_RESULT(510) size=50 raw=[00{8} B3 01 00{6} C0 A8 01 77 40 4C CA 5E A7 48 00 00 AB 1E 00 00 1A 00 00 00 19 00{13} ]


User avatar
klew
Posts: 13905
Joined: Thu Jun 27, 2019 12:16 pm
Location: Wrocław
Has thanked: 134 times
Been thanked: 137 times

Post

@[email protected] nie widzę tutaj niczego co by mogło te problemy powodować.
Sprawdzałem u siebie działanie KPOP na sd4linux i wszystkie defaulty się poprawnie ustawiają.
Najlepsze suple dla Twojego domu :mrgreen:
User avatar
klew
Posts: 13905
Joined: Thu Jun 27, 2019 12:16 pm
Location: Wrocław
Has thanked: 134 times
Been thanked: 137 times

Post

Jakbyś nie mógł tutaj dojść do rozwiązania, to daj znać. Najlepiej podeślij cały program. Wgram go u siebie i sprawdzę.
To, że u mnie na razie to nie wystąpiło, nie znaczy, że czegoś nie przegapiłem.
Najlepsze suple dla Twojego domu :mrgreen:
[email protected]
Posts: 1584
Joined: Mon Feb 06, 2023 8:56 am
Has thanked: 18 times
Been thanked: 26 times

Post

dzięki za sprawdzenie!

Właśnie ja w logach też nic nie widziałem, ale pewnie coś w GG zmienia kolejność wywołań, zobaczę najpierw też na czymś prostszym i potem z GG i dam znać

Return to “supla-dev”