Search found 22 matches

by TurboTimmy
Wed Dec 29, 2021 5:57 pm
Forum: General discussion
Topic: Serial communication not working unless Serial monitor is opened/closed
Replies: 24
Views: 11303

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. That is...
by TurboTimmy
Wed Dec 29, 2021 5:53 pm
Forum: General discussion
Topic: Serial communication not working unless Serial monitor is opened/closed
Replies: 24
Views: 11303

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 USB interface...
by TurboTimmy
Wed Dec 29, 2021 5:45 pm
Forum: General discussion
Topic: Serial communication not working unless Serial monitor is opened/closed
Replies: 24
Views: 11303

Re: Serial communication not working unless Serial monitor is opened/closed

ag123 wrote: Wed Dec 29, 2021 5:43 pm 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
by TurboTimmy
Wed Dec 29, 2021 5:39 pm
Forum: General discussion
Topic: Serial communication not working unless Serial monitor is opened/closed
Replies: 24
Views: 11303

Re: Serial communication not working unless Serial monitor is opened/closed

ag123 wrote: Wed Dec 29, 2021 5:28 pm don't select CDC, just select Serial UART.
Image

These are the options I have available. Am I looking in the right place?
by TurboTimmy
Wed Dec 29, 2021 5:24 pm
Forum: General discussion
Topic: Serial communication not working unless Serial monitor is opened/closed
Replies: 24
Views: 11303

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 (...
by TurboTimmy
Wed Dec 29, 2021 4:41 pm
Forum: General discussion
Topic: Serial communication not working unless Serial monitor is opened/closed
Replies: 24
Views: 11303

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 commen...
by TurboTimmy
Tue Dec 28, 2021 2:48 pm
Forum: General discussion
Topic: Serial communication not working unless Serial monitor is opened/closed
Replies: 24
Views: 11303

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 the...
by TurboTimmy
Tue Dec 28, 2021 12:05 pm
Forum: General discussion
Topic: Sending Keyboard.h to Serial1
Replies: 5
Views: 1961

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 desktop tha...
by TurboTimmy
Tue Dec 28, 2021 12:02 pm
Forum: General discussion
Topic: Serial communication not working unless Serial monitor is opened/closed
Replies: 24
Views: 11303

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 port) in your p...
by TurboTimmy
Mon Dec 27, 2021 1:13 pm
Forum: General discussion
Topic: Serial communication not working unless Serial monitor is opened/closed
Replies: 24
Views: 11303

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-hid i'd s...

Go to advanced search