Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright

Problem with Comport RS232 Send

For general discussion related FlowStone

Problem with Comport RS232 Send

Postby Megan » Mon Sep 26, 2016 6:48 pm

I've run into an issue with the setup of a com port that I'm using to communicate with an RS232 flow meter. I can receive data from the flow meter via FlowStone using 13 (carriage return) as my RxTerminator. The problem is that when I try to send using the same com port setup, I get no return response from the flow meter. I know that the flow meter is looking for a carriage return to execute a command (A<CR>, for example, would read the flow at meter A), so I'm assuming that this is an issue with the carriage return bit, but I'm new to FlowStone and I'm not sure what's going on. I've tried 'A<CR>' and 'A' in the Data String to send, but neither works. I also tried removing the RxTerminator all together but that did not work either. Any suggestions on how I might approach this? Unfortunately the flow meter does not allow the user to change the line terminating character to anything other than a carriage return.
Attachments
Pressure Cell Injector 001.fsm
(26.63 KiB) Downloaded 826 times
Megan
 
Posts: 2
Joined: Mon Sep 26, 2016 6:18 pm

Re: Problem with Comport RS232 Send

Postby acg2010 » Sun Oct 02, 2016 5:48 pm

@Megan
I had a similar problem with the RS232 Comport communication in my On-Board Diagnostic (OBD-II) vehicle project. It had to do with sending the line terminus as string or ASCII as I recall. The discussion is here if you want to read and see if any of it helps. As I only have the free version of Flowstone, I can't check your schematic. Good luck with your project.

viewtopic.php?f=2&t=2886&p=15568#p15568

viewtopic.php?f=72&t=2934

-acg2010
acg2010
 
Posts: 80
Joined: Tue Oct 05, 2010 3:18 am

Re: Problem with Comport RS232 Send

Postby Megan » Mon Oct 03, 2016 1:17 pm

Thanks very much, it looks like that was the problem after all. I translated the command sent to the flow meter to hex and set the 'Hex' option to 'true' on the comport. The output then came out as hex so I just added an object to convert it back to an ascii string, works like a charm.
Megan
 
Posts: 2
Joined: Mon Sep 26, 2016 6:18 pm

Re: Problem with Comport RS232 Send

Postby acg2010 » Wed Oct 05, 2016 10:29 pm

Glad you got it sorted out. This website has some great information on logging and connection of sensors and measurement equipment as well as some good software tools for com port debugging/communications:

http://www.windmill.co.uk/
acg2010
 
Posts: 80
Joined: Tue Oct 05, 2010 3:18 am


Return to General

Who is online

Users browsing this forum: Google [Bot] and 97 guests