Raspberry Pi

Post questions, comments and feedback to our 3Dconnexion UNIX and Linux Development Team.

Moderator: Moderators

jwick
Moderator
Moderator
Posts: 2859
Joined: Wed Dec 20, 2006 2:25 pm
Location: USA
Contact:

Re: Raspberry Pi

Post by jwick » Tue Nov 24, 2020 3:10 am

Change the dev.read to read 13 bytes.
Then you will get one long packet with the T and R vector together.
This only works with a USB connection. Not the wireless dongle.

I've only tested this on a RPi3.

Leon2
Posts: 6
Joined: Sun Nov 22, 2020 2:51 pm

Re: Raspberry Pi

Post by Leon2 » Tue Nov 24, 2020 9:42 am

Thank you! its working now! Do you have any documents so I can see how the byte-package looks like?

jwick
Moderator
Moderator
Posts: 2859
Joined: Wed Dec 20, 2006 2:25 pm
Location: USA
Contact:

Re: Raspberry Pi

Post by jwick » Tue Nov 24, 2020 9:50 am

Each USB device tells exactly what it sends and how it sends it in its device descriptor. I print that at the beginning.

It's also useful to uncomment that
# print data
line. To see the various packets that are coming from the device.

On Windows, the software installs with an XML file (Base.xml) that describes the button packets, but it's easier just to press the button to see what comes out.
All the devices, currently have exactly the same 6DOF data.

There isn't much documentation available beyond that.

Leon2
Posts: 6
Joined: Sun Nov 22, 2020 2:51 pm

Re: Raspberry Pi

Post by Leon2 » Tue Dec 01, 2020 8:13 am

Hello its me again ;) the application is working now. Im really thankfull for the support! I have one question left. Does the Spacemouse enterprise have the same data exchange protocol (the 13 byte package)?

jwick
Moderator
Moderator
Posts: 2859
Joined: Wed Dec 20, 2006 2:25 pm
Location: USA
Contact:

Re: Raspberry Pi

Post by jwick » Tue Dec 01, 2020 9:10 am

Yes, the SpaceMouse Enterprise has the same axis data format.
The buttons may be different.
Let us know what interesting things you are doing with the 3D mouse and an RPi.

Leon2
Posts: 6
Joined: Sun Nov 22, 2020 2:51 pm

Re: Raspberry Pi

Post by Leon2 » Thu Dec 10, 2020 12:07 pm

Hey John,
I've made a quick teach-in device for industrial robots from the 3d mouse. You can private message me if you want any further info ;).

Post Reply