Serial port transmits, but doesnt receive

Mar 17, 2013 at 6:01pm

Serial port transmits, but doesnt receive

I can communicate to my serial port device using mttty or hyperterm, but maxplus serial object only transmits. The serial object reports available COM devices successfully, but getbaud, getdtr, and monitors never show that the serial object receives any data or status. I’ve used inspector to enable buffering down to 1 char, I’ve checked the DTR setting (works fine on mttty, hyperterm), and tried different baudrates to no avail.

Here’s the patch:

– Pasted Max Patch, click to expand. –
#67150
Mar 17, 2013 at 6:29pm

did you send bangs to your serial object ?
try to connect a [metro] to your inlet of the [serial] object.

#241649
Mar 17, 2013 at 7:16pm

As kugelschreiber implies, serial is a polled object. You need to bang it at a fairly quick rate to get it to report the data that has been gathered. The help patcher could be clearer about this.

#241650
Mar 17, 2013 at 8:33pm

You are right–I didnt catch that. I assumed a serial port would output received data as it arrived and did not read the help carefully enough. Banging a polling interval (metro) seems kind of odd but it appears to work. I’ll have to increase the buffer size since I’m running the interface at 115200 (around 10K chars/sec) but metro appears limited to once per millisec. I might try some things like using uzi to increase this rate since the dumped files are big.

Thanks!
Bob

#241651
Mar 17, 2013 at 10:22pm

uzi won’t help here, I don’t think. Increasing the buffer, and using a fast polling rate are probably your best bet.

#241652

You must be logged in to reply to this topic.