HobbyKing.com New Products Flash Sale
Reply
Thread Tools
Old Aug 28, 2010, 01:45 AM
Registered User
VasMan's Avatar
@Home
Joined Jan 2007
1,410 Posts
Discussion
Castle Link and Linux

I have lived Windows free for a while now, with the exception of XP on VirtualBox, but that doesn't stop me from wanting to run some of my favorite Windows utilities in Linux (currently 64-bit Ubuntu 10.04). Lately I've been banging my head against the wall with a Spektrum AR6400 and a 1S brushless ESC, and sure wished that Castle Creations would have a 1S ESC that was compatible with Castle Link, but that's a different story, however it's what led me back to this forum and the thought of running Castle Link in Linux (a little break from my other issue).

To make a long story short, here's how you can get Castle Link, the application, to run in Ubuntu (I'm sure other mainstream & supported Linux distributions will work also).
  1. Make sure you have Wine installed (I'm currently using Wine 1.2).
  2. Using winetricks download and install packages:
    corefonts, dotnet20, mdac28 and jet40
    example: ./winetricks corefonts dotnet20 mdac28 jet40
  3. Copy the contents of a Windows CC Link install from C:\Program Files\Castle Creations\Castle Link to some folder accessible by Wine.
  4. Now you should be able to run CastleLink.exe from Wine and see the application start up (desktop image attached).
    ex. wine CastleLink.exe

Keep in mind that the USB portion is NOT yet working, only the software. I will play with USB later, but tonight I'm done.

Enjoy,

Vas
VasMan is offline Find More Posts by VasMan
Reply With Quote
Sign up now
to remove ads between posts
Old Aug 28, 2010, 04:52 AM
Registered User
Kihie, HI
Joined Oct 2009
48 Posts
Good info. I found the quickest way getting the CastleLink software running from Linux was inside a Windows VM using VirtualBox. It's not ideal, but saves me from having to reboot unnecessarily.
wolfdown is offline Find More Posts by wolfdown
Reply With Quote
Old Aug 28, 2010, 07:25 AM
RIP Ric
Andy W's Avatar
Marietta, GA
Joined Jun 1999
43,312 Posts
I'll be curious to see if you can get the USB working. Gives me hope that I can do the same on the Mac..
..a
Andy W is offline Find More Posts by Andy W
Reply With Quote
Old Aug 28, 2010, 11:25 AM
Registered User
VasMan's Avatar
@Home
Joined Jan 2007
1,410 Posts
At this time I wouldn't hold my breath on getting USB to work. There has been a series of USB patches for older Wine versions (1.1.2x and 1.2-rc4), but none are up to date with the latest releases (1.2 and 1.3.1). If CC Link was serial (COM port) based, then most likely it would work.

For now I'm just happy to see a .NET application running under Wine. That was a huge hurdle the developers had to overcome, so big kudos to them for that accomplishment. There are rumors that the current development version of Wine (1.3.x) will have improved USB support, so there is hope on the horizon.

Vas
VasMan is offline Find More Posts by VasMan
Reply With Quote
Old Aug 29, 2010, 09:56 AM
Castle Support
Clintstone's Avatar
USA, GA, Statesboro
Joined Oct 2007
962 Posts
Quote:
Originally Posted by Andy W View Post
I'll be curious to see if you can get the USB working. Gives me hope that I can do the same on the Mac..
..a
I am running on Mac with Virtual BOX from Sun. It is open source. I have windows XP on one machine and windows 7 on another. It was easy to do and I actually us w7 for many other things. Like having 2 computers at once.
Clintstone is offline Find More Posts by Clintstone
Reply With Quote
Old Aug 30, 2010, 04:18 AM
Registered User
RS Rogers's Avatar
Clyde N.C.
Joined Oct 2003
519 Posts
Quote:
Originally Posted by Andy W View Post
I'll be curious to see if you can get the USB working. Gives me hope that I can do the same on the Mac..
..a
Yup - I use Virtual Box & run windows 7 on my Mac & it works like a charm.
Using the Castle Link has been a breeze & I can stay PC free!!


Steve
RS Rogers is offline Find More Posts by RS Rogers
Reply With Quote
Old Sep 01, 2010, 06:58 AM
RIP Ric
Andy W's Avatar
Marietta, GA
Joined Jun 1999
43,312 Posts
I own VMWare. I have no interest in running Windows on my Mac..
..a
Andy W is offline Find More Posts by Andy W
Reply With Quote
Old Oct 24, 2010, 08:05 PM
Registered User
VasMan's Avatar
@Home
Joined Jan 2007
1,410 Posts
Just a quick update. I haven't quite given up (at least not yet) on getting USB and Castle Link in particular to work with Wine. Thanks to patches from Alexander Morozov I got Wine 1.3.4 patched, compiled and working (at least not giving any error messages) in a clean Ubuntu 9.10 VBox session, but after banging my head against the wall all day (at least it's raining outside), I am stuck for now on the following error:

fixme:ntoskrnl:__regs_ExAcquireFastMutex 0x855ac0: stub
wine: Unhandled page fault on read access to 0x00000000 at address 0x850b6d (thread 0036), starting debugger...

CC Link still runs, just no USB drivers are loaded (ARGH!!! MS and their HID drivers)...

Vas
VasMan is offline Find More Posts by VasMan
Reply With Quote
Old Oct 26, 2010, 01:35 PM
Castle's Chaos Corner
Bernie Wolfard's Avatar
Olathe, KS (next to the Castle)
Joined Jun 2001
1,649 Posts
The Link runs as a HID, not a USB controller. Seems like getting HID to work would be more productive than getting the driver to work.

The 1s MMPro ESC is linkable with any current version of the software.

Bernie
Bernie Wolfard is offline Find More Posts by Bernie Wolfard
Reply With Quote
Old Oct 28, 2010, 12:39 AM
Registered User
VasMan's Avatar
@Home
Joined Jan 2007
1,410 Posts
Quote:
Originally Posted by Bernie Wolfard View Post
The Link runs as a HID, not a USB controller. Seems like getting HID to work would be more productive than getting the driver to work.
Interesting. Why does it show up as a USB device in both Linux and Windows?
Code:
Bus 002 Device 005: ID 10c4:6083 Cygnal Integrated Products, Inc.
Code:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\Vid_10c4&Pid_6083]

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\Vid_10c4&Pid_6083\5&18f54cb7&0&1]
"DeviceDesc"="USB Human Interface Device"
"LocationInformation"="Castle Link"
"Capabilities"=dword:00000084
"UINumber"=dword:00000000
"HardwareID"=hex(7):55,53,42,5c,56,69,64,5f,31,30,63,34,26,50,69,64,5f,36,30,38,33,26,\
  52,65,76,5f,30,30,30,30,00,55,53,42,5c,56,69,64,5f,31,30,63,34,26,50,69,64,\
  5f,36,30,38,33,00,00
"CompatibleIDs"=hex(7):55,53,42,5c,43,6c,61,73,73,5f,30,33,26,53,75,62,43,6c,61,73,73,5f,\
  30,30,26,50,72,6f,74,5f,30,30,00,55,53,42,5c,43,6c,61,73,73,5f,30,33,26,53,\
  75,62,43,6c,61,73,73,5f,30,30,00,55,53,42,5c,43,6c,61,73,73,5f,30,33,00,00
"ClassGUID"="{745A17A0-74D3-11D0-B6FE-00A0C90F57DA}"
"Class"="HIDClass"
"Driver"="{745A17A0-74D3-11D0-B6FE-00A0C90F57DA}\\0000"
"Mfg"="(Standard system devices)"
"Service"="HidUsb"
"ConfigFlags"=dword:00000000
"ParentIdPrefix"="6&9268817&0"
VasMan is offline Find More Posts by VasMan
Reply With Quote
Old Nov 02, 2010, 01:22 AM
Registered User
VasMan's Avatar
@Home
Joined Jan 2007
1,410 Posts
I think I'm getting close...

Attached are two screenshots:
  1. First screenshot (Screenshot-CC_USB.jpg) shows the USB interface (CC Link) being recognized.

    Code:
    DbgPrint says: USBINT - Configuring device from Castle Creations Inc.
    DbgPrint says: USBINT - Product is Castle Link
  2. The other is of CastleLink displaying "USB Connection Status" as green!! The status is very intermittent, only lasts for about a second and keeps going offline (switching between red and green).
In case you're wondering, these screenshots were taken from an Ubuntu 9.10 32-bit virtual machine (running via VirtualBox) on an Ubuntu 10.04 64-bit host.

I'm done for today, more to come later - I hope.

Vas
VasMan is offline Find More Posts by VasMan
Reply With Quote
Old Nov 03, 2012, 09:25 AM
Registered User
Joined Nov 2012
2 Posts
Hello

I have several old laptops that don't run well with recent windows, so I use linux on them. One is in my garage and another in my rc workshop.

It would be nice to be able to use caste link with them. Did you make any further progess? I know this thread is two years old, but I hope you're still around.
thedoginthewok is offline Find More Posts by thedoginthewok
Reply With Quote
Reply


Thread Tools

Similar Threads
Category Thread Thread Starter Forum Replies Last Post
For Sale NIP Castle Link and Field Link Vintauri Aircraft - General - Miscellaneous (FS/W) 1 Aug 21, 2010 01:51 PM
Discussion Castle Link USB adapter or Field Link tuning card rampman Gilbert Quiet Flyers (Arizona) 6 Jul 28, 2010 03:31 PM
For Sale Castle link coupon for free castle link adapter Amko Aircraft - Electric - Power Systems (FS/W) 3 Jul 24, 2010 03:35 PM
Sold Castle Field Link/Castle Link, new $25 shipped vespa Aircraft - Electric - Power Systems (FS/W) 5 Jun 11, 2010 01:48 PM
Sold Castle Creations Castle Link/PHX-Link DavidJ Aircraft - Electric - Power Systems (FS/W) 0 Sep 08, 2009 09:48 PM