Viperpit(s).org
September 03, 2010, 02:40:03 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Constantly working to make sure you're experience with Viperpit.org is an experience that LASTS !
 
  Home   Forum   AUCTIONS GALLERY DOWNLOADS MEMBER MAP Login Register Help   **
Recent Posts
[Today at 02:31:16 PM]

by gus
[Today at 02:17:26 PM]

[Today at 12:53:04 PM]

[Today at 10:57:51 AM]

[Today at 10:41:28 AM]

[Today at 01:09:50 AM]

[Today at 12:49:54 AM]

[September 02, 2010, 01:47:00 PM]

[September 02, 2010, 12:30:03 PM]

by KK
[September 02, 2010, 08:41:57 AM]

[September 02, 2010, 07:26:05 AM]

[September 01, 2010, 04:50:46 PM]
Forum Donations
Help us keep Viperpit alive !
Feeds
Atom feed RSS/RDF feed RSS 0.91 Feed RSS 2.0 Feed
Pages: [1] 2  All   Go Down
  Add bookmark  |  Print  
Author Topic: DirectX button mappings w/ PHCC  (Read 2924 times)
lightning
-=VP Donor=-
General
*
Offline Offline

United States United States

Awards:

Grant award..
Posts: 2126


Topic starter

WWW
« on: January 16, 2008, 01:13:04 PM »

Just a little update -- Jay has lent me a PHCC setup so I can write the code to support it in JoyMapper, but it looks like I'll need to order a PIC burner in order to get this thing working, because after attempting to update the PHCC firmware over the serial port, the PHCC is now stuck in a state where both the red and green LEDs are on, and no communications is possible now over the serial port. 

So as far as I can tell from the little information that's actually out there, it looks like I need to update the bootloader on the PIC itself.  Unless I'm doin' it wrong Smiley 

Are there any PHCC owners out there that care to comment? 
Logged

idekkers
General
******
Offline Offline

Israel Israel

Awards:

Grant award..
Posts: 1211



« Reply #1 on: January 17, 2008, 02:32:01 AM »

what do you get form it when you open a hyperterminal session to it ?

Ido
Logged
Crease-Guard
Administrator
General
*****
Offline Offline

United States United States

Awards:

Grant award..
Posts: 2725



WWW
« Reply #2 on: January 17, 2008, 02:33:58 AM »

Guys, I'm going to move this out of Leo's thread since we are now onto another product.

Jay
Logged

LeoL
Guest
« Reply #3 on: January 17, 2008, 09:06:10 AM »

If the bootloader was properly coded, you cannot overwrite the bootloader section. You need to find out if there's a way to force the MCU to "boot" into the bootloader section. Right now it sounds like its trying to execute the code and bypassing the bootloader.

I thought about this scenario when I designed my products and should the update fail, I provide a jumper to force the MCU into the Flash Loader program so you can reprogram the device. Hopefully PHCC has a similar method to recover from a failed update (i.e. ground one of the input pins, etc.) If not then you have no choice but to reprogram the MCU with a fresh bootloader and that just defeats the whole purpose of having the bootloader in the first place. DOH !
Logged
lightning
-=VP Donor=-
General
*
Offline Offline

United States United States

Awards:

Grant award..
Posts: 2126


Topic starter

WWW
« Reply #4 on: January 17, 2008, 10:03:51 AM »

Quote from: LeoL
If the bootloader was properly coded, you cannot overwrite the bootloader section
From what I understand, the original bootloader did not write-disable its own segment, so this was in fact possible.  With the latest bootloader for the PHCC, it's my understanding that this is not a problem anymore, since the newer bootloader code write-disables its own memory area.

Quote from: LeoL
provide a jumper to force the MCU into the Flash Loader program so you can reprogram the device. Hopefully PHCC has a similar method to recover from a failed update

On the PHCC motherboard itself, there's a reset jumper, but it's my understanding that that's where you wire up a switch to cause a manual reset of the device, and it doesn't control firmware loading...

On some of the other PHCC stuff (the USB firmware, for example), I believe there's like a "magic combo" it looks for (e.g. two presses of the reset button within 2 seconds) that puts the bootloader into firmware update mode. 

I haven't seen anything that would imply there's such a function on the PHCC motherboard -- so that implies reprogramming the MCU, as you said.  Agreed, it completely defeats the point of a bootloader to have to do that.  An error of omission, I suppose.
Logged

LeoL
Guest
« Reply #5 on: January 17, 2008, 10:50:49 AM »

If you don't have one already, head on over to www.sparkfun.com for USB programmers or pick one up on EBAY cheap. I wouldn't waste my time with any of those DIY serial port programmers. They work fine if the moons of Jupiter are in alignment....most of the time! Just get yourself a good USB programmer and save yourself the headaches.
Logged
lightning
-=VP Donor=-
General
*
Offline Offline

United States United States

Awards:

Grant award..
Posts: 2126


Topic starter

WWW
« Reply #6 on: January 17, 2008, 11:18:20 AM »

Thx, Leo, for the link!
Logged

lightning
-=VP Donor=-
General
*
Offline Offline

United States United States

Awards:

Grant award..
Posts: 2126


Topic starter

WWW
« Reply #7 on: October 17, 2008, 04:01:15 AM »

JoyMapper Alpha 3 is released.  Latest version adds support for mapping PHCC inputs to PPJoy virtual joysticks.

Download from my Assembla project site

« Last Edit: December 15, 2009, 10:29:14 PM by lightning, Reason: removed dead link » Logged

lightning
-=VP Donor=-
General
*
Offline Offline

United States United States

Awards:

Grant award..
Posts: 2126


Topic starter

WWW
« Reply #8 on: October 30, 2008, 03:15:27 PM »

There's an update to the PHCC Interface Library code that will be released over the weekend; this solves a problem with the interpretation of the analog input update packets.  Since this will affect JoyMapper, there will be an updated release of Alpha 3 containing that fix.
Logged

bnepethomas
-=VP Donor=-
LT. General
*
Offline Offline

Australia Australia

Awards:

Grant award..
Posts: 456


« Reply #9 on: March 04, 2009, 06:09:31 AM »

Busy programming keystrokes into the pit, and then remembered about this little gem.  I could be having a major blonde moment here, but it JoyMapper seems to recognise key presses from MM2s but not GRay.  any tricks of the trade for that?

Ta

Peter
Logged
lightning
-=VP Donor=-
General
*
Offline Offline

United States United States

Awards:

Grant award..
Posts: 2126


Topic starter

WWW
« Reply #10 on: March 04, 2009, 09:44:12 AM »

Stand by for the update to JoyMapper -- been busy with other things for a few weeks and have not rebuilt this yet.   
Logged

bnepethomas
-=VP Donor=-
LT. General
*
Offline Offline

Australia Australia

Awards:

Grant award..
Posts: 456


« Reply #11 on: March 05, 2009, 04:04:10 AM »

Stand by for the update to JoyMapper -- been busy with other things for a few weeks and have not rebuilt this yet.   
ta muchly
Logged
Doc
2nd. LT
*
Offline Offline

Netherlands Netherlands

Grant award..
Posts: 13



« Reply #12 on: March 23, 2009, 03:42:29 PM »

I have some trouble getting started with the PHCC....

I can't get JoyMapper to recognize my PHCC-motherboard when I connect it through USB.  Angry
When I connect the PHCC-motherboard with the null-modem cable to my testcomputer, the PHCC Test Tool software does recognize it, so I don't think the problem is in the motherboard itself.
I did install PPJoy and selected Virtual Joystick...

Can anyone help me please?

Doc

Logged
lightning
-=VP Donor=-
General
*
Offline Offline

United States United States

Awards:

Grant award..
Posts: 2126


Topic starter

WWW
« Reply #13 on: April 02, 2009, 03:13:09 PM »

I have some trouble getting started with the PHCC....

I can't get JoyMapper to recognize my PHCC-motherboard when I connect it through USB.  Angry
When I connect the PHCC-motherboard with the null-modem cable to my testcomputer, the PHCC Test Tool software does recognize it, so I don't think the problem is in the motherboard itself.
I did install PPJoy and selected Virtual Joystick...

Can anyone help me please?

Doc
If the PHCC Test Tool software sees your PHCC motherboard, but JoyMapper does not (on the same computer, connected the same way), then there may be an issue with how JoyMapper is doing the autodetection, but at first glance I'd be a bit skeptical of that hypothesis, because the detection routine that is being used by both the PHCC Test Tool software and JoyMapper is nearly identical. 

One thing that would help -- Can you confirm that these tests are both being run on the same machine with the PHCC motherboard connected in the same fashion? 

Also, when switching from one tool to the next, be sure to reset your PHCC motherboard (power off,power back on).  Otherwise the PHCC motherboard's firmware can be left in an inconsistent state.

Lastly, there is a known bug in the serial port drivers for certain USB->RS232 cables containing chips made by Prolific (specifically, the PL2303 chip).  Any of the USB->RS232 adapters based on the Prolific brand chips suffer from buggy drivers, not just under Vista but on all versions of Windows.  Due to the poor driver implementation for these chips, I cannot support them under Windows, as no workarounds exist.  They are, regrettably, junk.  Ask me how I know Sad

Unfortunately, these Prolific cables are private-labelled, and frequently, so are the drivers that ship with the cables.  So there's not always an easy way to tell if you're using one made by Prolific.  The only way is to hunt around in the Windows Device Manager, under Ports, then select the COM port that your PHCC motherboard is connected to, then look on the General tab, you'll see the driver manufacturer and location.  Also check under the Driver tab. 

Logged

Doc
2nd. LT
*
Offline Offline

Netherlands Netherlands

Grant award..
Posts: 13



« Reply #14 on: April 03, 2009, 10:26:41 AM »

Hi Lightning,

First of all thanks for your help!!

My set-up is like this, all on the same system:

PHCC connected through COM1.
* The PHCC test tool does see the board. I've connected a pot-meter to test it and it works.
* JoyMapper (v0.3.0.0) does not see the board, even after a power reset of the PHCC-board.
I've tested it with the programms running seperately and and the same time.

Q/ Do I have to use the PPJoy Program "PPJoyCOM"?
I've tried to make a Virtual Joystick in PPJoy, Max amount of axes and buttons. After running PPJoyCOM all the axes and buttons in windows Gamecontrollers are flashing up and down. I did shortcut all the "empty" axis-cennections.

In windows device manager there is a yellow note of exclamation in front of the line "Prolific USB-to-seria Comm Port (COM3)... Angry
So I think my USB-to-serial cable is probably junk....
Fortunately my flightcomputer does have a old fasioned COM-port..

I hope this gives you a bit more information about my problem

Doc

Logged
Pages: [1] 2  All   Go Up
  Add bookmark  |  Print  
 
Jump to:  

Your local time
VP Time
19:40 UTC
September 03,2010
Today's Birthdays
Members
Total Members: 2374
Latest: bjviper
Stats
Total Posts: 79163
Total Topics: 5545
Online Today: 20
Online Ever: 459
(November 02, 2009, 09:46:32 PM)
Users Online
Users: 5
Guests: 15
Total: 20
Top 10 Posters
Ka-Bar03 (5074)
AiRdAncE (3955)
Crease-Guard (2725)
Nigel (2387)
Red Dog (2330)
Kneeling Warrior (2326)
Nikolas_A (2148)
lightning (2126)
101-Douxx (2024)
Flareless (1708)
Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC
TinyPortal v0.9.8 © Bloc
Valid XHTML 1.0! Valid CSS!
Page created in 0.184 seconds with 34 queries.