ioBroker.eusec icon indicating copy to clipboard operation
ioBroker.eusec copied to clipboard

CMD_SDINFO_EX failed with error: undefined (-148)

Open sansonifabio opened this issue 1 year ago • 53 comments

Adapter version

1.1.2 und 1.2.1

JS-Controller version

5.0.12

Node version

18.17.1 und 18.18.0

Operating System type

Linux

Operating system version

Bookworm Debian

Describe the bug

Hello Bropat, This night Eufy made updates to the home bases and yesterday also to the app 4.7.3_1319. When I go to the event list on my cell phone, the error messages appear in the ioBroker. Otherwise the adapter works correctly.

Greetings Fabio


Hallo Bropat, diese Nacht hat Eufy Updates gemacht an den Homebases und gestern auch an der App 4.7.3_1319. Wenn ich an meinen Handy in die Ereignissliste gehe kommen die Fehlermeldumngen im ioBroker. Sonst arbeitet der Adapter korrekt.

Grüße Fabio

To reproduce

  1. Go to '...'
  2. Click on '...'
  3. Scroll down to '....'
  4. See error

Screenshots & Logfiles

eusec.0 2023-09-19 06:30:00.534 error Station: T8030P232242039F command CMD_SDINFO_EX failed with error: undefined (-148)
eusec.0 2023-09-19 06:30:00.530 error Station: T8030P23224511EB command CMD_SDINFO_EX failed with error: undefined (-148)
eusec.0 2023-09-19 06:30:00.507 error Station: T8030P232245105A command CMD_SDINFO_EX failed with error: undefined (-148)
eusec.0 2023-09-19 06:30:00.479 error Station: T8030P2322481D9C command CMD_SDINFO_EX failed with error: undefined (-148)
eusec.0 2023-09-19 06:29:03.711 error Station: T8030P23224511EB command CMD_SDINFO_EX failed with error: undefined (-148)
eusec.0 2023-09-19 06:29:03.687 error Station: T8030P232242039F command CMD_SDINFO_EX failed with error: undefined (-148)
eusec.0 2023-09-19 06:29:03.661 error Station: T8030P232245105A command CMD_SDINFO_EX failed with error: undefined (-148)
eusec.0 2023-09-19 06:29:03.631 error Station: T8030P2322481D9C command CMD_SDINFO_EX failed with error: undefined (-148)

Additional context

No response

sansonifabio avatar Sep 19 '23 04:09 sansonifabio

Ich habe die gleichen Fehlermeldungen, selbes System, aber JS-Controller 4.0.24. Die Fehlermeldungen begannen erst 17 Stunden nach dem Start des Adapters. Zusätzlich habe ich noch Warnmeldungen, diese begannen 75 Minuten nach dem Start des Adapters:

I have the same error messages, same system, but JS-Controller 4.0.24. However, the error messages began 17 hours after starting the adapter. In addition, I have warning messages that began 75 minutes after starting the adapter:

warn: eusec.0 (109721) Heartbeat check failed for station T8410xxxxxxxxxxxx. Connection seems lost. Try to reconnect... warn: eusec.0 (109721) Tried all hosts, no connection could be established to station T8410xxxxxxxxxxxxx.

RamsesIoBroker avatar Sep 20 '23 07:09 RamsesIoBroker

habe den gleichen fehler immer wen die Kamera eine Bewegung erkennt, habe nun den Adapter ausgeschalet

locito09 avatar Sep 25 '23 11:09 locito09

Habe den selben Fehler, bei mir genau alle 9min59sec.

beandi avatar Oct 02 '23 14:10 beandi

Ich habe folgenden Fehler, erfolgt alle 5 Minuten. Ich hoffe sehr, dass wir es lösen können.

eusec.0 2023-10-06 08:54:04.532 error Station: T8030P2323201932 command CMD_SDINFO_EX failed with error: undefined (-148)
eusec.0 2023-10-06 08:49:03.657 error Station: T8030P2323201932 command CMD_SDINFO_EX failed with error: undefined (-148)
eusec.0 2023-10-06 08:44:02.912 error Station: T8030P2323201932 command CMD_SDINFO_EX failed with error: undefined (-148)
eusec.0 2023-10-06 08:39:02.144 error Station: T8030P2323201932 command CMD_SDINFO_EX failed with error: undefined (-148)
eusec.0 2023-10-06 08:34:01.455 error Station: T8030P2323201932 command CMD_SDINFO_EX failed with error: undefined (-148)

diablolot avatar Oct 06 '23 06:10 diablolot

Same here Station: T8030P2xxxxxx9 command CMD_SDINFO_EX failed with error: undefined (-148)

freakyfreaky avatar Oct 09 '23 19:10 freakyfreaky

Same for me

andispammonyer avatar Oct 12 '23 17:10 andispammonyer

eusec.0 | 2023-10-17 22:22:30.142 | error | Station: T8030xxxxxxxxxxx command CMD_SDINFO_EX failed with error: undefined (-148)

every one minute.

kilozwo avatar Oct 17 '23 20:10 kilozwo

Same here

Station: T8030xxxxx command CMD_SDINFO_EX failed with error: undefined (-148)

GM-Jokemaster avatar Oct 29 '23 08:10 GM-Jokemaster

same here!

2023-10-31 00:03:13.595 - [32minfo[39m: eusec.0 (304976) Disconnected from station T8200N0020280047 2023-10-31 00:03:13.805 - [32minfo[39m: eusec.0 (304976) Disconnected from station T8420N60210603E9 2023-10-31 00:03:13.973 - [32minfo[39m: eusec.0 (304976) Disconnected from station T8030P2322510D57 2023-10-31 00:03:14.903 - [32minfo[39m: eusec.0 (304976) Disconnected from station T8420N60210600F0 2023-10-31 00:03:15.065 - [32minfo[39m: eusec.0 (304976) Disconnected from station T8420N60210605FB 2023-10-31 00:03:16.141 - [32minfo[39m: eusec.0 (304976) Disconnected from station T8420N6021060520 2023-10-31 00:03:16.511 - [32minfo[39m: eusec.0 (304976) Disconnected from station T8410P302125348B 2023-10-31 00:03:16.598 - [32minfo[39m: eusec.0 (304976) Disconnected from station T8420N6021040839 2023-10-31 00:03:16.773 - [32minfo[39m: eusec.0 (304976) Disconnected from station T8010N2321140408 2023-10-31 00:03:18.664 - [32minfo[39m: eusec.0 (304976) Connected to station T8200N0020280047 on host 192.168.188.25 and port 25957 2023-10-31 00:03:19.288 - [32minfo[39m: eusec.0 (304976) Connected to station T8030P2322510D57 on host 192.168.188.42 and port 10228 2023-10-31 00:03:19.976 - [32minfo[39m: eusec.0 (304976) Connected to station T8420N60210600F0 on host 192.168.188.82 and port 22782 2023-10-31 00:03:20.112 - [32minfo[39m: eusec.0 (304976) Connected to station T8420N60210605FB on host 192.168.188.117 and port 10498 2023-10-31 00:03:20.136 - [32minfo[39m: eusec.0 (304976) Connected to station T8410P302125348B on host 192.168.188.111 and port 28935 2023-10-31 00:03:20.344 - [32minfo[39m: eusec.0 (304976) State value to set for "eusec.0.T8200N0020280047.cameras.T8200N0020280047.picture" has to be stringified but received type "object" 2023-10-31 00:03:20.351 - [32minfo[39m: eusec.0 (304976) Disconnected from station T8410P302125348B 2023-10-31 00:03:20.502 - [32minfo[39m: eusec.0 (304976) State value to set for "eusec.0.T8030P2322510D57.cameras.T8142N6321054E81.picture" has to be stringified but received type "object" 2023-10-31 00:03:20.686 - [31merror[39m: eusec.0 (304976) Station: T8030P2322510D57 command CMD_SDINFO_EX failed with error: undefined (-148) 2023-10-31 00:03:20.733 - [32minfo[39m: eusec.0 (304976) Connected to station T8010N2321140408 on host 192.168.188.150 and port 18903 2023-10-31 00:03:20.782 - [31merror[39m: eusec.0 (304976) Station: T8030P2322510D57 command CMD_SDINFO_EX failed with error: undefined (-148) 2023-10-31 00:03:20.829 - [32minfo[39m: eusec.0 (304976) State value to set for "eusec.0.T8420N60210600F0.cameras.T8420N60210600F0.picture" has to be stringified but received type "object" 2023-10-31 00:03:20.999 - [32minfo[39m: eusec.0 (304976) Connected to station T8420N6021060520 on host 192.168.188.84 and port 29585 2023-10-31 00:03:21.239 - [32minfo[39m: eusec.0 (304976) Connected to station T8410P302125348B on host 192.168.188.111 and port 22232 2023-10-31 00:03:21.367 - [31merror[39m: eusec.0 (304976) Station: T8030P2322510D57 command CMD_SDINFO_EX failed with error: undefined (-148) 2023-10-31 00:03:21.371 - [32minfo[39m: eusec.0 (304976) Connected to station T8420N6021040839 on host 192.168.188.86 and port 24304 2023-10-31 00:03:21.712 - [32minfo[39m: eusec.0 (304976) State value to set for "eusec.0.T8420N6021060520.cameras.T8420N6021060520.picture" has to be stringified but received type "object" 2023-10-31 00:03:21.836 - [32minfo[39m: eusec.0 (304976) State value to set for "eusec.0.T8010N2321140408.cameras.T8142N6321122F09.picture" has to be stringified but received type "object" 2023-10-31 00:03:21.862 - [32minfo[39m: eusec.0 (304976) State value to set for "eusec.0.T8010N2321140408.cameras.T8142N63211236C0.picture" has to be stringified but received type "object" 2023-10-31 00:03:21.899 - [32minfo[39m: eusec.0 (304976) State value to set for "eusec.0.T8410P302125348B.cameras.T8410P302125348B.picture" has to be stringified but received type "object" 2023-10-31 00:03:22.019 - [31merror[39m: eusec.0 (304976) Station: T8030P2322510D57 command CMD_SDINFO_EX failed with error: undefined (-148) 2023-10-31 00:03:22.026 - [31merror[39m: eusec.0 (304976) Station: T8030P2322510D57 command CMD_SDINFO_EX failed with error: undefined (-148) 2023-10-31 00:03:22.228 - [31merror[39m: eusec.0 (304976) Station: T8030P2322510D57 command CMD_SDINFO_EX failed with error: undefined (-148) 2023-10-31 00:03:27.597 - [32minfo[39m: eusec.0 (304976) State value to set for "eusec.0.T8420N6021040839.cameras.T8420N6021040839.picture" has to be stringified but received type "object"

hohmannc85 avatar Nov 01 '23 05:11 hohmannc85

Same error here

Stefan200583 avatar Nov 04 '23 14:11 Stefan200583

Hallo @bropat auch unter der neuen Version v1.2.1 immer noch da selbe Problem. Sobald man zum Beispiel am Handy mit der Eufy App einen Livestream, öffnet kommen die Fehler:

Hello @bropat still having the same problem under the new version v1.2.1.** For example, as soon as you open a live stream on your cell phone with the Eufy app, the errors appear

eusec.0 2023-11-04 22:09:04.154 error Station: T8030P232242039F command CMD_SDINFO_EX failed with error: undefined (-148)

eusec.0 2023-11-04 22:09:04.151 error Station: T8030P232245105A command CMD_SDINFO_EX failed with error: undefined (-148)

eusec.0 2023-11-04 22:09:04.149 error Station: T8030P23224511EB command CMD_SDINFO_EX failed with error: undefined (-148)

eusec.0 2023-11-04 22:09:04.146 error Station: T8030P2322481D9C command CMD_SDINFO_EX failed with error: undefined (-148)

eusec.0 2023-11-04 22:09:03.934 error Station: T8030P232245105A command CMD_SDINFO_EX failed with error: undefined (-148)

eusec.0 2023-11-04 22:09:03.933 error Station: T8030P2322481D9C command CMD_SDINFO_EX failed with error: undefined (-148)

eusec.0 2023-11-04 22:09:03.932 error Station: T8030P232242039F command CMD_SDINFO_EX failed with error: undefined (-148)

eusec.0 2023-11-04 22:09:03.931 error Station: T8030P23224511EB command CMD_SDINFO_EX failed with error: undefined (-148)

eusec.0 2023-11-04 22:09:03.764 error Station: T8030P2322481D9C command CMD_SDINFO_EX failed with error: undefined (-148)

eusec.0 2023-11-04 22:09:03.762 error Station: T8030P23224511EB command CMD_SDINFO_EX failed with error: undefined (-148)

eusec.0 2023-11-04 22:09:03.760 error Station: T8030P232242039F command CMD_SDINFO_EX failed with error: undefined (-148)

eusec.0 2023-11-04 22:09:03.757 error Station: T8030P232245105A command CMD_SDINFO_EX failed with error: undefined (-148) ``

sansonifabio avatar Nov 04 '23 21:11 sansonifabio

Hallo @bropat ich denke das Probelm liegt in der Abfrage der SD Karten Info und hat damit zu tun falls man eine SSD in eine homebase s380 verbaut hat. Bei mir bleiben die drei Datenpunkte im Eusec Adapter unter Station immer leer. Bei einer Indoor Kamera die über eine SD Karte verfügt werden die Infos in die Datenpunkte geschrieben.

Herzliche Grüße Fabio

Hello @bropat I think the problem lies in the query for the SD card information and has to do with it if you have installed an SSD in a homebase s380. For me, the three data points in the Eusec adapter under station always remain empty. With an indoor camera that has an SD card, the information is written to the data points.

Best regards Fabio

sansonifabio avatar Nov 05 '23 09:11 sansonifabio

Hello @sansonifabio, unfortunately I don't have a homebase s380 and so I can't reproduce this problem. Furthermore, this part was not implemented by me. The storage space is queried via the polling interval. If you make any interactions via the Eufy app and there is a P2P connection from the adapter to this device, it seems as if the adapter also receives some responses from the P2P commands of the Eufy app.

bropat avatar Nov 05 '23 10:11 bropat

Hallo @bropat vielen Dank für deine Antwort. Also es ist ja so das du die Datenpunkte im Eusec Adapter für SD anlegst. Bei einer normale Homebase oder Kamera mit SD Karte werden die auch befüllt. Nur nicht wenn du eine S380 mit SSD hast dann bleiben die Datenpunkte leer. Das denke ich, sagt auch der Fehler aus das er keine Daten über die Anforderung erhält aber ich habe da keine Ahnung von, hier mal die Datenpunkte. Das erste Foto ist von einer InDoorcam mit SD Karte. Das zweite Foto von einer S380 mit SSD. Die Fehler Meldungen betreffen bei mir auch nur meine S380 Stations. Könnte man eine Version machen wo das abholen der SD Datenpunkte unterbunden wird?

Zwischenablage02 Zwischenablage01

Und ja der Fehler tritt auch auf wenn man die Eufy App öffnet und sich einen Livestream anaschaut oder Aufnahmen löscht.

Kann ich irgendwie helfen? Herzliche grüße Fabio

Hello @bropat, thank you very much for your answer. So it's like that you create the data points in the Eusec adapter for SD. With a normal home base or camera with an SD card, these are also filled. Only not if you have an S380 with SSD then the data points remain empty. I think that's what the error says: it doesn't receive any data about the request, but I have no idea about the data points here. The error messages only affect my S380 stations. Could you make a version where the retrieval of SD data points is prevented? The first photo from an inDoorcam with SD cards. The second photo of an S380 with SSD

Clipboard02 Clipboard01

And yes, the error also occurs when you open the Eufy app and watch a live stream or delete recordings.

Can I help you? Best regards Fabio

sansonifabio avatar Nov 05 '23 12:11 sansonifabio

I can try to look at the problem, but for that I need access to a Homebase S380. If you are willing to share it with me, I can try to isolate the problem.

bropat avatar Nov 05 '23 16:11 bropat

Hallo @bropat ich brauche deine Emailadresse um dich einzuladen.

Hello @bropat I need your email address to invite you.

sansonifabio avatar Nov 05 '23 17:11 sansonifabio

All what I can say is that since the update to version 3.x of HomeBase firmware (2 and 3), the retrieving of storage info is not working anymore. I have seen in the app, that there are new objects (StorageInfo, EmmcInfo and HddInfo), which should contain the wanted values but I was not able to find the command they used to populate these objects.

PhilippEngler avatar Nov 05 '23 18:11 PhilippEngler

I can try to look at the problem, but for that I need access to a Homebase S380. If you are willing to share it with me, I can try to isolate the problem.

@bropat We can do that, but I need an email address from you. Would it be possible to release a version where you can deactivate the log? Because these error messages flood the log file. Greetings Fabio

sansonifabio avatar Nov 07 '23 05:11 sansonifabio

@sansonifabio

I'll get back to you as soon as I have time.

bropat avatar Nov 07 '23 16:11 bropat

Okay 👍

sansonifabio avatar Nov 07 '23 16:11 sansonifabio

I have removed the storage info gathering for the HomeBases and created a pull request. For the T8410 the storage info is gathered correctly.

PhilippEngler avatar Nov 07 '23 17:11 PhilippEngler

Hello @PhilippEngler, I'm not a programmer, just a user, could you briefly explain what you did? Greetings Fabio

Hallo @PhilippEngler ich bin kein Programmierer sondern nur User, könntest du kurz erklären was du gemacht hast? Grüße Fabio

sansonifabio avatar Nov 07 '23 20:11 sansonifabio

Hello @sansonifabio, I have changed the capability of the HomeBases so that the storage information should not be gathered anymore for these devices. At the moment, the behaviour has not changed, it is nessessary to release a new version of the client and a new version of the ioBroker addon.

Best, Philipp

PhilippEngler avatar Nov 08 '23 07:11 PhilippEngler

@PhilippEngler Thanks, that sounds very good. This means that when @bropat has time, a new version will be released and the errors will be gone. Now my logs are completely overflowing because I have 4 home bases and I have to pause the adapter during the day.

Greetings Fabio

@PhilippEngler Danke, das hört sich ja sehr gut an. Das bedeutet, das wenn @bropat Zeit hat dann eine neue Version veröffentlicht und dadurch die Fehler weg sind. Jetzt ist das so bei mir die Logs völlig überlaufen da ich 4 Homebase habe tagsüber muss ich den Adapter pausieren.

Grüße Fabio

sansonifabio avatar Nov 08 '23 08:11 sansonifabio

@sansonifabio

I'll get back to you as soon as I have time.

@bropat hier noch ein paar Logs: `eusec.0

2023-11-08 16:35:50.585 debug [P2PClientProtocol.handleData] Handle DATA DATA - Result data received - Detecting correct sequence number [{"stationSN":"T8410P422302BC3B","commandIdName":"CMD_SDINFO_EX","commandId":1144,"seqNumber":6,"newSeqNumber":7,"p2pSeqMappingCount":0}]

eusec.0

2023-11-08 16:35:50.585 debug [P2PClientProtocol.handleData] Handle DATA DATA - Received data [{"stationSN":"T8410P422302BC3B","commandIdName":"CMD_SDINFO_EX","commandId":1144,"resultCodeName":"ERROR_PPCS_SUCCESSFUL","resultCode":0,"resultData":"11750000c3740000","data":"0000000011750000c3740000","seqNumber":8,"p2pDataSeqNumber":7,"offsetDataSeqNumber":0}]

eusec.0

2023-11-08 16:35:50.576 debug [P2PClientProtocol.handleData] Handle DATA DATA - Result data received - Detecting correct sequence number [{"stationSN":"T8410P422302BC3B","commandIdName":"CMD_SDINFO_EX","commandId":1144,"seqNumber":5,"newSeqNumber":6,"p2pSeqMappingCount":1}]

eusec.0

2023-11-08 16:35:50.576 debug [P2PClientProtocol.handleData] Handle DATA DATA - Received data [{"stationSN":"T8410P422302BC3B","commandIdName":"CMD_SDINFO_EX","commandId":1144,"resultCodeName":"ERROR_PPCS_SUCCESSFUL","resultCode":0,"resultData":"11750000c3740000","data":"0000000011750000c3740000","seqNumber":8,"p2pDataSeqNumber":7,"offsetDataSeqNumber":0}]`

sansonifabio avatar Nov 08 '23 15:11 sansonifabio

@sansonifabio: You also have these problems also with the T8410? Do you see the free and used values and are they the same as in the App? If not, which firmwareversion is your T8410 on?

PhilippEngler avatar Nov 08 '23 15:11 PhilippEngler

@PhilippEngler only have problems with the S380 as no values ​​are displayed in the adapter. The data on the indoor camera T8410 is the same because the camera used an SD card but I installed SSD disks in my S380.

Ich habe die Probleme nur mit der Station S380 da werden auch keine Werte der SD im Adapter angezeigt. Bei der Indoorcam sind die die Daten im Adapter gleich weil die Kamera ja eine SD Karte benutzte ich aber in meinem S380 SSD Platten verbaut habe.

sansonifabio avatar Nov 08 '23 16:11 sansonifabio

@sansonifabio

You can share the station to this account: [email protected]

bropat avatar Nov 12 '23 10:11 bropat

Short update:

Eufy has changed the P2P command CMD_SDINFO_EX (which is not only valid for SD cards, but for the memory in general) from a certain firmware version. At first only how the result of the command was transmitted and now also how the command for the stations (at least the Homebase 2; Homebase 3 I have to check first) must be sent. For the first part, everything has already been implemented in this commit. For details see here. For the second part, I have already adapted the command for Homebase 2 and it works. For Homebase 3 I am waiting for the sharing of @sansonifabio.

Expected code change to support Homebase 2 and Homebase3:

    public getStorageInfoEx(): void {
        this.log.debug(`Station send get storage info command`, { stationSN: this.getSerial() });
        if (this.isStation() && isGreaterEqualMinVersion("3.3.0.0", this.getSoftwareVersion())) {
            this.p2pSession.sendCommandWithoutData(CommandType.CMD_SDINFO_EX, Station.CHANNEL);
        } else {
            this.p2pSession.sendCommandWithIntString({
                commandType: CommandType.CMD_SDINFO_EX,
                value: 0,
                valueSub: 0,
                channel: Station.CHANNEL,
                strValue: this.rawStation.member.admin_user_id
            });
        }
    }

bropat avatar Nov 12 '23 10:11 bropat

@sansonifabio

You can share the station to this account: [email protected]

@bropat Invitation is out

sansonifabio avatar Nov 12 '23 10:11 sansonifabio