Author Topic: HELP! - Serial Monitor positively doesn't work on DigiX  (Read 12238 times)

gogol

  • Sr. Member
  • ****
  • Posts: 398
Re: HELP! - Serial Monitor positively doesn't work on DigiX
« Reply #15 on: July 04, 2014, 12:15:14 am »
When my example runs (you see the LED blinking), than I see one more step you can do:

Use another Serial Terminal as that from the Arduino IDE to connect to the DigiX. Putty for example should do the job quiet well.
Disconnect the DigiX after flashing, close the Arduino IDE before you reconnect the DigiX and than connect with the other terminal to the DigiX.  (Make sure, that the Serial parameters from that terminal match the Code 9600 8N1 in that example)

I have seen in several conditions, that the JAVA-VM had problems, handling the serial connection between uploading and watching the serial monitor.

When however my example is not running (you see no blinking LED), the program stucks somewhere.  That somewhere must be the serial stack, as the pin-toggling for the blinking is bullet-proof.
In that case I would really ask you, to check, if you have no other software running on your PC, which interferes with the Serial port, like in the the  "Logitech Gaming Software" or the modem-manager in some linux distributions (just to name examples).

DROBNJAK

  • Newbie
  • *
  • Posts: 14
Re: HELP! - Serial Monitor positively doesn't work on DigiX
« Reply #16 on: July 04, 2014, 03:27:08 am »
Thx, I thought of Putty, but didn't get around to do it. I'll do that next.

As far as java vm, I installed Java and only left Java that came with Arduino.

I pulled all the USB cable and unistlaled few drivers that I was able to indentify.

DROBNJAK

  • Newbie
  • *
  • Posts: 14
Re: HELP! - Serial Monitor positively doesn't work on DigiX
« Reply #17 on: July 05, 2014, 03:14:09 am »
I must correct myself: The code provided by gogol actually doesn't blink on board LED? I missed that one. The only thing I changed is I brought comm speed down to 9600.

Various other pieces of code that I tried, like writing to Adafrit SD card (uses Serial lib), writing to DigiX's SD card, Digol's OLED demo etc. all worked.

gogol

  • Sr. Member
  • ****
  • Posts: 398
Re: HELP! - Serial Monitor positively doesn't work on DigiX
« Reply #18 on: July 05, 2014, 09:56:09 am »
In that case, I strongly believe, that there is something like a gaming mouse-driver,  modem-software or something other running, which blocks the serial data-flow.

Try to run that script in this way:

Code: [Select]

int led = 13;

#define MySerial SerialUSB


// the setup routine runs once when you press reset:
void setup() {
  // initialize the digital pin as an output.
  pinMode(led, OUTPUT);
  MySerial.begin(19200);
}

// the loop routine runs over and over again forever:
void loop() {
  digitalWrite(led, HIGH);   // turn the LED on (HIGH is the voltage level)
  MySerial.println("HIGH ####");
  delay(1000);               // wait for a second
  digitalWrite(led, LOW);    // turn the LED off by making the voltage LOW
  MySerial.println("LOW");
  delay(1000);               // wait for a second
}

and if that is not blinking, run the DigiX from external power and without USB connection.