Orbshield Not Working :cry:

SpaceOrb drivers and software discussions
Forum rules
adamh128
Posts: 31
Joined: March 15 2006, 5:41 AM
Contact:

Orbshield Not Working :cry:

Postby adamh128 » February 13 2011, 6:21 AM

My OrbShield kit and Arduino Uno arrived, so I carefully put it all together, programmed the Uno with the BasicJoystick but when I flip the switch and plug the USB into the OrbShield, Windows says "USB device not recognised" and fails to install any drivers.



I'm using version 0022 of the Arduino software, with orb sketches 1.0 and orb library 1.1

OS is Windows 7 Ultimate 64-bit.



Please help :(

adamh128
Posts: 31
Joined: March 15 2006, 5:41 AM
Contact:

Re: Orbshield Not Working :cry:

Postby adamh128 » February 14 2011, 12:38 PM

I just had a thought - I remember trying my orb with the XP drivers a few years ago but had could never get it working there either. I know the orb is OK as it still works fine in DOS & Windows 95, so I'm wondering if I have an orb with the early firmware that was known not to work in XP.



Victor, does the OrbShield have the same limitations or should the firmware version be irrelevant?



- How can I tell what FW version my orb has?



- If it has the old version, is there anyway to update?

adamh128
Posts: 31
Joined: March 15 2006, 5:41 AM
Contact:

Re: Orbshield Not Working - orb serial protocol?

Postby adamh128 » February 14 2011, 16:11 PM

Okay, I found a [url=http://www.lamce.coppe.ufrj.br/grva/data/hardware/hw_drivers/spaceorb/orb_protocol.pdf]protocol document[/url] online, so I connected the orb directly to a serial port on my laptop and monitored the data received. The dump below is a few seconds worth of data:


[code]
0x00 00 11 0D 52 A0 D3 F0 E1 E3 E5 E2 E1 EC EC A0 A8 ...R Óðáãåâáìì ¨
0x10 D2 A9 A0 D6 B4 AE B2 B6 A0 B2 B8 AD CA F5 EE AD Ò© Ö´®²¶ ²¸¬Êõî¬
0x20 B9 B6 A0 C3 EF F0 F9 F2 E9 E7 E8 F4 A0 A8 C3 A9 ¹¶ Ãïðùòéçèô ¨Ã©
0x30 A0 B1 B9 B9 B6 FA 0D 45 84 80 C1 44 80 D3 F0 E1 ±¹¹¶ú.E„€ÁD€Óðá
0x40 E3 E5 D7 E1 F2 E5 A1 0D 4B E8 80 80 A3 0D 4B E9 ãå×áòå¡.K耀£.Ké
0x50 80 80 A2 0D 4B E5 80 80 AE 0D 4B E9 80 80 A2 0D €€¢.K倀®.K退¢.
[/code]

So the first packet starts at 0x03 - the reset packet, however it doesn't really match what the protocol document expects (i.e. "R Spaceball (R) Vx.xx dd-mmm-yy Copyright (C) yyyy<xor>").



Does anyone have any experience with the protocols?



I would be grateful if someone with a working orb can try the same and grab me some data to compare against.

adamh128
Posts: 31
Joined: March 15 2006, 5:41 AM
Contact:

Re: Orbshield Not Working :cry:

Postby adamh128 » February 14 2011, 17:34 PM

LOL, I just figured out that for some reason the printable ASCII codes all have the high-bit set (not sure if this is really what is received or was set by the tool I was using). Anyway, allowing for this, the following is my reset packet:


[code]
0x00 52 20 53 70 61 63 65 62 61 6c 6c 20 28 52 29 20 R Spaceball (R)
0x10 56 34 2e 32 36 20 32 38 2d 4a 75 6e 2d 39 36 20 V4.26 28-Jun-96
0x20 43 6f 70 79 72 69 67 68 74 20 28 43 29 20 31 39 Copyright (C) 19
0x30 39 36 96
[/code]

So it looks like it [b]is[/b] working, but now I know my orb does have the old firmware :(



Victor, can you clarify if you expect the OrbShield to work with this version?



Thanks.

vputz
Posts: 341
Joined: March 25 2006, 20:21 PM
Contact:

Re: Orbshield Not Working :cry:

Postby vputz » February 16 2011, 8:43 AM

Adam-



Okay, that's not great, but I suspect the problem isn't the orb, but rather the shield or Arduino. The reason I say this is that if the basicjoystick sketch is getting you a "usb device not recognized" message, that means it's a arduino-shield problem.



Just for easy items... have you tried other usb ports, or plugging in the shield with no orb attached?



Also, can anyone verify the shield works with the uno? (It should, but I don't have one)



I will see what I can learn... may not be able to do much for a few days, but we'll figure something out.



--vputz

adamh128
Posts: 31
Joined: March 15 2006, 5:41 AM
Contact:

Re: Orbshield Not Working :cry:

Postby adamh128 » February 16 2011, 14:28 PM

Ah, just tried a few tests with different USB ports:


[list]
  • [*]Plugging in the shield [b]without[/b] the orb connected gives 'USB Input Device' with 'Installing driver software' which then changes to 'Failed'.

  • [*]Plugging in the shield [b]with [/b]the orb connected gives 'spaceorb/spaceball' with 'Installing driver software' which changes to 'USB Input Device' with 'Failed'.
  • [/list]

    In both cases, if I look in device manager I can see 'USB Input Device' but the icon has a yellow triangle with an exclamation mark - if I open the properties it says 'This device cannot start. (Code 10)'

    vputz
    Posts: 341
    Joined: March 25 2006, 20:21 PM
    Contact:

    Re: Orbshield Not Working :cry:

    Postby vputz » February 16 2011, 14:50 PM

    Hmm... okay... that's almost good but not quite. Dang!



    Tell you what, I found my old Seeeduino and shield, I'll plug around tonight. The way it's behaving sounds almost as if it's registering almost OK, but then waiting too long to send an update or not responding to something and then failing as a device.



    Hmm, dang. "But it works for me!" :(



    I *also* haven't compiled it recently with new versions of the Arduino kit. So maybe I should try that and make sure everything's groovy.



    Really sorry about the confusion. I'm pretty sure it's not your orb, though. Whether it's fixable remains to be seen, but I'm betting we can work something.

    adamh128
    Posts: 31
    Joined: March 15 2006, 5:41 AM
    Contact:

    Re: Orbshield Not Working :cry:

    Postby adamh128 » February 16 2011, 15:02 PM

    [quote]Really sorry about the confusion. I'm pretty sure it's not your orb, though. Whether it's fixable remains to be seen, but I'm betting we can work something.[/quote]
    Thanks, I'd be grateful for the help.



    I just tried it on another machine running XP with the same result - detects it initially then gives up, with device manager reporting the exact same error code.

    vputz
    Posts: 341
    Joined: March 25 2006, 20:21 PM
    Contact:

    Re: Orbshield Not Working :cry:

    Postby vputz » February 22 2011, 9:51 AM

    Adam--



    I can't seem to get an Uno to experiment with (everyone's sold out), but I will have time this week to work on it starting tomorrow afternoon (ie use the most recent version of Arduino, etc). If you could post here what version of Arduino (both the hardware and software) you're using and the option you chose in the Arduino environment (ie what chip you were compiling for) that would be a start.



    I feel like it [i]has[/i] to be a software issue, because if it's connecting and talking such that it lists the right device, it's able to send the right stuff to the USB port. Maybe something's not triggering the interrupt line so that it's not sending updates fast enough, or maybe there's a minor change in the timing on the Uno that's confusing things. Worst case, I'll ship you a "known working" piece of hardware in exchange for yours, which may or may not fix things (Jay still has some trouble).



    Once I'm able to get hold of an Uno, I may be able to find a software solution that ignores the USB port on the shield and just uses the regular Arduino port, which actually could be better in terms of timing, etc. But that's a ways down the road.

    adamh128
    Posts: 31
    Joined: March 15 2006, 5:41 AM
    Contact:

    Re: Orbshield Not Working :cry:

    Postby adamh128 » February 22 2011, 12:57 PM

    [quote]If you could post here what version of Arduino (both the hardware and software) you're using and the option you chose in the Arduino environment (ie what chip you were compiling for) that would be a start.[/quote]
    Not sure what you mean by hardware version (the Uno doesn't have any version number stamped on it), but here's my setup (let me know if I've missed anything):
    [list]
  • Arduino Uno (chip is ATMEGA328P-PU)

    Host OS is Windows 7 Ultimate x64 (also tried on 32-bit XP SP3)

    Uno driver is version 5.1.2600.0 (dated 2007-11-15)

    Windows serial driver usbser.sys is version 6.1.7600.16385

    Arduino IDE version is 0022, configured under [b]Tools->Board->Arduino Uno[/b]

    Orb sketches version 1.0

    Orb library version 1.1

    SpaceOrb firmware version is 4.26

  • [/list]


    [quote]I feel like it has to be a software issue, because if it's connecting and talking such that it lists the right device, it's able to send the right stuff to the USB port. Maybe something's not triggering the interrupt line so that it's not sending updates fast enough, or maybe there's a minor change in the timing on the Uno that's confusing things.[/quote]
    I agree, sounds the most logical reason.



    Are you still in Oxford UK? - if so I'm only half an hour down the road so I could bring you my hardware and we could take a look together :)

    vputz
    Posts: 341
    Joined: March 25 2006, 20:21 PM
    Contact:

    Re: Orbshield Not Working :cry:

    Postby vputz » February 23 2011, 0:03 AM

    > Are you still in Oxford UK? - if so I'm only half an hour down the road so I could bring you my hardware and we could take a look together



    I wish, mate-- sadly, defended my thesis and done (actually that part's not sad, but I really miss the UK; that was a great three years).



    Hmm, OK. I'll fire up my shield-on-seeduino with 22 and see what's up. This is actually sounding familiar, like I had this problem at one point and fixed it, but it's not coming back into my brain. Bleah. Hopefully I can sort it.

    adamh128
    Posts: 31
    Joined: March 15 2006, 5:41 AM
    Contact:

    Re: Orbshield Not Working :cry:

    Postby adamh128 » February 23 2011, 4:35 AM

    [quote]I wish, mate-- sadly, defended my thesis and done (actually that part's not sad, but I really miss the UK; that was a great three years).
    [/quote]

    LOL, I did my MSc at Oxford a few years ago and loved my time there, but like you was glad when my thesis was finished :D

    vputz
    Posts: 341
    Joined: March 25 2006, 20:21 PM
    Contact:

    Re: Orbshield Not Working :cry:

    Postby vputz » February 23 2011, 22:47 PM

    Heh, yep.



    Okay, minor bad news: I connected my old shield and arduino (Seeduino 328) and uploaded the BasicJoystick sketch and it worked like a champ. Scratch one easy idea. Plugging it in without any orb attached ALSO worked fine (it set up the game controller but didn't actually do anything, ie the properties window opened but of course nothing moved).



    Scratch one easy idea. I [i]think[/i] I'm using the latest version of the lib from the site. If I am, I may have to pick up an uno to check further compatibility, but I don't see why that would be any different.



    Don't panic yet, though. I'm persistent.

    adamh128
    Posts: 31
    Joined: March 15 2006, 5:41 AM
    Contact:

    Re: Orbshield Not Working :cry:

    Postby adamh128 » March 06 2011, 7:01 AM

    I just bought a second-hand orb on ebay with firmware version 4.34 - so once it arrives I'll be able to tell for sure if the issue is down to my original orb (and the old firmware) or if it's a problem with the shield.

    adamh128
    Posts: 31
    Joined: March 15 2006, 5:41 AM
    Contact:

    Re: Orbshield Not Working :cry:

    Postby adamh128 » March 06 2011, 12:23 PM

    Does anyone actually know what the difference is in the firmware versions - I'm wondering why the older firmware orbs don't work with the hidsporb drivers?



    I've just been playing with the old libOrb library and it works perfectly well with my older orb.


    Return to “Spaceware Software”

    Who is online

    Users browsing this forum: No registered users and 24 guests