Testing the new board.

Hi guys, i just received my new Arduino Ethernet, and i'm testing out it.
However, i have a little problem.

I have done 2-3 test programs successfully, but i'm failing on the serialEvent one.

here's the code (lightly modified):

  Serial Event example
 When new serial data arrives, this sketch adds it to a String.
 When a newline is received, the loop prints the string and
 clears it.
 A good test for this is to try it with a GPS receiver
 that sends out NMEA 0183 sentences.
 Created 9 May 2011
 by Tom Igoe
 This example code is in the public domain.

String inputString = "";         // a string to hold incoming data
boolean stringComplete = false;  // whether the string is complete

void setup() {
  // initialize serial:

void loop() {
  if (Serial.available()) {
  // print the string when a newline arrives:
  if (stringComplete) {
    // clear the string:
    inputString = "";
    stringComplete = false;

  SerialEvent occurs whenever a new data comes in the
 hardware serial RX.  This routine is run between each
 time loop() runs, so using delay inside loop can delay
 response.  Multiple bytes of data may be available.
void serialEvent() {
  while (Serial.available()) {
    // get the new byte:
    char inChar = (char)Serial.read();
    // add it to the inputString:
    inputString += inChar;
    // if the incoming character is a newline, set a flag
    // so the main loop can do something about it:
    if (inChar == '\n') {
      stringComplete = true;

Now, my problem is that serialEvent() is never called.
If i uncomment the first lines on loop(), it prints out everything, but serialEvent never works.
I have even tried sending some '\n' or CRLF...
Some ideas?
Maybe the interrupt doesn't work?
Or am i missing something?


well, that's true, but as far as i understand it, it should be called automatically.
At least, that's what is written in this tutorial: http://arduino.cc/en/Tutorial/SerialEvent
and it the documentation: serialEvent() - Arduino Reference

Please check this thread, Arduino Forum

I am doing the same thing - testing new Arduino Pro Mini/5V/16MHz and I have met the same problem. The SerialEvent example sketch doesn't work.

It seems that serialEvent() function is never called - even when I am sending characters using serial monitor.

The only way to make the example working is to add serialEvent() call at the end of loop(){ }. Then it works ok. But according to documentation it shouldn't be needed... And obviously the demo works for other Arduinoers. Why not for me? :relaxed:

Any suggestions?

Thanks, Jan