Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"COMx does not exist" codeblocks and windows 8 #5

Closed
jmarsico opened this issue Jan 21, 2015 · 7 comments
Closed

"COMx does not exist" codeblocks and windows 8 #5

jmarsico opened this issue Jan 21, 2015 · 7 comments
Labels

Comments

@jmarsico
Copy link

device.setup(devicesInfo[x], 9600) throws an exception in codeblocks 12 & windows 8: Exception: Specified port, COMx, does not exist.

The port does exist, as it's listed in the previous listDevices() call. Is this a codeblocks issue? I will continue googling.

@bakercp
Copy link
Owner

bakercp commented Jan 21, 2015

Hm. Check also to see if there are any related issues with https://github.com/wjwwood/serial.

The version of https://github.com/wjwwood/serial I have included is slightly (but not too far) out of date.

Can you open the same port with the built-in (to openFrameworks) ofSerial?

@jmarsico
Copy link
Author

could be this... wjwwood/serial#84 issues with COMx where x >= 10.

@bakercp
Copy link
Owner

bakercp commented Jan 21, 2015

Aha -- if you use that notation does it work?

@bakercp bakercp added the bug label Jan 21, 2015
@jmarsico
Copy link
Author

working on it... \ in CB does some funky stuff. changing preferences.

@jmarsico
Copy link
Author

prepending the string with "\\.\" works. This causes problems with the compiler, though, as \ is some shorthand for removing the next character (i think).

regardless, i ended up using:
"string port = "";
port.append("\\.");
port.append("\");
port.append(devicesInfo[deviceIndx].getPort());
success = device.setup(port), 9600);"

...FYI... even in markdown "" does things within a string; hence non-formatted code block above.

@bakercp
Copy link
Owner

bakercp commented Jan 21, 2015

Wow. What a mess! :)

Perhaps you could chime in on the issue upstream (yes slash escapes the following char, so sometimes you have to stack them up in order for the compiler to actually eventually get the one you want :)).

I'd prefer for this to be fixed upstream and then pull it into ofxSerial.

@bakercp
Copy link
Owner

bakercp commented Jan 29, 2016

I'm closing this for now, as it was fixed upstream. Thanks, CB

@bakercp bakercp closed this as completed Jan 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants