Due serial coms not working with serial monitor not open


hey guys,

i trying have computer talk arduino due serial communication on native usb port. problem having arduino seems respond when (arduino) serial monitor open (and using send data). try send data source not respond.

i have written small program should have arduino print "grr" when serial data available it.

code: [select]

void setup()
{
  serialusb.begin(9600);
}
void loop()
{
  if (serialusb.available())
  {
    serialusb.read();
    serialusb.println("grr");
  }
}


this works fine when type arduino ide's serial monitor. once close serial monitor , send arduino data other source, not respond @ all. using program called 'device monitoring studio' track serial communication happening on com line troubleshoot this, , indeed due not sending data computer when arduino serial window closed.

i have been using c# winforms app send serial data arduino, , show data received in text box.

the due seems respond fine when talking programming port external serial coms. programming port ~300x slower native port benchmarking have done may necessity use native port.

i have used 2 different arduino dues , same true both of them.

does know causing this? native usb have sort of behind scenes initializing data exchanged when ide's serial monitor open? have different configuration in terms of maybe stop bits, parity, etc arduino serial monitor takes care of behind scenes?

is able write sketch due respond when sent serial data via native port?

any input save skin. thank you!



Arduino Forum > Using Arduino > Networking, Protocols, and Devices (Moderator: fabioc84) > Due serial coms not working with serial monitor not open


arduino

Comments