Author Topic: My "Serial" plugin  (Read 6793 times)

0 Members and 1 Guest are viewing this topic.

F1uctus

  • Jr. Member
  • **
  • Posts: 6
  • Karma: 2
    • View Profile
    • GitHub profile
My "Serial" plugin
« on: May 27, 2017, 06:51:54 AM »
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
« Last Edit: August 31, 2017, 04:55:10 PM by Nikitin Ilya (NAIT) »

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: My "Serial" plugin
« Reply #1 on: May 27, 2017, 08:40:45 AM »
Sounds very useful. Thanks!

I will check it out later today.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: My "Serial" plugin
« Reply #2 on: May 27, 2017, 11:34:00 PM »
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

  • Jr. Member
  • **
  • Posts: 6
  • Karma: 2
    • View Profile
    • GitHub profile
Re: My "Serial" plugin
« Reply #3 on: August 04, 2017, 08:05:39 PM »
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.
« Last Edit: September 14, 2017, 12:46:17 PM by Nikitin Ilya (NAIT) »

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 1999
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: My "Serial" plugin
« Reply #4 on: August 05, 2017, 08:40:34 AM »
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

  • Jr. Member
  • **
  • Posts: 6
  • Karma: 2
    • View Profile
    • GitHub profile
Re: My "Serial" plugin
« Reply #5 on: August 05, 2017, 09:07:49 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.
« Last Edit: August 05, 2017, 09:12:20 AM by Nikitin Ilya (NAIT) »

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 1999
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: My "Serial" plugin
« Reply #6 on: August 05, 2017, 09:38:20 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

  • Jr. Member
  • **
  • Posts: 6
  • Karma: 2
    • View Profile
    • GitHub profile
Re: My "Serial" plugin
« Reply #7 on: August 05, 2017, 10:26:02 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

  • Administrator
  • Hero Member
  • *****
  • Posts: 1999
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: My "Serial" plugin
« Reply #8 on: August 05, 2017, 10:36:17 AM »
Great, thanks again.
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

  • Administrator
  • Hero Member
  • *****
  • Posts: 1999
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: My "Serial" plugin
« Reply #9 on: August 05, 2017, 11:47:14 AM »
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
« Last Edit: August 14, 2017, 09:40:11 AM by jitterjames »
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

  • Jr. Member
  • **
  • Posts: 6
  • Karma: 2
    • View Profile
    • GitHub profile
Re: My "Serial" plugin
« Reply #10 on: August 05, 2017, 12:58:56 PM »
Thanks for reminder, i didn't know that.
If it cause error, why nobody asked about this at first release ???

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 1999
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: My "Serial" plugin
« Reply #11 on: August 05, 2017, 02:00:32 PM »
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
« Last Edit: August 05, 2017, 03:02:33 PM by 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)

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: My "Serial" plugin
« Reply #12 on: August 05, 2017, 04:26:33 PM »
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

  • Jr. Member
  • **
  • Posts: 6
  • Karma: 2
    • View Profile
    • GitHub profile
Re: My "Serial" plugin
« Reply #13 on: August 05, 2017, 07:49:16 PM »
There is a Serial plugin sources (GitHub): https://github.com/NAITcompany/Serial/
I agree to adding plugin in next VC versions.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: My "Serial" plugin
« Reply #14 on: August 05, 2017, 10:23:53 PM »
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..