Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add XY6020 support #20

Open
syssi opened this issue Nov 5, 2023 · 5 comments
Open

Add XY6020 support #20

syssi opened this issue Nov 5, 2023 · 5 comments

Comments

@syssi
Copy link
Owner

syssi commented Nov 5, 2023

https://github.com/kbs3056/XY6015L_pyGUI
#19 (comment)

Baud rate: 115200

[18:30:22][I][dps:063]: Status frame received
[18:30:22][D][text_sensor:064]: 'dps device model': Sending state 'DPS21'
[18:30:22][D][sensor:094]: 'dps voltage setting': Sending state 25.00000 V with 2 decimals of accuracy
[18:30:22][D][number:012]: 'dps voltage setting': Sending state 25.000000
[18:30:22][D][sensor:094]: 'dps current setting': Sending state 0.20900 A with 3 decimals of accuracy
[18:30:22][D][number:012]: 'dps current setting': Sending state 0.209000
[18:30:22][D][sensor:094]: 'dps output voltage': Sending state 25.00000 V with 2 decimals of accuracy
[18:30:22][D][sensor:094]: 'dps output current': Sending state 0.00100 A with 3 decimals of accuracy
[18:30:22][D][sensor:094]: 'dps output power': Sending state 0.02000 W with 2 decimals of accuracy
[18:30:22][D][sensor:094]: 'dps input voltage': Sending state 48.26000 V with 2 decimals of accuracy
[18:30:22][D][text_sensor:064]: 'dps protection status': Sending state 'Normal'
[18:30:22][D][sensor:094]: 'dps backlight brightness': Sending state 20.00000 % with 0 decimals of accuracy
[18:30:22][D][sensor:094]: 'dps firmware version': Sending state 1.50000 with 1 decimals of accuracy
[18:30:22][W][component:214]: Component modbus took a long time for an operation (0.14 s).
[18:30:22][W][component:215]: Components should block for at most 20-30ms.
[18:30:22][D][uart_debug:158]: <<< "\x01\x03\x1A\t\xC4\x00\xD1\t\xC4\x00\x01\x00\x02\x12\xDA\x00\f\x00\x00\x00\xFA\x00\x00\x00\x01\x00\x15\x00\x0F\x91}"

Not working:

  • Output switch
  • Firmware version

Different contents of the status frames:

XY6020: https://github.com/kbs3056/XY6015L_pyGUI/blob/master/source_files/dps_modbus.py#L135-L147
DPS5005: https://github.com/lambcutlet/DPS5005_pyGUI/blob/master/source_files/dps_modbus.py#L135C1-L145

Different registers:

XY6020: https://github.com/kbs3056/XY6015L_pyGUI/blob/master/source_files/dps_modbus.py#L67C1-L104
DPS5005: https://github.com/lambcutlet/DPS5005_pyGUI/blob/master/source_files/dps_modbus.py#L67-L133

@creepystefan

@syssi
Copy link
Owner Author

syssi commented Nov 6, 2023

@creepystefan
Copy link

https://github.com/creepystefan/ESPhome-Sinilink-WF-POW

hey
also mein xy6020 Batterie Lader funktioniert sehr gut.
danke nochmals für das anschuppsen des Projektes.
habe dir noch einen Link geschickt für eine nette spielerei, falls es dich interresiert.

Ist das Original Wifi Modul von Sinilink für das XY6020
Grüße

@syssi
Copy link
Owner Author

syssi commented Jun 2, 2024

Cool!

@Tiese
Copy link

Tiese commented Jun 11, 2024

Hallo @creepystefan,

kann das WiFi-Modul über Web-API oder direkt über URL abgefragt werden?
Oder muss man die Sinilink-App benutzen?

Vielen Dank für deine Hilfe!

Schöne Grüße
Tiese

@creepystefan
Copy link

Hey @Tiese
Das sinilink wifi Modul kann wie ein normaler ESP benutzt werden.
Am besten schaust du auf meiner Seite. Dort habe ich die GPIOs
Und programmieranschlüsse angezeigt.
In meinem Beispiel wird das Modul mit ESPHome bespielt.
Und kann alles gemacht werden.
Allerdings muss ich noch den Code für das sinilink mit dem XY6020 anpassen. Momentan ist es für einen ESP32 angepasst.
Bitte schreibe mir doch direkt auf meiner GitHub Seite.
API wird über ESPhome benutzt
Auch eine Web Oberfläche.
Das Sinilink Portal wird nicht gebraucht.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants