by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Aug 11 22:41
    demoniox12 edited #2318
  • Aug 11 22:40
    demoniox12 labeled #2318
  • Aug 11 22:40
    demoniox12 opened #2318
  • Aug 11 22:34
    mcspr commented #2295
  • Aug 11 22:15
    m-kozlowski commented on f849dc4
  • Aug 11 22:08
    mcspr commented on f849dc4
  • Aug 11 21:48
    m-kozlowski commented on f849dc4
  • Aug 11 21:41
    m-kozlowski opened #2317
  • Aug 11 14:13
    mcspr synchronize #2302
  • Aug 11 12:36
    mcspr closed #2307
  • Aug 11 12:36
    mcspr commented #2307
  • Aug 11 12:32

    mcspr on dev

    domoticz: fix idx truncation wh… (compare)

  • Aug 11 12:32
    mcspr closed #2316
  • Aug 11 12:28
    mcspr commented #663
  • Aug 11 11:30
    KBrownConsulting commented #663
  • Aug 10 23:35
    m-kozlowski opened #2316
  • Aug 10 17:15
    mcspr synchronize #2302
  • Aug 10 17:13

    mcspr on dev

    rpn: update to rpnlib 0.24.1 (#… (compare)

  • Aug 10 17:13
    mcspr closed #2314
  • Aug 10 17:12

    mcspr on dev

    debug: use rfc5424 format when … (compare)

karmacoma92
@karmacoma92
hi, no luck with sdk 2.2.1
[094930] [MAIN] CPU chip ID: 0x8E1600
[094933] [MAIN] CPU frequency: 80 MHz
[094936] [MAIN] SDK version: 2.2.1(cfd48f3)
[094940] [MAIN] Core version: 2.6.3
[094943] [MAIN] Core revision: 3d128e5c
[094947] [MAIN] Build time: 1582319254
karmacoma92
@karmacoma92

I just noticed it keeps on rebooting
ets Jan 8 2013,rst cause:4, boot mode:(3,6)

wdt reset
load 0x4010f000, len 1392, room 16
tail 0
chksum 0xd0
csum 0xd0
v3d128e5c
~ld

ets Jan 8 2013,rst cause:4, boot mode:(3,6)

wdt reset
load 0x4010f000, len 1392, room 16
tail 0
chksum 0xd0
csum 0xd0
v3d128e5c
~ld
[000184]

karmacoma92
@karmacoma92

After erasing the flash and flashing the latest build back it does still happen

[WEBSERVER] Request: GET /auth
[051035] [WEBSOCKET] #1 connected, ip: 192.168.4.2, url: /ws
[051178] [WEBSOCKET] #1 error(1002): Invalid UTF-8 in text frame
[051181] [WEBSOCKET] #1 disconnected
[054080] [SENSOR] Error reading data from DHT11 @ GPIO2 (error: 3)
[060005] [MAIN] System OK

I could only change the password, no wifi, nothing

thanks
Oscar
Max Prokhorov
@mcspr
@karmacoma92 i'll try to check sensor config some time later, but I don't remember having any issues a week ago with it loading webui. keeping on with the debug - can you send the resulting .elf? only one device has this issue or all of 2.6.3 Core builds? any way you can capture http session with wireshark / tcpdump so we can see exactly the way frames are sent?
karmacoma92
@karmacoma92

can you send the resulting .elf?
sure, where shall I sent it to?

only one device has this issue or all of 2.6.3 Core builds?
as far as I know relays doesn't have any issue but I haven't tested any more

any way you can capture http session with wireshark / tcpdump so we can see exactly the way frames are sent?
good idea, please let me know where shall I upload it

thanks once more
Oscar

(via attach file)
Muhammad Rabieh
@Muhammad-Rabieh

I'm developing an Android app that supposed to send PUT request to espurna and when I try the same request using curl, I get success response, but from the Android app I get 404 error with PUT request, here is the request for both from mobile app and curl, I listened to both requests on my PC using netcat

user@Laptop:~$ nc -l 192.168.1.104 55555
PUT /api/relay/0 HTTP/1.1
Host: 192.168.1.104:55555
User-Agent: curl/7.58.0
Accept: application/json
Content-Length: 31
Content-Type: application/x-www-form-urlencoded

apikey=2E5DE48567FB10F2&value=1


user@Laptop:~$ nc -l 192.168.1.104 55555
PUT /api/relay/0 HTTP/1.1
Accept: application/json
Content-Type: application/json; charset=utf-8
User-Agent: Dalvik/2.1.0 (Linux; U; Android 9; HRY-LX1MEB Build/HONORHRY-LX1MEB)
Host: 192.168.1.104:55555
Connection: Keep-Alive
Accept-Encoding: gzip
Content-Length: 31

apikey=2E5DE48567FB10F2&value=1

here is my android java request

public void jsonRequestVolley(int method, String url, String requestBody) {         
        RequestQueue queue = Volley.newRequestQueue(context); 

        JsonObjectRequest jsonRequest = new JsonObjectRequest(   
                method,                           
                url,                                            
                requestBody,
                successResponse(),  
                errorResponse()   
        )  
        {

            /**
             * Passing some request headers
             * */
            @Override
            public Map<String, String> getHeaders() {
                HashMap<String, String> headers = new HashMap<String, String>();
                headers.put("Accept", "application/json");
                return headers;
            }

        };

        queue.add(jsonRequest);
    }

the working curl command is

curl -X PUT -H "Accept: application/json" http://192.168.1.105:55555/api/relay/0 --data "apikey=2E5DE48567FB10F2&value=1"

```

Max Prokhorov
@mcspr
Content-Type: application/json? You are sending form data request, not json
see curl: Content-Type: application/x-www-form-urlencoded
Muhammad Rabieh
@Muhammad-Rabieh
when I tried to put headers.put("Content-Type", "application/x-www-form-urlencoded");
it did not work also
I tried also another server "Basket" with my app and it respond normally why espruna is behave different please I need help for that.
Max Prokhorov
@mcspr
no idea. try not using json object request? adding Accept for json response is enough
Muhammad Rabieh
@Muhammad-Rabieh
thank you for your response.
Muhammad Rabieh
@Muhammad-Rabieh
@mcspr thank you very much I fixed the issue by your guidance.

I fixed the header because of local server requirements so, it worked now it look like
```nc -l 192.168.1.104 55555
PUT /api/relay/0 HTTP/1.1
Accept: application/json
Content-Type: application/x-www-form-urlencoded
User-Agent: Dalvik/2.1.0 (Linux; U; Android 9; HRY-LX1MEB Build/HONORHRY-LX1MEB)
Host: 192.168.1.104:55555
Connection: Keep-Alive
Accept-Encoding: gzip
Content-Length: 31

I added the following to Android code

@Override
public Map<String, String> getHeaders() {
HashMap<String, String> headers = new HashMap<String, String>();

            headers.put("Accept", "application/json");
            return headers;
        }

@Override
public String getBodyContentType() {
return "application/x-www-form-urlencoded";
}
```
all in request code.

Max Prokhorov
@mcspr
@sfilinto "Unicode decode error has occurred, please remove invalid (non-ASCII or non-UTF8) characters from /espurna/code/espurna/espurna.ino.cpp file" see xoseperez/espurna#2163, python 2 is the issue
John O'Hare
@JohnOH
Elektor have published a LoRa node based on STM32 and RFM95W:
elfun
@copilador

Hi, I have done the integration of the MUVIT_IO MIOBULB008, it seems to work, someone can confirm if it is correct ....

// ------------------------------------------------ -----------------------------
// MUVIT_IO_MIOBULB008
// ------------------------------------------------ -----------------------------

elif defined (MUVIT_IO_MIOBULB008)

// Info
#define MANUFACTURER "MUVIT_IO"
#define DEVICE "MIOBULB008"
#define RELAY_PROVIDER RELAY_PROVIDER_LIGHT
#define LIGHT_PROVIDER LIGHT_PROVIDER_DIMMER
#define DUMMY_RELAY_COUNT 1

// Light
#define LIGHT_CHANNELS 5
#define LIGHT_CH1_PIN 4 // RED
#define LIGHT_CH2_PIN 12 // GREEN
#define LIGHT_CH3_PIN 14 // BLUE
#define LIGHT_CH4_PIN 13 // WARM WHITE
#define LIGHT_CH5_PIN 5 // COLD WHITE
#define LIGHT_CH1_INVERSE 0
#define LIGHT_CH2_INVERSE 0
#define LIGHT_CH3_INVERSE 0
#define LIGHT_CH4_INVERSE 0
#define LIGHT_CH5_INVERSE 0
Hello again.
has espurna support for SONOFF D1 Smart Wifi Dimmer?
Nils Strelow
@nstrelow

Hello folks,
I have a following problem, would be super happy for some pointers:
Sonoff S20->flashed espurna -> SoftAP is not firing up, no leds are blinking

  • tried both itead-sonoff-s20 and espurna-core
  • only garbage on Serial Monitor (tried all baud rates)
  • Uploading an arduino sketch works 100% fine: Can print to serial and turn on LED (GPIO13)
  • also plugged it into wall socket

Any ideas? Something seems broken

Pascal Tempier
@ptempier
Hello
i made a mistake while using tuya convert and flashed espurna on one device, is it dangerous to try to upgrade or restore to tasmota ?
should i try flashing the original firmware before , would that work ota?
Max Prokhorov
@mcspr
Pascal Tempier
@ptempier
@mcspr i am not sure, i can use the UI ? or do i need to setup telnet ota?
ptempier @ptempier has no idea how to setup telnet ota
Max Prokhorov
@mcspr
web works too. telnet snippet in the issue was just an example
telnet -> terminal
Pascal Tempier
@ptempier
ok , that worked
soapyapi
@soapyapi
Hello everyone. Today something strange happened: my sonoff pow r2 + espurna just stopped working. No more wifi signal, not eve a boot up. I reflashed the device and reconfigured everything. Seems to work now. Only question is: for how long ? Anyone run into a similar issue ? Could it be that the device just self-corrupts ?
Nils Strelow
@nstrelow
when is it ok to bump/repost my question? :P
Max Prokhorov
@mcspr
@soapyapi depends on the version. also there were some issues regarding r2 rebooting constantly, did it have ok uptime? we do write crash log by default, but idk how that would fare when doing it a lot.
soapyapi
@soapyapi
@mcspr > alwazs using latest stable version. no idea about the uptime, will check.
Nils Strelow
@nstrelow

Following problem:
Flashed ESP Core 2.6.3 on my Sonoff S20
Now I cannot flash espurna (which uses ESP Core 2.3.0 I believe)

Any way to reset everything so I can flash stuff with ESP Core 2.3.0 again?

Nils Strelow
@nstrelow
(or SDK 1.5.3)
SilentFez
@SilentFez
Hi! I've got a couple of blitzwolf switches flashed with espurna. If/when I lose wifi connection or my router is having trouble the switch relay turns off. Is that the intended outcome when they no longer can connect to wifi? In the switches settings I have boot mode to always on, pulse mode is don't pulse. Is there a setting that can prevent it from switching on wifi loss?
Max Prokhorov
@mcspr
@SilentFez xoseperez/espurna#2104 & xoseperez/espurna#1802 if device crashes constantly, the system check wont start relay module
fragande
@fragande
Hi there! I have a problem with a couple of Sonoff Basic's (I think R2) running espurna 1.14.1. They both randomly switch off and become unavailable while making a high pitch buzzing noise. I'm thinking this is a hardware problem, but it's a bit weird that they both behave this way. Has anyone else experienced this or know what could be the cause?
SilentFez
@SilentFez
@mcspr Thanks, will have a look
60pfennig
@60pfennig
hey i flashed my teckin sb50 bulb with https://github.com/ct-Open-Source/tuya-convert and installed the included ESPurna. After that I recognized, that Tasmota is fittig better my puropses, so I tried to upload the tasmota.bin in the upgrad dialog. First nothing happend, so I tried again. Short time later I got an error saying it could not upload the file. I switched from the AP Wifi to my homenetwork to search for a solution. After I watned to come back to the bulb the AP was gone. I tried to reset the bulb with the on-off-on-off-on scheme but nothing changed. Is there a solution for this?
thanks :)
Max Prokhorov
@mcspr
@60pfennig included espurna version should probably be updated :/ 1.14.1 will print error string, but you would need to use our releases page
it may be running tasmota now though, if you rebooted. updater may have successfully uploaded fw the first time and set up things to do update sequence and overwrite the firmware.
60pfennig
@60pfennig
@mcspr but if it would run tasmota, it would send an AP which it unfortunately doesn't.. :/
I have nothing to connect right now
Max Prokhorov
@mcspr
@60pfennig depends on the version though? i am not sure which one is used in tuya repo, but we had some issues when people tried to use -minimal tasmota binaries and they failed to boot
60pfennig
@60pfennig
@mcspr ok but ist there anything in can do?