Notifications
Clear all

Generic Serial Help

18 Posts
7 Users
0 Reactions
10.9 K Views
Posts: 59
Topic starter
(@justinj)
Trusted Member
Joined: 16 years ago
[#12689]

I'm using a USB to Serial Relay controller with 8 ports but can't get it to work with the Generic Serial (Or various other serial) plugins. Is it possible to get the source code for genericserial.dll so I can look at it myself, or if someone would be so kind as to make the appropriate changes (Preferred option as I haven't worked much with com devices) I'd really appreciate it.

The device specs:
8 Physical Ports
8 Data
1 Stop
No parity
9600 Baud

Device works with a 3 bit data string:
On: FF 0x 01
Off: FF 0x 00
Where x = Port number (1-8)

Edit: Link for product for those interested http://www.sigma-shop.com/product/8/-usb-eight-channel-relay-controller-rs232-serial-controlled-12v.html


17 Replies
A Marchini
Posts: 426
(@a-marchini)
Reputable Member
Joined: 19 years ago

Should be able to help you out when I get home. The source module might be around here somewhere on the site. Is it in the wiki somewhere?
You device doesn't sound too hard to support, in a simple way. It will take more time to create a full interface which allows multiple boards.

Tony M.


Reply
Posts: 59
Topic starter
(@justinj)
Trusted Member
Joined: 16 years ago

I had a search for the source code to the dll but couldn't find it (I figured it wouldn't be too much of a challenge for me to work out how to change it to work with my card). If you can do one or modify it for me that'd be great.
If your making it from scratch, maybe you should look at making it a generic-generic serial plugin by adding the serial settings (Baud, parity and the like) to the options, as well as having a string that people can people could just populate with variables?

Eg. for mine you could have it so the custom string would look something like:

On Sequence
FF %CN% 01

Off Sequence
FF %CN% 00

Where %CN% would be automatically populated with a x digit channel number (Also specified in the plugin options to allow for an all purpose serial plugin) when the DLL is executed.


Reply
mheuer
Posts: 197
(@mheuer)
Estimable Member
Joined: 17 years ago

Hi,

I don't remember the location for any source, but I have some serial plug-in code laying around though.

Nothing fancy like the Generic Serial plug-in, but it might be a start, and can configure serial settings.
I've made the changes for you, but I don't know if it will work for you.

Hope that helps,
Mike.


Reply
A Marchini
Posts: 426
(@a-marchini)
Reputable Member
Joined: 19 years ago
mheuer wrote:Hi,

I don't remember the location for any source, but I have some serial plug-in code laying around though.

Hope that helps,
Mike.

Ok Cool...
There is source I think somewhere. There is also a couple of development projects tutorials I created that show you how to start to make a plug-in.

Tony M.


Reply
Posts: 59
Topic starter
(@justinj)
Trusted Member
Joined: 16 years ago
A Marchini wrote:Ok Cool...
There is source I think somewhere. There is also a couple of development projects tutorials I created that show you how to start to make a plug-in.

Tony M.

I think I could manage modifying a bit of code to change the data sent, but I don't know C and couldn't manage writing a plugin from scratch.

I'll try Mike's one and see how it goes when I get home from work.


Reply
mheuer
Posts: 197
(@mheuer)
Estimable Member
Joined: 17 years ago
A Marchini wrote:Ok Cool...
There is source I think somewhere. There is also a couple of development projects tutorials I created that show you how to start to make a plug-in.

Tony M.

Oops, you're right, I thought there was some code, but I wasn't sure of the location.
I just found the wiki page here also.

Your tutorial and tips posted were very nice, they helped a lot when I was learning about making plug-ins.
They are very helpful if you're looking to try any Vixen development. 🙂

Mike.


Reply
Posts: 59
Topic starter
(@justinj)
Trusted Member
Joined: 16 years ago

You rock Mike!!! (It works)

Next step I'll try and get my Arduino working too for extra outputs 🙂


Reply
mheuer
Posts: 197
(@mheuer)
Estimable Member
Joined: 17 years ago

Cool!

Glad to hear you got it working. 🙂


Reply
Posts: 50
(@scott130377)
Trusted Member
Joined: 15 years ago

Hi, if mheuer reads this is there any chance of posting the .zip file again as the link above does not work.
Thanks


Reply
Page 1 / 2
Share: