On Mon, Mar 18, 2013 at 11:46 PM, jonsm...@gmail.com <jonsm...@gmail.com> wrote:
> On Mon, Mar 18, 2013 at 11:43 PM, Alan Ott <a...@signal11.us> wrote:
>> On 03/18/2013 10:57 PM, jonsm...@gmail.com wrote:
>>> How does the Bluetooth HCI interface work? HCI is a serial line
>>> protocol and it has a line discipline. A Bluetooth device attached
>>> over a UART would need to set the line disciple. That's because UARTs
>>> don't have any device identification mechanism.
>>>
>>> But... if I plug in a USB stick which implements serial HCI, the code
>>> is able to use the USB ID for the device to route the HCI data into
>>> the BT stack without any user space intervention.
>>
>> HCI supports the same commands over multiple media types. In linux,
>> btusb handles the USB version and hci_ldisc handles the uart version.
>>
>>> So... we should be able to make an Econtag (with an USB ID eeprom
>>> soldered on to give it a unique ID - Mar that's on Econtag2 right?)
>>
>> Wouldn't it have to be in the FTDI chip? I tried one day setting a
>> serial number in my Econotag using the FTDI tools and couldn't make it
>> work (I didn't try very hard, and I was inside a VM, so that could have
>> been messing it up too). If that could be made to work, isn't that what
>> you want?
>
> You need to tack a $0.10 eeprom onto the FT2232 so that it will
> remember the USB ID. The FT232 has this eeprom on-chip.

Mar works around this by sending a probe down the serial line asking
for the MAC address. If the device answers he knows it is an Econotag.
You could probably hide that inside a modified USB FT2232 serial
driver for dev work. The modified driver would use the MAC address to
generate a serial number. But the correct solution is to add the $0.10
EEPROM.


>
>>
>>> talk to the 6lowpan code without needing any user space intervention.
>>> But how do you achieve that trick?
>>
>> I know for HID devices there are some shim drivers which do some custom
>> processing for specific devices while the bulk of the work is done by
>> hid-core. That's kind of the idea we want here.
>>
>> There's a function tty_set_ldisc(). It's called in exactly one place
>> (from the ioctl() handler), so it looks like maybe nobody is currently
>> doing what we're wanting to do.
>>
>>> One of those would work too. CC2531 based for $17.  You can set the
>>> USB ID on a CC2531.
>>> http://www.aliexpress.com/item/5pcs-Wireless-the-zigbee-module-wireless-communication-module-zigbee-wireless-module-NC910-free-shipping/734720982.html
>>
>> The MCU on that thing is a beast, and 8051 too!
>>
>> Alan.
>>
>
>
>
> --
> Jon Smirl
> jonsm...@gmail.com



--
Jon Smirl
jonsm...@gmail.com

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Linux-zigbee-devel mailing list
Linux-zigbee-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-zigbee-devel

Reply via email to