Anonymous | Login | Signup for a new account | 2021-01-16 12:05 UTC | ![]() |
Main | My View | View Issues | Roadmap | Repositories |
View Issue Details [ Jump to Notes ] | [ Print ] | |||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0000816 | Loader | User Interface | public | 2013-01-20 14:25 | 2013-01-23 06:22 | |||||||
Reporter | Fred | |||||||||||
Assigned To | malcom2073 | |||||||||||
Priority | normal | Severity | minor | Reproducibility | always | |||||||
Status | resolved | Resolution | fixed | |||||||||
Platform | All | OS | All | OS Version | All | |||||||
Product Version | 0.1.0-SNAPSHOT | |||||||||||
Target Version | 0.1.0 | Fixed in Version | ||||||||||
Summary | 0000816: Device listing has duplicates | |||||||||||
Description | Use a map!!! And implement a proper method to show what's available: For Linux: fred@cheetah:~/workspaces/freeems-loader$ ls -l /dev/ttyS[0-9] /dev/ttyUSB[0-9] ls: cannot access /dev/ttyUSB[0-9]: No such file or directory crw-rw---- 1 root dialout 4, 64 Dec 27 01:26 /dev/ttyS0 crw-rw---- 1 root dialout 4, 65 Dec 27 01:26 /dev/ttyS1 crw-rw---- 1 root dialout 4, 66 Dec 27 01:26 /dev/ttyS2 crw-rw---- 1 root dialout 4, 67 Dec 27 01:26 /dev/ttyS3 For Winblows: COM0 - COM 20 (just as a temporary measure before detecting them) | |||||||||||
Tags | No tags attached. | |||||||||||
Issue Type | Bug | |||||||||||
Risk of Breakage | medium | |||||||||||
Attached Files | ||||||||||||
![]() |
|
![]() Fred (administrator) 2013-01-20 14:26 |
For Mac: freeair:~ fred$ ls -l /dev/cu.* /dev/tty.* crw-rw-rw- 1 root wheel 11, 3 Dec 30 04:27 /dev/cu.Bluetooth-Modem crw-rw-rw- 1 root wheel 11, 1 Dec 30 04:27 /dev/cu.Bluetooth-PDA-Sync crw-rw-rw- 1 root wheel 11, 2 Dec 30 04:27 /dev/tty.Bluetooth-Modem crw-rw-rw- 1 root wheel 11, 0 Dec 30 04:27 /dev/tty.Bluetooth-PDA-Sync |
![]() sean94z (reporter) 2013-01-20 14:27 |
Golden! thx |
![]() sean94z (reporter) 2013-01-20 14:31 |
IIRC with windows the thing to do is read from the registry. |
![]() Fred (administrator) 2013-01-20 14:33 |
Yes, but FOR FUCKS SAKE don't get distracted AGAIN by that. Just... http://c2.com/xp/DoTheSimplestThingThatCouldPossiblyWork.html [^] IE, list some likely numbers... |
![]() sean94z (reporter) 2013-01-20 14:37 |
Ah yeah, nice write up. That's what I did with the bit bang stuff(simple simon loop). |
![]() sean94z (reporter) 2013-01-20 14:53 |
http://doc.qt.digia.com/qt/qmap.html [^] |
![]() sean94z (reporter) 2013-01-22 21:04 |
Fixed, please review when you have time :) 86a62efbdab566f693806cae66d4361d2a74c12c |
![]() Fred (administrator) 2013-01-22 21:14 |
Two things: 1) ttyUSB should enter the list first over and above ttyS 2) this search should be done on each click of the drop down list so as to find CURRENT devices. I just plugged a new one in and can't see it listed because it's done at boot time, not on demand. Though the code does work correctly, just not when it should. |
![]() sean94z (reporter) 2013-01-22 21:16 |
1) lol i made note of that thx for the reminder 2) cool I was tempted to add a refresh bottom but that seemed tacky i'll implement it the way you suggested. |
![]() Fred (administrator) 2013-01-22 21:18 |
If the default device is OK this code should never run ;-) |
![]() Fred (administrator) 2013-01-22 21:20 |
First run default can be empty as long as there is logic to prevent errors from emptiness and/or ask user to put something there, etc. Or perhaps a "please choose" in grey, and/or disable action buttons until chosen. |
![]() sean94z (reporter) 2013-01-22 23:20 |
omg, having to create a subclass to get a callback when the dropdown is clicked.... |
![]() Fred (administrator) 2013-01-23 06:22 |
We'll make a programmer out of you yet! |
Copyright © 2000 - 2011 MantisBT Group |