Search found 22 matches
- Wed Dec 29, 2021 5:57 pm
- Forum: General discussion
- Topic: Serial communication not working unless Serial monitor is opened/closed
- Replies: 24
- Views: 17870
Re: Serial communication not working unless Serial monitor is opened/closed
messing with USB is a challenge 'beyond *duino*', if you really wanted to go the distance, you could give it a try. it probably is a whole large project on its own ;)
it takes being very familiar with ST's USB driver stack and the hardware and being very familiar with USB protocols as well ...
- Wed Dec 29, 2021 5:53 pm
- Forum: General discussion
- Topic: Serial communication not working unless Serial monitor is opened/closed
- Replies: 24
- Views: 17870
Re: Serial communication not working unless Serial monitor is opened/closed
select HID for your keyboard
Ok, so that would mean using 2 USB cables wouldn't it? Or could I use dongle to do both the HID part, and the serial? I'll give that a go and see what happens :D
Yes, it means using 2 USB cables.
For now, there's no easy way of using keyboard and serial on ...
- Wed Dec 29, 2021 5:45 pm
- Forum: General discussion
- Topic: Serial communication not working unless Serial monitor is opened/closed
- Replies: 24
- Views: 17870
Re: Serial communication not working unless Serial monitor is opened/closed
Ok, so that would mean using 2 USB cables wouldn't it? Or could I use dongle to do both the HID part, and the serial? I'll give that a go and see what happens

- Wed Dec 29, 2021 5:39 pm
- Forum: General discussion
- Topic: Serial communication not working unless Serial monitor is opened/closed
- Replies: 24
- Views: 17870
Re: Serial communication not working unless Serial monitor is opened/closed

These are the options I have available. Am I looking in the right place?
- Wed Dec 29, 2021 5:24 pm
- Forum: General discussion
- Topic: Serial communication not working unless Serial monitor is opened/closed
- Replies: 24
- Views: 17870
Re: Serial communication not working unless Serial monitor is opened/closed
i'd not suggest messing further with keyboard i.e. HID. the way to do it is to write a composite usb device driver that does both HID and CDC.
you would need to do that yourself.
For now, the delivered drivers is either CDC or HID, but not both.
So you would either have to make do with HID or CDC ...
- Wed Dec 29, 2021 4:41 pm
- Forum: General discussion
- Topic: Serial communication not working unless Serial monitor is opened/closed
- Replies: 24
- Views: 17870
Re: Serial communication not working unless Serial monitor is opened/closed
Ok, So I have been playing around with things, and am fairly happy with the results, but it's not quite there yet.
The Serial.dtr(false); absolutely nailed it and really opened things up. From this, I was able to work out what I needed to do to get my Arduino Pro Micro working as it should (I ...
The Serial.dtr(false); absolutely nailed it and really opened things up. From this, I was able to work out what I needed to do to get my Arduino Pro Micro working as it should (I ...
- Tue Dec 28, 2021 2:48 pm
- Forum: General discussion
- Topic: Serial communication not working unless Serial monitor is opened/closed
- Replies: 24
- Views: 17870
Re: Serial communication not working unless Serial monitor is opened/closed
Arduino IDE and various serial terminal configures usb-serial with with DTR flag set. This is the normal way in 'old' rs232 serial hardware.
This probably includes all those usb-uart dongles.
These days not every serial terminal app turns on DTR
Is there a way of getting this to work when using ...
- Tue Dec 28, 2021 12:05 pm
- Forum: General discussion
- Topic: Sending Keyboard.h to Serial1
- Replies: 5
- Views: 3066
Re: Sending Keyboard.h to Serial1
you can try calling
Serial.dtr(false);
in setup();
maybe it helps
keyboard or rather HID is a usb protocol. since you have a hardware usb-uart dongle after all you may like to use usb for the keyboard and your serial dongle for Serial().
the more appropriate way is to make an app on the ...
- Tue Dec 28, 2021 12:02 pm
- Forum: General discussion
- Topic: Serial communication not working unless Serial monitor is opened/closed
- Replies: 24
- Views: 17870
Re: Serial communication not working unless Serial monitor is opened/closed
you can try calling
Serial.dtr(false);
in setup();
may be it helps
This absolutely did the trick. Works right away. Thank you.
Could I be really cheeky and ask if you could explain how/why that worked?
I have no problems with USB Serial but you need to initiate it properly (open COM ...
- Mon Dec 27, 2021 1:13 pm
- Forum: General discussion
- Topic: Serial communication not working unless Serial monitor is opened/closed
- Replies: 24
- Views: 17870
Re: Serial communication not working unless Serial monitor is opened/closed
there is another tactic which i often use
void setup() {
Serial.begin();
while(!Serial);
//or
while(!Serial.available());
}
i.e. spinlock usb serial till something connects or that a key is pressed.
this may help avoid some problems related to buffers and bulk transfers.
for keyboard, usb ...