Page 4 of 4

Re: A possible plugin for basic Serial Communications purpos

PostPosted: Sun Oct 12, 2014 8:35 am
by dec
Hello,

A new release of the plugin is available this time including the installer and integrated file:

http://www.neoplugins.com/temp/npComp.zip

Please, carefully read the plugin help file. I begin to think that we can deal, for example, with the "rare" character in various ways, playing with the plugin options and actions. In fact the proposed solution can work: we need to take care about the possible control characters, and, also understand that we can receive one or more characters, in other words, we can receive not the whole string which can expected. Probably a better way can be does, as I say before, playing with the multiple options and actions of the plugin, and this is because I recommend carefully to read the plugin documentation.

Re: A possible plugin for basic Serial Communications purpos

PostPosted: Mon Oct 20, 2014 9:34 am
by michi
Hi dec, I'm sorry for the delay but work lag me.
Anyway I've just tested the plugin with the powerscan using onEvent action and it seems that works fine!

When publication start:

Code: Select all
npCompCreate "[ID_Com]"
npCompOpenPort "[ID_Com]" "COM3" "[result]"
npCompSetOptions "[ID_Com]" "BaudRate=br9600;CustomBaud=0;InputBuffer=1024;OutputBuffer=1024;DataBits=dbEight;DiscardNull=False;EventChar=[#13];ControlDTR=dtrDisable;ControlRTS=rtsDisable;DSRSensitivity=False;OutCTSFlow=False;OutDSRFlow=False;TxContinueOnXoff=False;XOnChar=[#17];XoffChar=[#19];XonXoffIn=False;XonXoffOut=False   ;ParityBits=prNone;ParityCheck=False;ParityReplace=False;ParityReplaceChar=[#0];TimeoutReadInterval=-1;TimeoutReadTotalConstant=0;TimeoutReadTotalMultiplier=0;TimeoutWriteTotalConstant=1000;TimeoutWriteTotalMultiplier=100;StopBits=sbOneStopBit" ""
npOnCompRxFlag "[ID_Com]" "test" "[test]" "[eventResult]"


When publication receive [#13] character:

Code: Select all
:test
npCompInputCount "[ID_Com]" "[count]"
npCompReadString "[ID_Com]" "[count]" "[event]"
ListBoxAddItem "barcodeList" "0" "Barcode:[event]"
Return


I've read tens of barcodes very fast and no error has occured!

Re: A possible plugin for basic Serial Communications purpos

PostPosted: Mon Oct 20, 2014 9:53 am
by dec
Hello,

Thanks for the test michi. Glad to know finally you got it. Just a consideration: into the subroutine "test", the "[test]" variable contains the input count which you can use then in the read action, so, in principle you no need to call "npCompInputCount" here. Just try it. Thanks again for your tests. ;)

Re: A possible plugin for basic Serial Communications purpos

PostPosted: Mon Oct 20, 2014 1:00 pm
by ebear
Hello David, Michi and the rest,

Also on my side my work didn't give me a lot of spare time to do a lot of testing. ( somehow a person has to sleep also :D )
Next weekend I expect to have some more time.

My problem is a little bit different from Michi's, I have to receive a lot of data per second. On the moment I have it quit stable, but some times a "rare character" comes in and this gives a failure in the npScop window.
But no worry, we will find a way.... The plugin has to many advances...

Regards,


Eric

Re: A possible plugin for basic Serial Communications purpos

PostPosted: Tue Oct 21, 2014 1:27 am
by dec
Hello to all,

Eric, don't worry and take the time you need, of course. Remember you can play with different options in the plugin to set various "control chars". And anyway remember you can receive some "control chars" from the device, so you need to take care about it and filter (use or not) in order to work.

Re: A possible plugin for basic Serial Communications purpos

PostPosted: Tue Nov 25, 2014 11:07 am
by michi
Hi dec, time goes but I'm still here! Today I've a very good news! Finally I can receive and send data to my Arduino! So I can tell that for my work your plugin works very well! I've still some problems with strange characters but it's not a problem difficult to solve! Now i'd like to start to write code for real use! So when we can buy official version of the plugin?

Re: A possible plugin for basic Serial Communications purpos

PostPosted: Tue Nov 25, 2014 11:35 am
by dec
Hello,

michi wrote:Hi dec, time goes but I'm still here! Today I've a very good news! Finally I can receive and send data to my Arduino! So I can tell that for my work your plugin works very well! I've still some problems with strange characters but it's not a problem difficult to solve! Now i'd like to start to write code for real use! So when we can buy official version of the plugin?


Thanks for your interest and your tests! Certainly the plugin is published sometime ago: other customers also test the plugin with various hardware devices (Arduino boards and Barcodes scanners if I can remember well right now) and also found that work like expected. You can get the plugin right now in their webpage:

http://www.neoplugins.com/?plugin/npcomp

And if you want to purchase a plugin license can doing it from the NeoPlugins Store:

http://www.neoplugins.com/?store

If you need more information don't hesitate to tell me.

Re: A possible plugin for basic Serial Communications purpos

PostPosted: Tue Nov 25, 2014 11:55 am
by michi
Hi dec, yes. I also tested it with barcode scanners when it was still a beta and it works perfectly! I've just seen that you have published it on your site. With other interesting plugins I think that I will make a kind Christmas present for me in December!

Re: A possible plugin for basic Serial Communications purpos

PostPosted: Tue Nov 25, 2014 12:22 pm
by dec
Hello,

michi wrote:Hi dec, yes. I also tested it with barcode scanners when it was still a beta and it works perfectly! I've just seen that you have published it on your site. With other interesting plugins I think that I will make a kind Christmas present for me in December!


Thanks michi!