Author Topic: Need USB Virtual Serial Communication with Game Controller  (Read 3592 times)

0 Members and 1 Guest are viewing this topic.

Offline ModMobTopic starter

  • Beginner
  • *
  • Posts: 5
  • Helpful? 0
Need USB Virtual Serial Communication with Game Controller
« on: September 24, 2011, 10:51:17 AM »
Hello,

I have a setup where I’m using MATLAB for some computing on my PC; then I send and receive information with my three mobile robots via an XBee point to multi-point network.  This part works, because the coordinator XBee appears as a virtual serial COM on my PC.  I also want to use a USB game controller, but MATLAB can only communicate with a USB device if it appears as a virtual serial COM port.

So, I need a gamepad or gamepad driver that can emulate a serial port, but I haven’t found a quick solution.  I have Logitech F310 gamepad and it doesn’t support this.  I would use any gamepad that has two joysticks and at least 6 other inputs.
Does anyone know if any of the common USB gamepads appear as a virtual serial COM on your PC?

Any info helps...

Cheers,
Mod

Offline rbtying

  • Supreme Robot
  • *****
  • Posts: 452
  • Helpful? 31
Re: Need USB Virtual Serial Communication with Game Controller
« Reply #1 on: September 24, 2011, 11:16:31 AM »
Have you looked into this? I find it hard to believe that Matlab has no support for USB joysticks.

As far as I know, no USB joystick/gamepad will have a usb-to-serial interface, simply because the USB specification already defines a joystick interface, which is generally preferred.

Offline ModMobTopic starter

  • Beginner
  • *
  • Posts: 5
  • Helpful? 0
Re: Need USB Virtual Serial Communication with Game Controller
« Reply #2 on: September 24, 2011, 11:46:08 AM »
No I hadn't.  Looks promising.  My assumption about MATLAB not supporting USB is from:

http://www.mathworks.com/support/solutions/en/data/1-195HX/?solution=1-195HX

I'm no expert, so maybe there is a straight forward way. I have heard of some support for specific types of joysticks and more complicated solutions.  The controller interfacing is something I need for my research, but not the topic, so I'm looking for a quick and easy way to do it.

Thanks for your advice. 

 

SMF spam blocked by CleanTalk