Mantis Bug Tracker

View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000816LoaderUser Interfacepublic2013-01-20 14:252013-01-23 06:22
Assigned Tomalcom2073 
PlatformAllOSAllOS VersionAll
Product Version0.1.0-SNAPSHOT 
Target Version0.1.0Fixed in Version 
Summary0000816: Device listing has duplicates
DescriptionUse 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)
TagsNo tags attached.
Issue TypeBug
Risk of Breakagemedium
Attached Files

- Relationships

-  Notes
User avatar (0002541)
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
User avatar (0002542)
sean94z (reporter)
2013-01-20 14:27

Golden! thx
User avatar (0002543)
sean94z (reporter)
2013-01-20 14:31

IIRC with windows the thing to do is read from the registry.
User avatar (0002544)
Fred (administrator)
2013-01-20 14:33

Yes, but FOR FUCKS SAKE don't get distracted AGAIN by that. Just... [^]

IE, list some likely numbers...
User avatar (0002545)
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).
User avatar (0002546)
sean94z (reporter)
2013-01-20 14:53 [^]
User avatar (0002555)
sean94z (reporter)
2013-01-22 21:04

Fixed, please review when you have time :)

User avatar (0002556)
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.
User avatar (0002557)
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.
User avatar (0002558)
Fred (administrator)
2013-01-22 21:18

If the default device is OK this code should never run ;-)
User avatar (0002559)
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.
User avatar (0002560)
sean94z (reporter)
2013-01-22 23:20

omg, having to create a subclass to get a callback when the dropdown is clicked....
User avatar (0002562)
Fred (administrator)
2013-01-23 06:22

We'll make a programmer out of you yet!

Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker