Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / talking with USB / COM

Author
Message
simonuk74
23
Years of Service
User Offline
Joined: 3rd Nov 2002
Location:
Posted: 8th Jun 2010 16:40
is there a way ( or a plugin ) that enables DBP to talk to a servo controller through USB or COM ?

The controllers I`m planning on using are the Pololu Maestro devices.

Can I use DBP to talk directly to these? instead of using the supplied software - as the supllied SW can only handle one controller at a time - I could have up to 8 I need to use simultaneously.
The device does come with a `.inf` file, as its driver as well as the software ( written in C# ).

any ideas?
TIA

Simon
Van B
Moderator
23
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 8th Jun 2010 17:25
I'm sure IanM wrote a plugin for communicating with com ports - in which case you might be able to setup a virtual COM port through your network settings for each controller.

I don't know for sure, I've never tried in DBPro, in PureBasic and VB though it's quite straightforward - so if there is such a plugin, it should be equally straightforward, as it's probably using the same 'protocol'.


Health, Ammo, and bacon and eggs!
simonuk74
23
Years of Service
User Offline
Joined: 3rd Nov 2002
Location:
Posted: 8th Jun 2010 17:42
Thanks Van B,

any idea where I can find the plugin, or would it be a general google search ?

As for VB or PB, I have considered the option of learning C# ( as thats what the device software is written in ), but I really do have a prefrerence to use DBP.

Simon
sladeiw
17
Years of Service
User Offline
Joined: 16th May 2009
Location: UK
Posted: 8th Jun 2010 17:48
Cattlerustler wrote an excellent plugin for accessing multiple serial ports, link is in his post from following thread:

http://forum.thegamecreators.com/?m=forum_view&t=108446&b=1
Van B
Moderator
23
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 8th Jun 2010 17:52
Cheers Sladeiw - I tend to assume IanM these days when it comes to plugins

Good luck, remember to post about it once you get it working, sounds like an interesting project.


Health, Ammo, and bacon and eggs!

Login to post a reply

Server time is: 2026-07-25 16:20:04
Your offset time is: 2026-07-25 16:20:04