K8055-2

Forum about Domotiga Open Source Home Automation for Linux.

Moderator: RDNZL

Post Reply
3.14User
Starting Member
Starting Member
Posts: 3
Joined: Mon Oct 22, 2012 7:02 pm

K8055-2

Post by 3.14User »

Hello community,

I'm struggling with a K8055-2 board. I know that my Raspberry Image is running with a K8055-1 board.

Is anyboy out there who has a K8055-2 (P8055N-2 on the PCB) running with a Raspberry and Domotiga?
lsusb is showing the board but the test application and domotiga says "Can't open port".
I tried everything, powered usb hub, direct connection but always the same reaction.

Thanks for any help.

Regards,
3.14User
3.14User
Starting Member
Starting Member
Posts: 3
Joined: Mon Oct 22, 2012 7:02 pm

Re: K8055-2

Post by 3.14User »

Hello,

I found a solution thanks to Uranus Nucleus (search the Vellemann forum for VM110N and linux)

Just add one line to k8055.c (see below the one with +10), make, make install and the N-2 board is running (assuming that you have installed libusb etc.)

/* Actual read of data from the device endpoint, retry 3 times if not responding ok */
static int ReadK8055Data(void)
{
int read_status = 0, i = 0;

if (CurrDev->DevNo == 0) return K8055_ERROR;

for(i=0; i < 3; i++)
{
read_status = usb_interrupt_read(CurrDev->device_handle, USB_INP_EP, (char *)CurrDev->data_in, PACKET_LEN, USB_TIMEOUT);
if ((read_status == PACKET_LEN) && (CurrDev->data_in[1] == CurrDev->DevNo )) return 0; /* works with K8055 / VM110 */
if ((read_status == PACKET_LEN) && (CurrDev->data_in[1] == CurrDev->DevNo +10)) return 0; /* works with K8055N / VM110N */

if (DEBUG)
fprintf(stderr, "Read retry\n");
}
return K8055_ERROR;
}
I had to perform a sudo ldconfig to run domotiga (lib not found issue)
Regards,
3.14User
Post Reply

Return to “DomotiGa Forum”