Mahlzeit.
Da ich bei Bluetooth nicht weitergekommen bin, habe ich es nun einfach mal über RS232 versucht.
Solaranzeige zeigt zwar noch nicht die Daten an, weil es wegen Regler 26 scheinbar auf hidraw besteht, aber mit dem kleinen Programm mpp-solar kann ich die Daten bereits wieder auslesen (wie vorher auch über hidraw).
Die Frage ist jetzt nur, wie bekomme ich die Solaranzeige dazu auch Daten anzuzeigen ?
Das Format sieht bei mpp-solar gleich aus wie vorher über USB Verbindung.
$USBRegler und $USBWechselrichter habe ich nicht angefasst. Das wurde automatisch so eingetragen.
Code: Alles auswählen
03.05. 15:41:23 |----------------- Start qpi_p30.php ------------------------
03.05. 15:41:23 -Device: /dev/ttyUSB0 wurde in der user.config angegeben.
03.05. 15:41:25 -
T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 1
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0002 Rev=05.10
S: Manufacturer=Linux 5.10.17-v7+ dwc_otg_hcd
S: Product=DWC OTG Controller
S: SerialNumber=3f980000.usb
C: #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
I: If#=0x0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=480 MxCh= 5
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=02 MxPS=64 #Cfgs= 1
P: Vendor=0424 ProdID=9514 Rev=02.00
C: #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=2mA
I: If#=0x0 Alt= 1 #EPs= 1 Cls=09(hub ) Sub=00 Prot=02 Driver=hub
T: Bus=01 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#= 3 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=ff(vend.) Sub=00 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=0424 ProdID=ec00 Rev=02.00
C: #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=2mA
I: If#=0x0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=ff Driver=smsc95xx
T: Bus=01 Lev=02 Prnt=02 Port=02 Cnt=02 Dev#= 4 Spd=12 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=067b ProdID=23c3 Rev=03.05
S: Manufacturer=Prolific Technology Inc.
S: Product=USB-Serial Controller
S: SerialNumber=DPBWb19C116
C: #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=100mA
I: If#=0x0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=pl2303
T: Bus=01 Lev=02 Prnt=02 Port=04 Cnt=03 Dev#= 5 Spd=480 MxCh= 0
D: Ver= 2.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=152d ProdID=0567 Rev=02.25
S: Manufacturer=GODO
S: Product=USB3.0 External HDD
S: SerialNumber=0000AB1234CD
C: #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=500mA
I: If#=0x0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
03.05. 15:47:11 -Daten:
array (
16 => 'SCSI 00.0: 10600 Disk',
'' => '[Created at block.245]',
'Unique ID' => 'VBUu.FSjAzAMZ2YB',
'Parent ID' => '3t9U.TAOITtdfnIE',
'SysFS ID' => '/class/block/sda',
'SysFS BusID' => '0:0:0:0',
'SysFS Device Link' => '/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/1-1.5:1.0/host0/target0:0:0/0:0:0:0',
'Hardware Class' => 'disk',
'Model' => '"HGST HTS 541075A9E680"',
'Vendor' => 'usb 0x152d "HGST HTS"',
'Device' => 'usb 0x0567 "541075A9E680"',
'Revision' => '"0225"',
'Serial ID' => '"0000AB1234CD"',
'Driver' => '"usb-storage", "sd"',
'Driver Modules' => '"usb_storage"',
'Device File' => '/dev/sda (/dev/sg0)',
'Device Files' => '/dev/sda, /dev/disk/by-id/usb-HGST_HTS_541075A9E680_0000AB1234CD-0:0, /dev/disk/by-path/platform-3f980000.usb-usb-0:1.5:1.0-scsi-0:0:0:0',
'Device Number' => 'block 8:0-8:15 (char 21:0)',
'Geometry (Logical)' => 'CHS 91201/255/63',
'Size' => '1465149168 sectors a 512 bytes',
'Capacity' => '698 GB (750156374016 bytes)',
'Speed' => '480 Mbps',
'Module Alias' => '"usb:v152Dp0567d0225dc00dsc00dp00ic08isc06ip50in00"',
'Driver Info #0' => '',
'Driver Status' => 'uas is active',
'Driver Activation Cmd' => '"modprobe uas"',
'Config Status' => 'cfg=new, avail=yes, need=no, active=unknown',
'Attached to' => '#1 (USB Controller)',
)
03.05. 15:47:11 -Daten:
array (
17 => 'None 00.0: 11300 Partition',
'' => '[Created at block.434]',
'Unique ID' => 'bdUI.SE1wIdpsiiC',
'Parent ID' => 'VBUu.FSjAzAMZ2YB',
'SysFS ID' => '/class/block/sda/sda1',
'Hardware Class' => 'partition',
'Model' => '"Partition"',
'Device File' => '/dev/sda1',
'Device Files' => '/dev/sda1, /dev/disk/by-label/boot, /dev/disk/by-id/usb-HGST_HTS_541075A9E680_0000AB1234CD-0:0-part1, /dev/disk/by-path/platform-3f980000.usb-usb-0:1.5:1.0-scsi-0:0:0:0-part1, /dev/disk/by-partuuid/8dcb84d1-01, /dev/disk/by-uuid/0C61-73F5',
'Config Status' => 'cfg=new, avail=yes, need=no, active=unknown',
'Attached to' => '#16 (Disk)',
)
03.05. 15:47:11 -Daten:
array (
18 => 'None 00.0: 11300 Partition',
'' => '[Created at block.434]',
'Unique ID' => '2pkM.SE1wIdpsiiC',
'Parent ID' => 'VBUu.FSjAzAMZ2YB',
'SysFS ID' => '/class/block/sda/sda2',
'Hardware Class' => 'partition',
'Model' => '"Partition"',
'Device File' => '/dev/sda2',
'Device Files' => '/dev/sda2, /dev/disk/by-id/usb-HGST_HTS_541075A9E680_0000AB1234CD-0:0-part2, /dev/disk/by-label/rootfs, /dev/disk/by-uuid/43f2d0bb-83be-464f-94d0-9a751f376c64, /dev/disk/by-partuuid/8dcb84d1-02, /dev/disk/by-path/platform-3f980000.usb-usb-0:1.5:1.0-scsi-0:0:0:0-part2',
'Config Status' => 'cfg=new, avail=yes, need=no, active=unknown',
'Attached to' => '#16 (Disk)',
)
03.05. 15:47:11 -Daten:
array (
24 => 'USB 00.0: 0700 Serial controller',
'' => '[Created at usb.122]',
'Unique ID' => 'dwDZ.0gJAxVD74n8',
'Parent ID' => 'ADDn.IKhPgutgmvF',
'SysFS ID' => '/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.0',
'SysFS BusID' => '1-1.3:1.0',
'Hardware Class' => 'unknown',
'Model' => '"Prolific USB-Serial Controller"',
'Hotplug' => 'USB',
'Vendor' => 'usb 0x067b "Prolific Technology, Inc."',
'Device' => 'usb 0x23c3 "USB-Serial Controller"',
'Revision' => '"3.05"',
'Serial ID' => '"DPBWb19C116"',
'Driver' => '"pl2303"',
'Driver Modules' => '"usbserial", "pl2303"',
'Device File' => '/dev/ttyUSB0',
'Device Files' => '/dev/ttyUSB0, /dev/serial/by-id/usb-Prolific_Technology_Inc._USB-Serial_Controller_DPBWb19C116-if00-port0, /dev/serial/by-path/platform-3f980000.usb-usb-0:1.3:1.0-port0',
'Device Number' => 'char 188:0',
'Speed' => '12 Mbps',
'Module Alias' => '"usb:v067Bp23C3d0305dc00dsc00dp00icFFisc00ip00in00"',
'Driver Info #0' => '',
'Driver Status' => 'pl2303 is active',
'Driver Activation Cmd' => '"modprobe pl2303"',
'Config Status' => 'cfg=new, avail=yes, need=no, active=unknown',
'Attached to' => '#27 (Hub)',
)
03.05. 15:47:11 -Daten:
array (
25 => 'USB 00.0: 10a00 Hub',
'' => '[Created at usb.122]',
'Unique ID' => 'k4bc.D6ER+lJeRh3',
'Parent ID' => '3t9U.TAOITtdfnIE',
'SysFS ID' => '/devices/platform/soc/3f980000.usb/usb1/1-0:1.0',
'SysFS BusID' => '1-0:1.0',
'Hardware Class' => 'hub',
'Model' => '"Linux Foundation 2.0 root hub"',
'Hotplug' => 'USB',
'Vendor' => 'usb 0x1d6b "Linux Foundation"',
'Device' => 'usb 0x0002 "2.0 root hub"',
'Revision' => '"5.10"',
'Serial ID' => '"3f980000.usb"',
'Driver' => '"hub"',
'Driver Modules' => '"usbcore"',
'Speed' => '480 Mbps',
'Module Alias' => '"usb:v1D6Bp0002d0510dc09dsc00dp01ic09isc00ip00in00"',
'Config Status' => 'cfg=new, avail=yes, need=no, active=unknown',
'Attached to' => '#1 (USB Controller)',
)
03.05. 15:47:11 -Daten:
array (
26 => 'USB 00.0: 0200 Ethernet controller',
'' => '[Created at usb.122]',
'Unique ID' => 'lfzD.Sed3PcmdZ23',
'Parent ID' => 'ADDn.IKhPgutgmvF',
'SysFS ID' => '/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.1/1-1.1:1.0',
'SysFS BusID' => '1-1.1:1.0',
'Hardware Class' => 'network',
'Model' => '"Standard Microsystems SMSC9512/9514 Fast Ethernet Adapter"',
'Hotplug' => 'USB',
'Vendor' => 'usb 0x0424 "Standard Microsystems Corp."',
'Device' => 'usb 0xec00 "SMSC9512/9514 Fast Ethernet Adapter"',
'Revision' => '"2.00"',
'Driver' => '"smsc95xx"',
'Driver Modules' => '"smsc95xx"',
'Device File' => 'eth0',
'Speed' => '480 Mbps',
'HW Address' => 'b8:27:eb:29:70:37',
'Permanent HW Address' => 'b8:27:eb:29:70:37',
'Link detected' => 'no',
'Module Alias' => '"usb:v0424pEC00d0200dcFFdsc00dp01icFFisc00ipFFin00"',
'Config Status' => 'cfg=new, avail=yes, need=no, active=unknown',
'Attached to' => '#27 (Hub)',
)
03.05. 15:47:11 -Daten:
array (
27 => 'USB 00.0: 10a00 Hub',
'' => '',
'Unique ID' => 'ADDn.IKhPgutgmvF',
'Parent ID' => 'k4bc.D6ER+lJeRh3',
'SysFS ID' => '/devices/platform/soc/3f980000.usb/usb1/1-1/1-1:1.0',
'SysFS BusID' => '1-1:1.0',
'Hardware Class' => 'hub',
'Model' => '"Standard Microsystems SMC9514 Hub"',
'Hotplug' => 'USB',
'Vendor' => 'usb 0x0424 "Standard Microsystems Corp."',
'Device' => 'usb 0x9514 "SMC9514 Hub"',
'Revision' => '"2.00"',
'Driver' => '"hub"',
'Driver Modules' => '"usbcore"',
'Speed' => '480 Mbps',
'Module Alias' => '"usb:v0424p9514d0200dc09dsc00dp02ic09isc00ip02in00"',
'Config Status' => 'cfg=new, avail=yes, need=no, active=unknown',
'Attached to' => '#25 (Hub)',
)
03.05. 15:47:11 -USB Devices:
array (
1 =>
array (
'Device' => '0x23c3',
'File' => '/dev/ttyUSB0',
'Vendor' => 'usb 0x067b "Prolific Technology, Inc."',
'Model' => 'Prolific USB-Serial Controller',
'Driver Modules' => 'usbserial, pl2303',
'Driver' => 'pl2303',
),
2 =>
array (
'Device' => '0xec00',
'File' => 'eth0',
'Vendor' => 'usb 0x0424 "Standard Microsystems Corp."',
'Model' => 'Standard Microsystems SMSC9512/9514 Fast Ethernet Adapter',
'Driver Modules' => 'smsc95xx',
'Driver' => 'smsc95xx',
),
3 =>
array (
'Device' => '0x9514',
),
)
03.05. 15:47:11 -Regler: 26
03.05. 15:47:11 -Device: /dev/ttyUSB0 wird in die user.config.php geschrieben.
03.05. 15:47:11 -Zeile gefunden. Device kann ausgetauscht werden. Index: 511 $USBRegler = "/dev/ttyUSB0";
03.05. 15:47:11 -Zeile gefunden. Device kann ausgetauscht werden. Index: 512 $USBWechselrichter = "/dev/ttyUSB1";
03.05. 15:47:11 -Zeile gefunden. Platine kann ausgetauscht werden. Index: 528 $Platine = "Raspberry Pi 3 Model B Rev 1.2";
03.05. 15:47:35 !! -Keine gültigen Daten empfangen.
03.05. 15:47:35 |----------------- Stop qpi_p30.php -----------------------
03.05. 15:48:01 |----------------- Start qpi_p30.php ------------------------
03.05. 15:49:02 !! -Keine gültigen Daten empfangen.
03.05. 15:49:02 |----------------- Stop qpi_p30.php -----------------------