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/04/22 15:26] – removed admin | tecnologia:luzparaeleko:inversor [2022/07/07 07:10] (current) – admin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | Manual Inversor: {{ : | ||
| + | Parámetros actuales en el inversor (2/7/2022): | ||
| + | |||
| + | |||
| + | |||
| + | {{: | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | Manual Monitorización con PC: {{ : | ||
| + | |||
| + | Manual protocolo de comunicación: | ||
| + | |||
| + | |||
| + | ====== Monitorizar con raspberry ====== | ||
| + | Conectamos el cable que viene con el inversor. Al inversor el exttremo RJ45 y por el otro lado es serial. Compramos un cable serial a USB y lo conectamos a este cable (por el serial) y a la raspberry | ||
| + | |||
| + | Ahora miramos los puertos USB de la raspberry | ||
| + | < | ||
| + | pi@raspberrypi: | ||
| + | Bus 001 Device 004: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port | ||
| + | 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 002: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub | ||
| + | Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub | ||
| + | </ | ||
| + | |||
| + | {{: | ||
| + | |||
| + | 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 " | ||
| + | |||
| + | Como root buscamos el puerto: | ||
| + | root@raspberrypi: | ||
| + | crw------- 1 root root 244, 0 Jun 22 15:41 / | ||
| + | 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.1650641205.txt.gz · Last modified: by admin
