How do I access a pi can interface with Xojo

Hi, I have a P4 and and Pican 3 interface , there a libs and examples for python, but I want to do the same with Xojo and a nice gui around it.

In Python its done with :
ip link set can0 up type can…
and then

bus = can.interface.Bus(channel=‘can0’, bustype=‘socketcan_native’)

Hope somebody can help and I can show what is also possible with XOJO and a Pi 4.

BR Rainer

there are many library that not part of xojo but you can speak from Python to Xojo via TCP (Network).
https://wiki.python.org/moin/TcpCommunication

Hallo Markus, thx for the fast response. The Python samples work, its a socket Interface for CAN See Socket Can on Internet. .
If i can open a socket in Xojo it should work also,with with a CAN socket, using the CAN protocoll inständig of tcp, udp,…

BR Rainer

seems it is possible to switch to the inet protocoll somehow.

i think xojo only support tcp and udp.

If i can open a socket in Xojo

Der Begriff Socket ist zu allgemein,
das ist wie deutsche Stecker in eine amerikanische/asiatische Steckdose stecken :slight_smile:

Danke …
Maybe I should use canutils and call them by a shellsript.
But then it is better to stay with Python and TK.

BR Rainer