Serial port transmits, but doesnt receive

agemoz's icon

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.

Max Patch
Copy patch and select New From Clipboard in Max.

Here's the patch:

kugelschreiber's icon

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

Chris Muir's icon

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.

agemoz's icon

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

Chris Muir's icon

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