News:

  • July 28, 2026, 10:22:18 PM

Login with username, password and session length

Author Topic: Stream In / Stream Out Protocols using serial interface ( ASCII)  (Read 17211 times)

Dmelnyk

  • Newbie
  • *
  • Posts: 6
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

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6169
  • Yes Pinky, Do-more will control the world!
Re: Stream In / Stream Out Protocols using serial interface ( ASCII)
« Reply #1 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.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

rlp122

  • Sr. Member
  • ****
  • Posts: 92
Re: Stream In / Stream Out Protocols using serial interface ( ASCII)
« Reply #2 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.

Dmelnyk

  • Newbie
  • *
  • Posts: 6
Re: Stream In / Stream Out Protocols using serial interface ( ASCII)
« Reply #3 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

plcnut

  • Hero Member
  • *****
  • Posts: 814
    • premiersi.com
Re: Stream In / Stream Out Protocols using serial interface ( ASCII)
« Reply #4 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.
Circumstances don't determine who we are, they only reveal it.

~Jason Wolthuis
Premier Systems Integration, LLC
http://premiersi.com

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6169
  • Yes Pinky, Do-more will control the world!
Re: Stream In / Stream Out Protocols using serial interface ( ASCII)
« Reply #5 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
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

Dmelnyk

  • Newbie
  • *
  • Posts: 6
Re: Stream In / Stream Out Protocols using serial interface ( ASCII)
« Reply #6 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

Dmelnyk

  • Newbie
  • *
  • Posts: 6
Re: Stream In / Stream Out Protocols using serial interface ( ASCII)
« Reply #7 on: August 01, 2013, 11:11:58 AM »
Everything is up to date.

plcnut

  • Hero Member
  • *****
  • Posts: 814
    • premiersi.com
Re: Stream In / Stream Out Protocols using serial interface ( ASCII)
« Reply #8 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:
Circumstances don't determine who we are, they only reveal it.

~Jason Wolthuis
Premier Systems Integration, LLC
http://premiersi.com

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3837
    • Host Engineering
Re: Stream In / Stream Out Protocols using serial interface ( ASCII)
« Reply #9 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