: I should have been more clear, I am using a 232Max to convert RS-232 to TTL. That said, it is certainly possible that the converter isn't doing a good enough job. Connections go GND->GND, VCC->5volt, meter RX -> leo TX, meter TX -> leo RX.
The pH meter is a JENCO 6230N. To request data you send the ASCII string "S00" (s-null-null) and it immediately responds with the state of the machine. The meter expects 9600,N,8,1 RS-232. No handshake. I've connected the meter to a port monitor and have been able to query the meter successfully that way. Retrolefty
: I am forgetting if this meter is similarly sensitive to CR vs. LF vs CR+LF. I believe it is based on playing with the port monitor but I can confirm (it lets you specify line ending characters). I tried print and println in my code, though. print with escape characters should give me the ability to control the end of line characters? (\n and \r). I've tried print with \n, \r, \r\n, and \n\r at the end with no luck.Afremont
: The code I posted is basically a mashup of every serial com example I could find. The data I care about will come through the pHmeter serial. The hardware serial will be used for recording what comes from the meter. So it sounds like I can just ditch serial event. I will look at AltSoftSerial.
A dumb question here, but if I plug the hardware TX into the software RX (digital pin 1 into digital pin 9) and do
Should I not get some response? Because even this does not work on my board.
Thanks for the feedback so far!