Welcome, Guest
Username: Password: Remember me

TOPIC: compile for Raspberry Pi

Re: compile for Raspberry Pi 10 years 10 months ago #5422

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3179
  • Thank you received: 502
  • Karma: 133
nodave creates a connection with the supplied MPI_Address, Rack and Slot, and calls daveConnectPlc() to make the connection. You'll get the 'new connection error' if this call fails. Normally the call returns and error code that can be translated to an error message, but now it just returns -1.

/Claes
The administrator has disabled public write access.

Re: compile for Raspberry Pi 10 years 10 months ago #5423

  • marc
  • marc's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 710
  • Thank you received: 70
  • Karma: 24
I can try to have a look at this in the weekend on my Pi.
But I have no S5.
Is there a way to simulate?
Please, use the Wiki if you succeeded your project or solved your problem. Share your work, so we can learn from each other.
The administrator has disabled public write access.

Re: compile for Raspberry Pi 10 years 10 months ago #5424

  • HTRasmus
  • HTRasmus's Avatar
  • OFFLINE
  • Gold Boarder
  • Posts: 182
  • Karma: 0
Hi I am using s7 over isotcp connection but s5 should also be supported.

i could hook you up to my vpn tunnel for testing but my isp seems to have a hard time letting wre protocol be forwarded to my sisco.

maybe i can manage to install some openswan to my server.

dont think there is any way to simulate.

before a lot of trouble here is what i did to get nodave included and get rid of the io-releasebuild error

following bodines guide untill the build step.

copied the compiled libnodave.so from the pi to rpitools/lib/ on the dev.
copied the nodave.h from the pi to rpitools/include/ on the dev.

modyfied thew custom configure script so it looks like this
if test $pwre_hw == "hw_arm"; then
  pwre_config_check_lib gtk GTK gtk gtk 0 "/usr/lib/arm-linux-gnueabihf/libgtk-x11-2.0.so" 
  pwre_config_check_include gtk GTK 1 "/home/pwrp/rpi/include/gtk-2.0/gtk/gtk.h" 
  pwre_config_check_include jni   JNI   1 $jdk/include/jni.h
  pwre_config_check_include jni   JNI   0 $jdk/include/linux/jni_md.h
  
  ## indsat som test
  
  pwre_config_check_include nodave NODAVE  1 "/home/pwrp/rpitools/include/nodave.h"

and added the -lnodave_dummy to the >"echo "export pwre_conf_libpwrotherio"< line

after importing rt, op and java I imported otherio and builded like the rest of the build step.

is this the correct way to approach this?
The administrator has disabled public write access.

Re: compile for Raspberry Pi 10 years 10 months ago #5425

  • marc
  • marc's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 710
  • Thank you received: 70
  • Karma: 24
Hi Rasmus,

Only to be sure.....
When you compiled libnodave on the ARM did you uncomment the line: #CFLAGS+=-DARM_FIX in Makefile ?

Can you run: ./testISO_TCP IP ?

/Marc
Please, use the Wiki if you succeeded your project or solved your problem. Share your work, so we can learn from each other.
Last Edit: 10 years 10 months ago by marc.
The administrator has disabled public write access.

Re: compile for Raspberry Pi 10 years 10 months ago #5426

  • HTRasmus
  • HTRasmus's Avatar
  • OFFLINE
  • Gold Boarder
  • Posts: 182
  • Karma: 0
Hi marc. yes i did. and tested the readout_all function wich came with libnodave i will try to test the iso_tcp in a minute
The administrator has disabled public write access.

Re: compile for Raspberry Pi 10 years 10 months ago #5427

  • HTRasmus
  • HTRasmus's Avatar
  • OFFLINE
  • Gold Boarder
  • Posts: 182
  • Karma: 0
Oh. the readout_all was from testISO_TCP

so it works :S

oeh.. oops. clearly does not not work any more :S

investigating will return :angry:
Last Edit: 10 years 10 months ago by HTRasmus.
The administrator has disabled public write access.
Time to create page: 8.352 seconds