tecnologia:luzparaeleko:inversor
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| tecnologia:luzparaeleko:inversor [2022/06/22 12:53] – admin | tecnologia:luzparaeleko:inversor [2022/07/07 07:10] (current) – admin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| Manual Inversor: {{ : | Manual Inversor: {{ : | ||
| - | Manual Monitorización: | + | Parámetros actuales en el inversor (2/ |
| + | |||
| + | |||
| + | |||
| + | {{: | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | Manual Monitorización | ||
| + | |||
| + | Manual protocolo de comunicación: | ||
| ====== Monitorizar con raspberry ====== | ====== Monitorizar con raspberry ====== | ||
| Line 10: | Line 23: | ||
| pi@raspberrypi: | pi@raspberrypi: | ||
| Bus 001 Device 004: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port | Bus 001 Device 004: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port | ||
| - | Bus 001 Device 005: ID 0424:7800 Standard Microsystems Corp. | + | Bus 001 Device 005: ID 0665:5161 Cypress Semiconductor USB to Serial |
| + | Bus 001 Device 006: ID 0424:7800 Standard Microsystems Corp. | ||
| Bus 001 Device 003: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub | Bus 001 Device 003: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub | ||
| Bus 001 Device 002: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub | Bus 001 Device 002: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub | ||
| Line 16: | Line 30: | ||
| </ | </ | ||
| - | Nos quedamos con la línea: | + | {{:tecnologia:luzparaeleko:inversor_01.png|}} |
| - | Bus 001 Device 004: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port | + | |
| - | python | + | Nos quedamos con la línea que pone USB to Serial: |
| + | Bus 001 Device 005: ID 0665:5161 Cypress Semiconductor USB to Serial | ||
| + | La que pone " | ||
| - | import os, sys | + | Como root buscamos el puerto: |
| - | fd = os.open(' | + | |
| - | os.write(fd," | + | |
| + | Es el puerto hidraw0 | ||
| + | Ahora ejecutamos python y lanzamos estos comandos: | ||
| + | Python 2.7.16 (default, Oct 10 2019, 22: | ||
| + | [GCC 8.3.0] on linux2 | ||
| + | Type " | ||
| + | >>> | ||
| + | |||
| + | import os,sys | ||
| + | fd = open('/ | ||
| + | fd.write(' | ||
| + | res = fd.read(110).encode(' | ||
| + | res = res.split(" | ||
| + | res = res[0][1: | ||
| + | print ' | ||
| + | Nos tiene que devolver algo como esto: | ||
| + | res= [' | ||
| + | |||
| + | El mapeo de los valores sería el siguiente: | ||
| + | |0| |000.0| | ||
| + | |1| |00.0| | ||
| + | |2|AC output voltage|230.0| | ||
| + | |3|AC output frequency|50.0| | ||
| + | |4|AC output apparent power|0184| | ||
| + | |5|AC output active power|0109| | ||
| + | |6|Output load percent|003| | ||
| + | |7|BUS voltage|370| | ||
| + | |8|Battery voltage|53.20| | ||
| + | |9|Battery charging current|000| | ||
| + | |10|Battery capacity|100| | ||
| + | |11|Inverter heat sink temperature|0043| | ||
| + | |||
| + | Pruebas del puerto: | ||
| + | < | ||
| + | root@raspberrypi: | ||
| + | |||
| + | Bus 001 Device 005: ID 0665:5161 Cypress Semiconductor USB to Serial | ||
| + | Device Descriptor: | ||
| + | bLength | ||
| + | bDescriptorType | ||
| + | bcdUSB | ||
| + | bDeviceClass | ||
| + | bDeviceSubClass | ||
| + | bDeviceProtocol | ||
| + | bMaxPacketSize0 | ||
| + | idVendor | ||
| + | idProduct | ||
| + | bcdDevice | ||
| + | iManufacturer | ||
| + | iProduct | ||
| + | iSerial | ||
| + | bNumConfigurations | ||
| + | Configuration Descriptor: | ||
| + | bLength | ||
| + | bDescriptorType | ||
| + | wTotalLength | ||
| + | bNumInterfaces | ||
| + | bConfigurationValue | ||
| + | iConfiguration | ||
| + | bmAttributes | ||
| + | (Bus Powered) | ||
| + | Remote Wakeup | ||
| + | MaxPower | ||
| + | Interface Descriptor: | ||
| + | bLength | ||
| + | bDescriptorType | ||
| + | bInterfaceNumber | ||
| + | bAlternateSetting | ||
| + | bNumEndpoints | ||
| + | bInterfaceClass | ||
| + | bInterfaceSubClass | ||
| + | bInterfaceProtocol | ||
| + | iInterface | ||
| + | HID Device Descriptor: | ||
| + | bLength | ||
| + | bDescriptorType | ||
| + | bcdHID | ||
| + | bCountryCode | ||
| + | bNumDescriptors | ||
| + | bDescriptorType | ||
| + | wDescriptorLength | ||
| + | | ||
| + | ** UNAVAILABLE ** | ||
| + | Endpoint Descriptor: | ||
| + | bLength | ||
| + | bDescriptorType | ||
| + | bEndpointAddress | ||
| + | bmAttributes | ||
| + | Transfer Type Interrupt | ||
| + | Synch Type None | ||
| + | Usage Type Data | ||
| + | wMaxPacketSize | ||
| + | bInterval | ||
| + | can't get device qualifier: Resource temporarily unavailable | ||
| + | can't get debug descriptor: Resource temporarily unavailable | ||
| + | Device Status: | ||
| + | Self Powered | ||
| + | </ | ||
tecnologia/luzparaeleko/inversor.1655902395.txt.gz · Last modified: by admin
