Host Engineering Forum

General Category => Do-more CPUs and Do-more Designer Software => Topic started by: Dmelnyk on July 31, 2013, 03:14:47 PM

Title: Stream In / Stream Out Protocols using serial interface ( ASCII)
Post by: Dmelnyk on July 31, 2013, 03:14:47 PM
I am using a H2-SERIO.  RS232 - RJ12 to 9 pin SubD. I am having trouble communicating with an external device.  I can successfully send a command to the device but not receive.  I have checked my wiring and everything is correct.  This is my first time working with these commands and I don't know where to start. Thanks
Title: Re: Stream In / Stream Out Protocols using serial interface ( ASCII)
Post by: BobO on July 31, 2013, 03:26:52 PM
Take a look at the DirectNet Server project in the examples section. It is a good example of the preferred way to do serial comms.
Title: Re: Stream In / Stream Out Protocols using serial interface ( ASCII)
Post by: rlp122 on July 31, 2013, 03:29:02 PM
Typical issues are with the length or the delimiter characters.  I use both as a rule in case the com signal gets garbled with noise.
Title: Re: Stream In / Stream Out Protocols using serial interface ( ASCII)
Post by: Dmelnyk on August 01, 2013, 09:15:59 AM
I have tried to view the file attached but it does not want to view properly. Thanks
Title: Re: Stream In / Stream Out Protocols using serial interface ( ASCII)
Post by: plcnut on August 01, 2013, 10:33:56 AM
The example was loaded on your computer when you installed DMD.

To open it:
In DMD click File >> Open Project >> Examples Folder >> Do-more Simulator folder >> DirectNetServer.
Title: Re: Stream In / Stream Out Protocols using serial interface ( ASCII)
Post by: BobO on August 01, 2013, 10:45:13 AM
The example was loaded on your computer when you installed DMD.

To open it:
In DMD click File >> Open Project >> Examples Folder >> Do-more Simulator folder >> DirectNetServer.

Oh...do we install those? Cool. I've honestly never looked... :o
Title: Re: Stream In / Stream Out Protocols using serial interface ( ASCII)
Post by: Dmelnyk on August 01, 2013, 11:07:11 AM
I do not have Direct Net Server under Do-more simulator folder, only batch and PID.
I will make sure I have the latest version.  Thanks
Title: Re: Stream In / Stream Out Protocols using serial interface ( ASCII)
Post by: Dmelnyk on August 01, 2013, 11:11:58 AM
Everything is up to date.
Title: Re: Stream In / Stream Out Protocols using serial interface ( ASCII)
Post by: plcnut on August 01, 2013, 11:45:02 AM
The example was loaded on your computer when you installed DMD.

To open it:
In DMD click File >> Open Project >> Examples Folder >> Do-more Simulator folder >> DirectNetServer.

Oh...do we install those? Cool. I've honestly never looked... :o

Maybe I lied!  :o
I don't remember putting it in that folder...
But either way, I have attached it here:
Title: Re: Stream In / Stream Out Protocols using serial interface ( ASCII)
Post by: franji1 on August 01, 2013, 12:01:37 PM
The non-simulator examples are on the example forum that is a child forum to the Do-more forum (http://forum.hosteng.com/index.php/board,20.0.html).  The DirectNET example is here
http://forum.hosteng.com/index.php/topic,1014.0.html