nadors@HCAN:~/openHCAN/hcan4mqttpc$ ./hcan4mqttpc -D -c 192.168.2.113 -d can0MQTT-Broker-Host-IP: 192.168.2.113serial can device: can0initMQTT: connect to broker=192.168.2.113, port=1883broker_connected -> subscribe (Nachrichten zum CAN-Bus):) got SUBACK: (QoS=0)can0 at index 4Speicherzugriffsfehler (Speicherabzug geschrieben)
(gdb) run file hcan4mqttpc -DThe program being debugged has been started already.Start it from the beginning? (y or n) y`/home/nadors/openHCAN/hcan4mqttpc/hcan4mqttpc' has changed; re-reading symbols.Starting program: /home/nadors/openHCAN/hcan4mqttpc/hcan4mqttpc file hcan4mqttpc -D
initMQTT: connect to broker=192.168.2.113, port=1883broker_connected -> subscribe (Nachrichten zum CAN-Bus):) got SUBACK: (QoS=0)can0 at index 4
Program received signal SIGSEGV, Segmentation fault.strtok () at ../sysdeps/i386/i686/strtok.S:212212 ../sysdeps/i386/i686/strtok.S: Datei oder Verzeichnis nicht gefunden.(gdb) backtrace#0 strtok () at ../sysdeps/i386/i686/strtok.S:212#1 0x0804979a in getMessage4cb (msg=0x804ad26 "RQ", msg4cb=0x0) at mqttHcan.c:38#2 0x08049136 in createMsg4cb (msg=0x804ad26 "RQ") at mqttClient.c:140#3 0x08048caf in main (argc=<optimized out>, argv=<optimized out>) at main.c:122(gdb)
...
select-timeout
select-timeout
select-timeout
cb> mqtt 102/OFF
select-timeout
select-timeout
select-timeout
....
select-timeout
select-timeoutmqttRead: rc=-1initMQTT: connect to broker=localhost, port=1883broker_connected -> subscribe (Nachrichten zum CAN-Bus):) got SUBACK: (QoS=0)select-rtn=1 0x10select-timeoutselect-timeoutnadors@bananapi:~/myOpenHabInstallation/conf/sitemaps$ telican -c 200transport connection error: timeout while waiting for packetnadors@bananapi:~/myOpenHabInstallation/conf/sitemaps$ candump can0 can0 00108CC8 [4] 05 01 02 01 can0 031090C8 [4] 05 11 66 00 can0 00108CC8 [4] 05 02 02 01^Cnadors@bananapi:~/myOpenHabInstallation/conf/sitemaps$ telican -c 200>127 root@bananapi ~ # hcan4mqttpc -D -c 192.168.188.27 -d can0 :(MQTT-Broker-Host-IP: 192.168.188.27serial can device: can0initMQTT: connect to broker=192.168.188.27, port=1883broker_connected -> subscribe (Nachrichten zum CAN-Bus):) got SUBACK: (QoS=0)can0 at index 0hcan4mqttpc[1556]: could not send complete CAN packet: written=-1, data-size=2!select-rtn=1 0x2select-timeoutselect-timeoutselect-timeoutselect-timeoutselect-timeoutselect-timeoutselect-timeoutselect-timeoutselect-timeout
130 root@bananapi ~ # telican -d -a 127.0.0.1 :(IP address : 127.0.0.1 0200 -> 0036 :SFP HES 1WIRE_TEMPERATURE gruppe:1 temp_hi:1 temp_lo:60 0200 -> 0036 :SFP HES 1WIRE_TEMPERATURE gruppe:1 temp_hi:1 temp_lo:60 0200 -> 0035 :SFP HES TASTER_DOWN gruppe:1 index:0 0200 -> 0036 :SFP HES POWER_GROUP_STATE_INFO gruppe:1 status:0 0200 -> 0035 :SFP HES TASTER_UP gruppe:1 index:0 0200 -> 0035 :SFP HES TASTER_DOWN gruppe:1 index:0 0200 -> 0036 :SFP HES POWER_GROUP_STATE_INFO gruppe:1 status:1 0200 -> 0035 :SFP HES TASTER_UP gruppe:1 index:0 0200 -> 0035 :SFP HES TASTER_DOWN gruppe:1 index:0 0200 -> 0036 :SFP HES POWER_GROUP_STATE_INFO gruppe:1 status:0 0200 -> 0035 :SFP HES TASTER_UP gruppe:1 index:0 0200 -> 0036 :SFP HES 1WIRE_TEMPERATURE gruppe:1 temp_hi:1 temp_lo:60 0200 -> 0035 :SFP HES TASTER_DOWN gruppe:1 index:0 0200 -> 0036 :SFP HES POWER_GROUP_STATE_INFO gruppe:1 status:1 0200 -> 0035 :SFP HES TASTER_UP gruppe:1 index:0 0200 -> 0035 :SFP HES TASTER_DOWN gruppe:1 index:0 0200 -> 0036 :SFP HES POWER_GROUP_STATE_INFO gruppe:1 status:0 0200 -> 0035 :SFP HES TASTER_UP gruppe:1 index:0 0200 -> 0035 :SFP HES TASTER_DOWN gruppe:1 index:0 0200 -> 0036 :SFP HES POWER_GROUP_STATE_INFO gruppe:1 status:1 0200 -> 0035 :SFP HES TASTER_UP gruppe:1 index:0 0200 -> 0035 :SFP HES TASTER_DOWN gruppe:1 index:0 0200 -> 0036 :SFP HES POWER_GROUP_STATE_INFO gruppe:1 status:0 0200 -> 0035 :SFP HES TASTER_UP gruppe:1 index:0 0200 -> 0036 :SFP HES 1WIRE_TEMPERATURE gruppe:1 temp_hi:1 temp_lo:61 0200 -> 0036 :SFP HES 1WIRE_TEMPERATURE gruppe:1 temp_hi:1 temp_lo:61 0036 -> 0036 :SFP RTS TIME_INFO level:0 day_of_week:1 hour:21 minute:29 second:0 0036 -> 0036 :SFP RTS DATE_INFO level:0 day_of_month:27 month_of_year:1 year:20 0200 -> 0036 :SFP HES 1WIRE_TEMPERATURE gruppe:1 temp_hi:1 temp_lo:61 0200 -> 0036 :SFP HES 1WIRE_TEMPERATURE gruppe:1 temp_hi:1 temp_lo:61
<haus>
<board addr="200">
<tempsensor gruppe="1" name="Kind" /> <taster gruppe="1" name="Lichttaster_Kind" /> <powerport gruppe="1" name="Deckenlampe_Kind" typ="lampe" />
</board>
</haus>