stm32f3discovery (foculus) and freepie

Official forum for open source FreePIE discussion and development.
Post Reply
izzo
One Eyed Hopeful
Posts: 2
Joined: Wed Aug 06, 2014 2:39 am

stm32f3discovery (foculus) and freepie

Post by izzo »

Hi All,

I recently bought this board and flashed it to be an oculus emulator (https://github.com/yetifrisstlama/Focul ... 3DISCOVERY)
This works well on unity stuff, mostly demos.

Doesn't work in games tho as its only a tracker , and the HMD isnt detected.
So i was wondering if this could be read with freepie to emulate freetracker or irtrack. its connected by USB.
I was looking at the site on how to write a plugin, but i can't figure out how to read/debug the usb output of the board to create a working plugin.

Regards,
Izz
CyberVillain
Petrif-Eyed
Posts: 2166
Joined: Mon Jun 22, 2009 8:36 am
Location: Stockholm, Sweden

Re: stm32f3discovery (foculus) and freepie

Post by CyberVillain »

If its detected like a rift you should be able to use the rift plugin in FreePIE
iBookworm
One Eyed Hopeful
Posts: 23
Joined: Sun Sep 07, 2014 3:36 pm

Re: stm32f3discovery (foculus) and freepie

Post by iBookworm »

I tried to use my STM32F3DISCOVERY board with the oculusVR plugin in FreePIE last night, but FreePIE crashed every time I tried to run a script, even if it was only a simple diagnostics.watch(oculusVR.roll) command. Has anyone been able to get this working?
CyberVillain
Petrif-Eyed
Posts: 2166
Joined: Mon Jun 22, 2009 8:36 am
Location: Stockholm, Sweden

Re: stm32f3discovery (foculus) and freepie

Post by CyberVillain »

Does it have official support for SDK 0.4.2?
Have you installed Oculis VR Runtime?

its a new requirement since 0.4.x
iBookworm
One Eyed Hopeful
Posts: 23
Joined: Sun Sep 07, 2014 3:36 pm

Re: stm32f3discovery (foculus) and freepie

Post by iBookworm »

So, FreePIE crashes every time I try to run a script with oculusVR in it. This happens on two different computers, with and without the runtime installed, and with and without my STM32F3DISCOVERY board connected.

Does it only work if the actual Oculus Rift is connected? But the old iPhone script I used would at least run even without receiving any iPhone data . . .
CyberVillain
Petrif-Eyed
Posts: 2166
Joined: Mon Jun 22, 2009 8:36 am
Location: Stockholm, Sweden

Re: stm32f3discovery (foculus) and freepie

Post by CyberVillain »

Does other SDK 0.4.2 content? LIke unity demos or soemthing?

When I run a oculus script without a oculus connected I get a message in the error window, no crash
iBookworm
One Eyed Hopeful
Posts: 23
Joined: Sun Sep 07, 2014 3:36 pm

Re: stm32f3discovery (foculus) and freepie

Post by iBookworm »

I don't have a spoofer. Unity demos that only look for the tracker (like Windlands) run just fine, with a working tracker.
CyberVillain
Petrif-Eyed
Posts: 2166
Joined: Mon Jun 22, 2009 8:36 am
Location: Stockholm, Sweden

Re: stm32f3discovery (foculus) and freepie

Post by CyberVillain »

Have you verified that your fake rift works with 0.4.2? Maybe the demos you run use a older version of the SDK?
iBookworm
One Eyed Hopeful
Posts: 23
Joined: Sun Sep 07, 2014 3:36 pm

Re: stm32f3discovery (foculus) and freepie

Post by iBookworm »

You're right, that was probably an older SDK. I'll try to find a 0.4.2 demo to test.

Does FreePIE require 0.4.2? Because I don't simply lack tracking, as I've heard happens with 0.4.2 demos and the DISCOVERY board. I don't get far enough to see if tracking is working, because FreePIE crashes outright when the script is run.
CyberVillain
Petrif-Eyed
Posts: 2166
Joined: Mon Jun 22, 2009 8:36 am
Location: Stockholm, Sweden

Re: stm32f3discovery (foculus) and freepie

Post by CyberVillain »

Yes it requires the runtime for 0.4.2

Look in %appdata%\FreePIE\FreePIE.log

Anything there?

also try with this standalone exe

what errors does it output?
You do not have the required permissions to view the files attached to this post.
iBookworm
One Eyed Hopeful
Posts: 23
Joined: Sun Sep 07, 2014 3:36 pm

Re: stm32f3discovery (foculus) and freepie

Post by iBookworm »

I appreciate your help.

I don't see a log file there, only "layout" and "settings."

The "test" exe in the debug folder you sent opens, shows a DOS-style terminal, and quits immediately. Sometimes I can catch words appear just before it quits, but I haven't been able to catch more than "Failed . . ." Is there something else I should be doing?

I verified that 0.4.2. Runtime was installed. FreePIE still crashed when a script is run: "FreePIE.GUI has stopped working." My tracker isn't connected right now (I'm at work), but it did the same thing when it was.
iBookworm
One Eyed Hopeful
Posts: 23
Joined: Sun Sep 07, 2014 3:36 pm

Re: stm32f3discovery (foculus) and freepie

Post by iBookworm »

Tried the debug a few more times, was able to see "Failed to init."
CyberVillain
Petrif-Eyed
Posts: 2166
Joined: Mon Jun 22, 2009 8:36 am
Location: Stockholm, Sweden

Re: stm32f3discovery (foculus) and freepie

Post by CyberVillain »

run it from the command line and you should be able to see what it says. Any more info than that?
iBookworm
One Eyed Hopeful
Posts: 23
Joined: Sun Sep 07, 2014 3:36 pm

Re: stm32f3discovery (foculus) and freepie

Post by iBookworm »

It does exactly the same thing when run from the command prompt. It shows these two lines:

Debug: Performance timer Vista flag = 1
Debug: [Netclient] Connected to a server running 1.1.0 (my version=1.1.0)

Then it flashes "Failed to init" and closes.
Post Reply

Return to “FreePIE”