tapani

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: Thermiq installation on Ubuntu 11.10 #5886
    tapani
    Participant

    I set the variable in the .ini file and checked that both php5 and the scripts in /usr/sbin have execute permission for all users. Still does not work. What other files can have wrong permissions?

    When I run the dummy_poll from command line /usr/bin/php5 dummy_poll I get the following warnings:

    PHP Warning: Invalid argument supplied for foreach() in /usr/sbin/dummy_poll on line 50

    PHP Notice: Undefined variable: regnamary in /usr/sbin/dummy_poll on line 55

    PHP Warning: implode(): Invalid arguments passed in /usr/sbin/dummy_poll on line 55

    PHP Notice: Undefined variable: regvalary in /usr/sbin/dummy_poll on line 56

    PHP Warning: implode(): Invalid arguments passed in /usr/sbin/dummy_poll on line 56

    PHP Warning: Invalid argument supplied for foreach() in /usr/sbin/dummy_poll on line 76

    PHP Notice: Undefined variable: COMPR_STARTS in /usr/sbin/dummy_poll on line 79

    PHP Notice: Undefined variable: KOMPR_H in /usr/sbin/dummy_poll on line 80

    PHP Notice: Undefined variable: T_UTE in /usr/sbin/dummy_poll on line 81

    PHP Notice: Undefined variable: T_VATTEN in /usr/sbin/dummy_poll on line 82

    in reply to: Thermiq installation on Ubuntu 11.10 #5883
    tapani
    Participant

    I had to create a symbolic link from /opt/bin to /usr/bin in Debian. But the db creation, dummy_poll etc scripts still don’t work. They work when started from the command line, but not from the php pages. I’m not sure if it does not find the script or if there is some error in running the script. It would be nice to have a log file to tell what happened. I have given rx rights to all users to all script, but that didn’t help.

    I tried to add some echo at the beginning of the script, but it does not appear to the web page. I have copied the scripts both to /usr/sbin and /usr/share/php, but that does not help. I haven’t used php before so it’s a bit hard to tell what’s wrong. Wish this were Java code and one simple war package.

    in reply to: Thermiq installation on Ubuntu 11.10 #5880
    tapani
    Participant

    Worked this out with Anders last night. Thank you Anders, awesome hands-on support for ThermIQ indeed!

    Cdc-acm and usbserial kernel modules both support the same device and since cdc-acm runs first and creates ttyACM0, usbserial is not able to create ttyUSB0.

    The fix sequence goes something like this:

    1. Blacklist the cdc-acm kernel module by adding the following line to /etc/modprobe.d/blacklist:

    blacklist cdc-acm

    2. rmmod cdc_acm (not sure if really needed)

    3. modprobe usbserial vendor=0x4d8 product=0xfdeb

    (also add to /etc/modules:

    usbserial vendor=0x04d8 product=0xfdeb)

    4. Unplug the usb and plug it again.

    5. chmod 0666 /dev/ttyUSB0

    (add this to some startup script)

    -Tapani

    in reply to: Thermiq installation on Ubuntu 11.10 #5879
    tapani
    Participant

    Hi,

    I tried to install ThermIQ to my DreamPlug (Debian 6.0.4) and encountered the same problem as you did at the beginning. The device is recognized and the memory card mounted, but usbserial does not create ttyUSB0 or any other tty port for the device. My brother tried my ThermIQ in his Linux laptop (ArchLinux) and the result was exactly the same. usb-devices shows about the same output as the one you posted here.

    I also tried with Windows where the device is recognized and drivers install without erros, but check_install.php page loads forever when I change the COM port from the default COM2 to COM5, which according to Device Manager is ThermIQ Composite Port.

    How did you changed the loggin interval from 2M to 1M if the device was not recognized?

    -Tapani

Viewing 4 posts - 1 through 4 (of 4 total)