client crashes on rpi (tunneling rfxcom unit)

9 posts / 0 new
Last post
hundra
client crashes on rpi (tunneling rfxcom unit)

Hi!

I wanted to extend the functionality of a small device (RFXtrx433E USB HA controller). The USB server (running on rpi) works just fine, and also attaching the client (also running on rpi). But when i communicate over the link the client-machine just crashes after a couple of seconds and has to be rebooted hard (nothing is logged, it simply crashes). Is there a way to figure out what is causing this? When i use the windows-client things seem to work just fine, no issues at all.

Running freshly downloaded binaries.

Please advise,

Martin

Michael
Is this the OSX or linux

Is this the OSX or linux client?

hundra
Hi!

Hi!

Raspberry PI/Raspian on both client and server

# uname -a
Linux raspberrypi 4.1.7+ #817 PREEMPT Sat Sep 19 15:25:36 BST 2015 armv6l GNU/Linux

Best regards,

Martin

Michael
I assuming you are not

I assuming you are not running the client and server on the same pi as i dont think that will work...

anyway if its locking the pi its very likely a kernel problem. That kernel is quite recent, the only thing ive tried with a pi as the client was a USB disk and that works well. I havent tried with serial port but if it doesnt work there is not much that can be done...

hundra
Hi!

Hi!

Nope, it's not the same raspberry, it's two different units. Are there any other projects that solve the issue you do with virtualhere available for raspberry/linux by any chance?

Best regards,

Martin

Michael
I dont know of any actually,

I dont know of any actually,

also i forgot to ask, is a serial port being created on the pi correctly? E.g do you have /dev/ttyUSBs0 or something similar when using the ha controller on the pi client?

If so it might be a serial driver issue rather than the usbip issue..

hundra
Hi!

Hi!

Yes it's correctly created and the first few seconds the communication works on the client (ie i'm able to receive messages from the rfxcom), after that it crashes. The server-side does not seem affected in any way.

Best regards,

Martin

Michael
It might actually be the

It might actually be the serial driver on the pi then, do you know what chip the HA is using? It might be worth taking a look at the manufacturers website to make sure you get the latest linux driver

hundra
Hi!

Hi!

As it's a serial device i wound up using socat instead to tunnel the traffic between the hosts. I got it up and running and will evaluate in a couple of days.

Best regards,

Martin

Log in or register to post comments