News:

There is a soft-mute function which we use with the commands like "What song is this?" There is one for system volume, one for each of: MediaMonkey, XBMC, iTunes, MediaPortal.

Main Menu

My "Serial" plugin

Started by F1uctus, May 27, 2017, 06:51:54 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

F1uctus

Hello everybody. I developed "Serial" plugin for VoxCommando to communicate with devices connected to PC by USB/Serial/COM port.

-Send and receive messages by Serial ports.
-Upload sketch to your Arduino on the fly.

DOWNLOAD OLD VERSION HERE

Important Note: You need have .NET framework 4.5.2 to be installed

jitterjames

Sounds very useful. Thanks!

I will check it out later today.

jitterjames

I did some quick tests and everything looks good but I don't really have an Arduino project set up right now to test with properly. I will try to get to this but hopefully someone else will try it too.

This plugin might also be useful for those with audio receivers that accept control by serial. In that case it might be necessary to send more than just regular strings. Sometimes they need hex codes that ASCII does not cover.  I handled this in the TCP plugin by parsing strings that look like \x0A in to a byte with decimal value of 10.


Anyway, I'm happy to see people working on plugins for VoxCommando!

F1uctus

#3
Hello again, and meet a plugin update!

OLD VERSION. LATEST UPDATE INCLUDED IN VC 2.2.3.8-B

Changes:


  • HEX codes parser (Ability to send HEX messages on port.)
  • New option to restart Arduino/other device(not tested) when opening the port.
  • New option to connect strings that came from port with interval less than specified in options value.
  • Small translation correction.
  • Some code optimizations and improvements.

Installation:

  • Replace old Serial folder in "VoxCommandoFolder\plugins" with new one.
  • If you do a clean\first install, insert "Serial" folder in "VoxCommandoFolder\plugins", then copy
    "ArduinoUploader.dll" and "IntelHexFormatReader.dll" in "VoxCommandoFolder\dlls"
  • See Wiki How to UNBLOCK the dll

Plugin sources on GitHub

I will be interested to see your suggestions and questions about plugin.

nime5ter

Cool, thanks for posting these updates.

How are you currently using the plugin? Any interesting projects?
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

F1uctus

#5
Quote from: nime5ter on August 05, 2017, 08:40:34 AM
Cool, thanks for posting these updates.

How are you currently using the plugin? Any interesting projects?

I have an Arduino uno r3 and rgb led strip, on which VC send ir codes from arduino ir led.
Also i'm planning to make robo-hand on arduino, and control it by VC.

nime5ter

Quote from: Nikitin Ilya (NAIT) on August 05, 2017, 09:07:49 AM
Also i'm planning to make robo-hand on arduino, and control it by VC.

That sounds fun. I would love to see photos or -- even better -- a video of that, once it is working. (In Russian, of course. ;))
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

F1uctus

Quote from: nime5ter on August 05, 2017, 09:38:20 AM
photos or -- even better -- a video of that
I still design it, haven't details, so it may take a while. But when it 'll be ready i'll try to show results

nime5ter

TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

nime5ter

#9
REMINDER TO ALL:

Once you have downloaded and extracted all the files, you will have to "unblock" all three of the dll files.

See Wiki How to UNBLOCK the dll
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

F1uctus

Thanks for reminder, i didn't know that.
If it cause error, why nobody asked about this at first release ???

nime5ter

#11
It's OK. It is not a problem with your plugin.

It is normal that Windows users have to unblock dll files that we download from the Internet. Usually we include this step in our instructions (for example: http://voxcommando.com/forum/index.php?topic=2706.msg23216#msg23216).

Most experienced users already know that this is a standard requirement. But I mentioned it for people who may not be aware that Microsoft tries to "protect" us by blocking the dll files.  :bonk
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

jitterjames

Sorry. I should have mentioned this extra step when you released the first version.  :bonk

If you want to send me the source code I will include this plugin in the installation of VoxCommando in future versions. Ideally we could have this plugin on GitHub so we can both (all) contribute updates.

In the future I would like to have more open source plugins for VoxCommando.

F1uctus

There is a Serial plugin sources (GitHub): https://github.com/NAITcompany/Serial/
I agree to adding plugin in next VC versions.

jitterjames

OK. Cool.  Thanks.

I am going away for a few days so I probably won't even be able to look at this until Tuesday but I will get in touch with you when I can..