31250 baud rate option

Hey, would it be possible to add 31250 to the selectable baud rate list of the serial monitor? That is, of course, the speed that MIDI uses. It would be super nice to not have to use a 3rd party software app to monitor data going out of the serial port at 31250 baud if possible.

-Steve

I tried that at one point, but something (perhaps RXTX - the serial library for Java that we're using) rejected it as an invalid baud rate. Have you gotten third party software to successfully receive / send data at that baud rate?

Depends of your box.
I can see 31250bps datas coming from my arduino with my linux box (thank U open world :slight_smile: ).
If you are linux aware have a look at http://ftdi-usb-sio.sourceforge.net/ (Non standard baudrates)

Nicolas

This is the program I was referring to above:

http://www.snoize.com/MIDIMonitor/

(open source, no less. :slight_smile: )

The baud rate aliasing I was referring to allow you to use the arduino
serial monitor to display 31250 bps (choosing the bps you decided to
customise let say 38400 for example because it is rarely used).

I do not have a Mac box but I wonder if it is possible to use ftdi sio
linux driver under mac

Nicolas

This is the program I was referring to above:
snoize: MIDI Monitor
(open source, no less. :slight_smile: )

can you use MIDImonitor to display serial data coming from your board over usb? i know the application, but was only able to use it displaying incoming MIDI over a usb-to-midi adapter. (bypassing the ftdi chip)

i usually do this, or set the bitrate to something more general like 38400 for debugging.
while i'd appreciate a little more comfort here, an ftdi-to-midi driver would be far more useful to me, as MIDImonitor does not only tell you the numbers that it receives but also the midi-meaning.

kuk

Aha. That's very true. I don't know what I was thinking. Sorry, my request is ill-conceived... I retract it.

an ftdi-to-midi driver would be far more useful to me
kuk

As a digging Linux user I never find something like this. So I'm not sure this will happen in the next few months.
I hope I'm wrong.

Nicolas

Tom Igoe, once again, shows off some really useful stuff re: monitoring serial data:

http://www.tigoe.net/pcomp/code/category/code/arduinowiring/140

hrrm ? this may be of use to windows users -

http://www.edn.com/article/CA6549033.html

I too would like this option as I develop MIDI projects. In my code, as a workaround I usually do:

//#define DEBUG 1

#ifdef DEBUG
const int DEBUG_RATE = 9600; // Serial debugging communicates at 9600 baud
const int SERIAL_PORT_RATE = DEBUG_RATE;
#else
const int MIDI_BAUD_RATE = 31250; // MIDI communicates at 31250 baud
const int SERIAL_PORT_RATE = MIDI_BAUD_RATE;
#endif

void setup()
{
pinMode(LED_PIN, OUTPUT);
digitalWrite(LED_PIN, HIGH);
Serial.begin(SERIAL_PORT_RATE);
}
.
.

-Jeff