Hi
we are using 5 Arduino Demilanove going to one USB Hub
Is it possible
to question each board for an unique ID
?
Hi
we are using 5 Arduino Demilanove going to one USB Hub
Is it possible
to question each board for an unique ID
?
hm, not quite sure if there is some sort of build in system there.. but you could query for an ID via Serial which you could #define somehow?
Dont they show up as 5 different (virtual) COM ports on the PC ?
I`ve had a xbee USB and the Arduino working .
yes 2 coms port come up.
As was mentioned you could burn an ID into your program. You would have to
burn your program five different ways for five different IDs.
If your board is using am FTDI chip you may be able to burn something into
the FTDI flash that could be used as an ID. IIRC the FTDI has some user
configurable flash.
(* jcl *)
I think each FTDI chip has a unique serial number
When you plug your FTDI equipped board into a Linux PC, dmesg shows the FTDI serial number
Is that serial number something you have to program? I am using an FT232RL on one
of my boards and typing dmesg gets
usb 2-2: new full speed USB device using ohci_hcd and address 8
usb 2-2: configuration #1 chosen from 1 choice
ftdi_sio 2-2:1.0: FTDI USB Serial Device converter detected
drivers/usb/serial/ftdi_sio.c: Detected FT232BM
usb 2-2: FTDI USB Serial Device converter now attached to ttyUSB2
(* jcl *)
usb 2-6: USB disconnect, address 2
ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0
ftdi_sio 2-6:1.0: device disconnected
usb 2-6: new full speed USB device using ohci_hcd and address 5
usb 2-6: configuration #1 chosen from 1 choice
ftdi_sio 2-6:1.0: FTDI USB Serial Device converter detected
ftdi_sio: Detected FT232RL
usb 2-6: FTDI USB Serial Device converter now attached to ttyUSB0
usb 2-6: New USB device found, idVendor=0403, idProduct=6001
usb 2-6: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 2-6: Product: TTL232R
usb 2-6: Manufacturer: FTDI
usb 2-6: SerialNumber: FTDxxxxx
This is actual dmesg output, only the serial number was X ed out to protect privacy
Every single FTDI USB cable and every board with an FTDI chip that I have used so far has had a serial number [ typo corrected ]
What version of Linux do you have?
My machine is old -- FC5. I wonder if this is something available in a newer driver.
The other thing I notice is that your FTDI chip is FT232RL and mine is an FT232BM.
I will have to take a look at the specs on the chips to see what is stored in the flash.
(* jcl *)
Even single FTDI USB cable and every board with an FTDI chip that I have used so far has had a serial number
That's good to know.
Thanks.
(* jcl *)
I have Fedora 8, 9 and 10 and Ubuntu 8.x
I think all show the serial number
Since you're on FC5, I would suggest upgrading to Fedora 10
Ubuntu is nice too
[Since you're on FC5, I would suggest upgrading to Fedora 10 /quote]
Or should I wait for FC11
I may have the time in the next few months.
(* jcl *)
One very good reason to upgrade is the fact Fedora 10 and the latest pre-release Ubuntu boot in about 20 seconds
Not to mention Fedora 10 has all the latest versions of most packages out there including gcc, avr-gcc and all the other cool stuff you need for the arduino and *duino
The feature you want is "udev rules". You can use some rules (described in a config file) combined with the FTDI's serial number to force a particular FTDI/arduino to a particular device special file name.
-j
Incidentally, if you did want to assign a unique ID "manually" you could use the same sketch but put the ID in RAM.
--Phil.