Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright

FlowDS4 *Playstation 4 Dual Shock 4 controller FlowStone

Post any examples or modules that you want to share here

FlowDS4 *Playstation 4 Dual Shock 4 controller FlowStone

Postby CodyOebel » Tue Sep 08, 2015 11:21 pm

Ok guy's today is my first day ever using FlowStone. I've been watching allot of the support and tutorial videos online.
Here's what I have created in one days time.

Since I dont own an Xbox 360\Xbox One controller and I use a playstation 4 dual shock 4 controller. I was in a crunch wanting to program using the Xbox module. I created a solid work around, and today I've nearly completed my SCP Dualshock 4 controller emulator and testing package for FlowStone users to use their PS4 controller.

EVERYTHING WORKS ! Except one little thing that's bugging me to death that I'm sure has to be a FlowStone bug, or my novice experience with FlowStone is causing it. I am logging for the next 7 days my FlowStone projects. I plan to make a product that I can sell within my 7 day trial to show how a total novice who doesn't know ruby programming or flow-stone; cant rapidly develop. I just love DSP Robotics work .. what can I say!

**Admins** Hope it's ok to link my FlowStone project file\files, but I need help to see why my program is not working.
Here is the video of my problem in which I uploaded minutes ago as it's still processing.
http://youtu.be/gLCBxEBFmTc
Here's the link to my program files in a zip folder:
http://oebelsoft.com/wp-content/uploads/2015/09/CodyOebelFLOWDS4.zip

There is two joy-stick BMP's in which I am trying to control with my "Test Dual Shock 4" application.
Everything works fine.. I'm pretty excited to share on this forum how I am using a PS4 controller in a simple manner as I'm using SCP with an already mapped out Xinput mapper configuration. Today Day1 of my 7 day trial my self-task is to create a way for PS4 DualShock 4 controller owners to program in flowstone using their PS4 controller instead of Xbox controller for those who dont own an Xbox. As you can see in my video everything works great in the preview, for the exception of when I make an executable. The executable doesn't display my two joy-stick BMP's which are to move around when you move the joysticks on the PS4 controller.
CodyOebel
 
Posts: 19
Joined: Mon Sep 07, 2015 6:40 pm

Re: FlowDS4 *Playstation 4 Dual Shock 4 controller FlowSton

Postby adamszabo » Wed Sep 09, 2015 12:21 am

Hey, very easy! You had the joystick window selected as purgeable (black yellow lines on the border) which means when you export it anything thats purgeable will be deleted from he application. Simply right click on your joystick window and deselect Purgeable. Now it will work.
adamszabo
 
Posts: 667
Joined: Sun Jul 11, 2010 7:21 am

Re: FlowDS4 *Playstation 4 Dual Shock 4 controller FlowSton

Postby CodyOebel » Wed Sep 09, 2015 5:21 pm

Thanks Adam woot woot :)

I got it all working but it's using SCP (Scarlet Crush Productions) bluetooth server program.
I want 100% credit for everything so my new challenge is to create my own HID interface to communicate
with the controller, but I'm finding very little information on how to use the HID module .. I think I'll google HID programming but with my limited education and knowledge I'm not quite wrapping my mind around on how to yet do this.

https://www.youtube.com/watch?v=AtXNUEHxWdo&feature=youtu.be
CodyOebel
 
Posts: 19
Joined: Mon Sep 07, 2015 6:40 pm

Re: FlowDS4 *Playstation 4 Dual Shock 4 controller FlowSton

Postby CodyOebel » Wed Sep 09, 2015 6:03 pm

I'm trying to further understand HID so I read this article It's a bit complex. I give it to you low level programmers that made FlowStone and had to code all the hardware interfacing ... geeze it makes me know I need to go back to college if life will break me free from all these damn bills lol. .
https://msdn.microsoft.com/en-us/library/windows/hardware/jj126202(v=vs.85).aspx
I read this too and found it most interesting :)
http://www.dsprobotics.com/Files/UK2013120521.pdf
Which led to me googling for this:
http://www.dsprobotics.com/Files/V3/User%20Guide.pdf
The Components Manual page is nice.. I'm happy to have found it.
http://www.dsprobotics.com/Files/V3/Component%20Reference.pdf
I'm excited to see the win32 functions and "Set Pixel" as I used SetPixel and getPixel
to hack and macro online games as well as grab windows processes and communicate to them
in C++. I'm hoping to learn how to do it with Flowstone and Ruby.

Any help on how to use the HID module in flow-stone would be appreciated I'm searching the forum and cannot find much on the subject matter. In my novice programming and electronics experience \ level I have never interfaced with devices via programming language. I always wanted too though with flowstone this is easier. I just dont know the usage of the modules to jump right in and begin creating. Again .. all or any help is greatly appreciated. I'm reading HID articles but not much is relating other than general concepts of HID API .. I'm hoping flow-stone get's all the device data etc to make it easy to begin using HID devices.
CodyOebel
 
Posts: 19
Joined: Mon Sep 07, 2015 6:40 pm

Re: FlowDS4 *Playstation 4 Dual Shock 4 controller FlowSton

Postby CodyOebel » Wed Sep 09, 2015 6:41 pm

**IMAGE LINK BELOW**
http://oebelsoft.com/wp-content/uploads/2015/09/HIDquestions.jpg

Unfortunately today I must get off my computer and take care of some chores\responsibilities.
This cuts a day out of my 7 days trial period, and I can see understanding HID is going to be a task for me, but fun none the less. Although my PS4 DS4 package is completed and working. The "German" inside my blood wont let me stop knowing I didn't make it entirely myself plus Carl Owen's told me about the HID module and my curiosity to know how to freaking interface with HID's is a step in programming I know I need and will give me allot of jedi-power for future projects to come.

What I'm worried is that how do I get the controllers HID values to work on someone elses computer. I'm still trying to get the HID module understood thenhow to xinput map it to the Xbox module is more vague areas I'm facing. Now that I found the manual page I'll read the HID module and ask questions, but today I have little free time. :(
CodyOebel
 
Posts: 19
Joined: Mon Sep 07, 2015 6:40 pm

Re: FlowDS4 *Playstation 4 Dual Shock 4 controller FlowSton

Postby JB_AU » Thu Dec 31, 2015 10:00 am

I have been ill & busy, hid is a really good module if the device is con-formative to usb specs, which 90% aren't :cry: luck for you, if it is an original sony product, it is.
PS4 usb controllers require an initialization code, which says "I am connected to the Playstation".
I have posted this somewhere, i have mountains of sh_t, so please search for it.
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."

Albert Einstein
User avatar
JB_AU
 
Posts: 171
Joined: Tue May 21, 2013 11:01 pm


Return to User Examples

Who is online

Users browsing this forum: No registered users and 26 guests