i am not creating ANY folders; I am not copying or creating any files. All the mochad stuff on my pi are from its own installation!
I will circle back to answer your question in another post; sometimes it shows sending the codes and nothing happens, other times it shows nothing. when it does show sending the codes, if I send 10 from another source it shows up in the list... until I quit it with ^z.
I am convinced the cm15 is being attached to a version of mochad first run then stopped for whatever reason, and future restarted versions of mochad try to attach to another copy of cm15, but by then it is too late - cm15 is already attached to the first process that no longer is running so not available to future copies of mochad. or something along these lines... I can seee what appears to be multiple PID copies of cm15 being assigned in the /var/log/messages file:
Oct 29 15:40:10 raspberrypi kernel: [ 2.263007] usb 1-1.4: new high-speed USB device number 4 using dwc_otg
Oct 29 15:40:10 raspberrypi kernel: [ 2.403953] usb 1-1.4: New USB device found, idVendor=0409, idProduct=005a
Oct 29 15:40:10 raspberrypi kernel: [ 2.411591] usb 1-1.4: New USB device strings: Mfr=0, Product=0, SerialNumber=0
Oct 29 15:40:10 raspberrypi kernel: [ 2.422591] hub 1-1.4:1.0: USB hub found
Oct 29 15:40:10 raspberrypi kernel: [ 2.431550] hub 1-1.4:1.0: 4 ports detected
Oct 29 15:40:10 raspberrypi kernel: [ 2.502996] usb 1-1.1.2: new low-speed USB device number 5 using dwc_otg
Oct 29 15:40:10 raspberrypi kernel: [ 2.651933] usb 1-1.1.2: New USB device found, idVendor=0bc7, idProduct=0001
Oct 29 15:40:10 raspberrypi kernel: [ 2.659459] usb 1-1.1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Oct 29 15:40:10 raspberrypi mtp-probe: bus: 1, device: 6 was not an MTP device
Oct 29 15:40:10 raspberrypi liblogging-stdlog: [origin software="rsyslogd" swVersion="8.24.0" x-pid="218" x-info="
http://www.rsyslog.com"] start
Oct 29 15:40:10 raspberrypi kernel: [ 2.666883] usb 1-1.1.2: Product: USB ActiveHome Interface
Oct 29 15:40:10 raspberrypi kernel: [ 2.674260] usb 1-1.1.2: Manufacturer: X10 Wireless Technology Inc
Oct 29 15:40:10 raspberrypi kernel: [ 2.697793] NET: Registered protocol family 10
Oct 29 15:40:10 raspberrypi kernel: [ 2.707294] Segment Routing with IPv6
Oct 29 15:40:10 raspberrypi kernel: [ 2.731695] ip_tables: (C) 2000-2006 Netfilter Core Team
Oct 29 15:40:10 raspberrypi kernel: [ 2.766053] random: systemd: uninitialized urandom read (16 bytes read)
Oct 29 15:40:10 raspberrypi kernel: [ 2.910969] random: systemd: uninitialized urandom read (16 bytes read)
Oct 29 15:40:10 raspberrypi kernel: [ 3.183059] usb 1-1.1.3: new full-speed USB device number 6 using dwc_otg
Oct 29 15:40:10 raspberrypi kernel: [ 3.199094] random: systemd-gpt-aut: uninitialized urandom read (16 bytes read)
Oct 29 15:40:10 raspberrypi kernel: [ 3.338641] usb 1-1.1.3: New USB device found, idVendor=062a, idProduct=4c01
Oct 29 15:40:10 raspberrypi kernel: [ 3.347104] usb 1-1.1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Oct 29 15:40:10 raspberrypi kernel: [ 3.355388] usb 1-1.1.3: Product: 2.4G Keyboard Mouse
Oct 29 15:40:10 raspberrypi kernel: [ 3.363705] usb 1-1.1.3: Manufacturer: MOSART Semi.
Oct 29 15:40:10 raspberrypi kernel: [ 3.394495] input: MOSART Semi. 2.4G Keyboard Mouse as /devices/platform/soc/20980000.usb/usb1/1-1/1-1.1/1-1.1.3/1-1.1.3:1.0/0003:062A:4C01.0001/input/input0
Oct 29 15:40:10 raspberrypi kernel: [ 3.474123] hid-generic 0003:062A:4C01.0001: input,hidraw0: USB HID v1.10 Keyboard [MOSART Semi. 2.4G Keyboard Mouse] on usb-20980000.usb-1.1.3/input0
Oct 29 15:40:10 raspberrypi kernel: [ 3.523132] input: MOSART Semi. 2.4G Keyboard Mouse as /devices/platform/soc/20980000.usb/usb1/1-1/1-1.1/1-1.1.3/1-1.1.3:1.1/0003:062A:4C01.0002/input/input1
Oct 29 15:40:10 raspberrypi kernel: [ 3.594192] hid-generic 0003:062A:4C01.0002: input,hiddev96,hidraw1: USB HID v1.10 Mouse [MOSART Semi. 2.4G Keyboard Mouse] on usb-20980000.usb-1.1.3/input1
Oct 29 15:40:10 raspberrypi kernel: [ 7.499851] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
Oct 29 15:40:10 raspberrypi kernel: [ 11.727161] usbcore: registered new interface driver brcmfmac
Oct 29 15:40:10 raspberrypi kernel: [ 12.221696] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
Oct 29 15:40:10 raspberrypi kernel: [ 12.316639] bcm2835_alsa bcm2835_alsa: card created with 8 channels
Oct 29 15:40:10 raspberrypi kernel: [ 14.415832] random: crng init done
Oct 29 15:40:10 raspberrypi kernel: [ 14.415861] random: 7 urandom warning(s) missed due to ratelimiting
Oct 29 15:40:11 raspberrypi kernel: [ 16.185216] uart-pl011 20201000.serial: no DMA platform data
Oct 29 15:40:13 raspberrypi kernel: [ 18.721255] Adding 102396k swap on /var/swap. Priority:-2 extents:1 across:102396k SSFS
Oct 29 15:40:15 raspberrypi kernel: [ 20.543052] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
Oct 29 15:40:15 raspberrypi kernel: [ 20.543101] brcmfmac: power management disabled
Oct 29 15:40:15 raspberrypi kernel: [ 20.685380] Bluetooth: Core ver 2.22
Oct 29 15:40:15 raspberrypi kernel: [ 20.685524] NET: Registered protocol family 31
Oct 29 15:40:15 raspberrypi kernel: [ 20.685532] Bluetooth: HCI device and connection manager initialized
Oct 29 15:40:15 raspberrypi kernel: [ 20.685559] Bluetooth: HCI socket layer initialized
Oct 29 15:40:15 raspberrypi kernel: [ 20.685573] Bluetooth: L2CAP socket layer initialized
Oct 29 15:40:15 raspberrypi kernel: [ 20.685619] Bluetooth: SCO socket layer initialized
Oct 29 15:40:15 raspberrypi kernel: [ 20.703568] Bluetooth: HCI UART driver ver 2.3
Oct 29 15:40:15 raspberrypi kernel: [ 20.703640] Bluetooth: HCI UART protocol H4 registered
Oct 29 15:40:15 raspberrypi kernel: [ 20.703647] Bluetooth: HCI UART protocol Three-wire (H5) registered
Oct 29 15:40:15 raspberrypi kernel: [ 20.706302] Bluetooth: HCI UART protocol Broadcom registered
Oct 29 15:40:16 raspberrypi kernel: [ 21.313022] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
Oct 29 15:40:16 raspberrypi kernel: [ 21.313037] Bluetooth: BNEP filters: protocol multicast
Oct 29 15:40:16 raspberrypi kernel: [ 21.313066] Bluetooth: BNEP socket layer initialized
Oct 29 15:40:16 raspberrypi kernel: [ 21.850149] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
Oct 29 15:40:22 raspberrypi mochad[425]: starting
Oct 29 15:40:22 raspberrypi mochad[427]: Found CM15A
Oct 29 15:40:22 raspberrypi mochad[427]: In endpoint 0x81, Out endpoint 0x02
Oct 29 15:40:23 raspberrypi domoticz: Domoticz is starting up....
Oct 29 15:40:23 raspberrypi domoticz: Domoticz running...
Oct 29 15:40:53 raspberrypi mochad[523]: starting
Oct 29 15:40:53 raspberrypi mochad[524]: Found kernel driver 0, trying detach
Oct 29 15:40:53 raspberrypi mochad[524]: terminated
Oct 29 16:06:07 raspberrypi kernel: [ 1562.443220] usb 1-1.1.2: USB disconnect, device number 5
Oct 29 16:08:37 raspberrypi kernel: [ 1712.784421] usb 1-1.2: new low-speed USB device number 7 using dwc_otg
Oct 29 16:08:37 raspberrypi kernel: [ 1712.922889] usb 1-1.2: New USB device found, idVendor=0bc7, idProduct=0001
Oct 29 16:08:37 raspberrypi kernel: [ 1712.922915] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Oct 29 16:08:37 raspberrypi kernel: [ 1712.922928] usb 1-1.2: Product: USB ActiveHome Interface
Oct 29 16:08:37 raspberrypi kernel: [ 1712.922941] usb 1-1.2: Manufacturer: X10 Wireless Technology Inc
Oct 29 16:08:37 raspberrypi mtp-probe: checking bus 1, device 7: "/sys/devices/platform/soc/20980000.usb/usb1/1-1/1-1.2"
Oct 29 16:08:37 raspberrypi mtp-probe: bus: 1, device: 7 was not an MTP device
Oct 29 16:09:10 raspberrypi kernel: [ 1745.515652] usb 1-1.2: USB disconnect, device number 7
Oct 29 16:09:13 raspberrypi kernel: [ 1748.596759] usb 1-1.1.2: new low-speed USB device number 8 using dwc_otg
Oct 29 16:09:13 raspberrypi kernel: [ 1748.734981] usb 1-1.1.2: New USB device found, idVendor=0bc7, idProduct=0001
Oct 29 16:09:13 raspberrypi kernel: [ 1748.735010] usb 1-1.1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Oct 29 16:09:13 raspberrypi kernel: [ 1748.735025] usb 1-1.1.2: Product: USB ActiveHome Interface
Oct 29 16:09:13 raspberrypi kernel: [ 1748.735037] usb 1-1.1.2: Manufacturer: X10 Wireless Technology Inc
Oct 29 16:09:13 raspberrypi mtp-probe: checking bus 1, device 8: "/sys/devices/platform/soc/20980000.usb/usb1/1-1/1-1.1/1-1.1.2"
Oct 29 16:09:13 raspberrypi mtp-probe: bus: 1, device: 8 was not an MTP device
Oct 29 16:10:08 raspberrypi kernel: [ 1803.339868] usb 1-1.1.2: USB disconnect, device number 8
Oct 29 16:11:18 raspberrypi kernel: [ 1874.034122] usb 1-1.1.2: new low-speed USB device number 9 using dwc_otg
Oct 29 16:11:18 raspberrypi kernel: [ 1874.172474] usb 1-1.1.2: New USB device found, idVendor=0bc7, idProduct=0001
Oct 29 16:11:18 raspberrypi kernel: [ 1874.172502] usb 1-1.1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Oct 29 16:11:18 raspberrypi kernel: [ 1874.172515] usb 1-1.1.2: Product: USB ActiveHome Interface
Oct 29 16:11:18 raspberrypi kernel: [ 1874.172527] usb 1-1.1.2: Manufacturer: X10 Wireless Technology Inc
Oct 29 16:11:19 raspberrypi mtp-probe: checking bus 1, device 9: "/sys/devices/platform/soc/20980000.usb/usb1/1-1/1-1.1/1-1.1.2"
Oct 29 16:11:19 raspberrypi mtp-probe: bus: 1, device: 9 was not an MTP device
Oct 29 16:12:26 raspberrypi mochad[635]: starting
Oct 29 16:12:26 raspberrypi mochad[636]: terminated
Oct 29 16:12:32 raspberrypi mochad[638]: starting
Oct 29 16:12:32 raspberrypi mochad[639]: terminated
Oct 29 16:12:59 raspberrypi mochad[646]: starting
Oct 29 16:12:59 raspberrypi mochad[647]: terminated
Oct 29 16:29:15 raspberrypi kernel: [ 2951.246758] usb 1-1.1.2: USB disconnect, device number 9
Oct 29 16:29:25 raspberrypi kernel: [ 2961.272716] usb 1-1.1.2: new low-speed USB device number 10 using dwc_otg
Oct 29 16:29:26 raspberrypi kernel: [ 2961.411059] usb 1-1.1.2: New USB device found, idVendor=0bc7, idProduct=0001
Oct 29 16:29:26 raspberrypi kernel: [ 2961.411088] usb 1-1.1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Oct 29 16:29:26 raspberrypi kernel: [ 2961.411101] usb 1-1.1.2: Product: USB ActiveHome Interface
Oct 29 16:29:26 raspberrypi kernel: [ 2961.411112] usb 1-1.1.2: Manufacturer: X10 Wireless Technology Inc
Oct 29 16:29:26 raspberrypi mtp-probe: checking bus 1, device 10: "/sys/devices/platform/soc/20980000.usb/usb1/1-1/1-1.1/1-1.1.2"
Oct 29 16:29:26 raspberrypi mtp-probe: bus: 1, device: 10 was not an MTP device
Oct 29 17:45:25 raspberrypi mochad[427]: detaching CM15A
Oct 29 17:45:25 raspberrypi mochad[427]: terminated
Oct 29 17:45:28 raspberrypi mochad[699]: starting
Oct 29 17:45:28 raspberrypi mochad[700]: Found CM15A
Oct 29 17:45:28 raspberrypi mochad[700]: In endpoint 0x81, Out endpoint 0x02