Werner Almesberger | 1 Apr 2011 02:31
Favicon
Gravatar

Re: linux-zigbee: the lay of the land

jonsmirl@... wrote:
> Mar has non-USB mc13224 modules. They might make your like easier initially.
> http://www.redwirellc.com/store/node/3

Nice module. But also kinda biggish and pricy, at least for our
purposes. Also, the one that goes into the Ben (the Ben is a given)
needs to be able to connect via the memory card slot, so we'll need
to make our own board anyway.

- Werner

------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
George Nychis | 1 May 2011 21:35
Picon

Re: Widely supported ZigBee USB dongle?

I received my EconoTAG r3 in the mail!  I had it come pre-configured
with the firmware.

I followed the instructions on the MC1322x page, but there was
something I was wondering.  The guide keeps mentioning that there are
two UARTs, which I also notice in dmesg when plugging in the device:
[ 1330.662176] usb 1-1: new high speed USB device using ehci_hcd and address 3
[ 1331.128560] ftdi_sio 1-1:1.0: FTDI USB Serial Device converter detected
[ 1331.128641] usb 1-1: Detected FT2232H
[ 1331.128659] usb 1-1: Number of endpoints 2
[ 1331.128676] usb 1-1: Endpoint 1 MaxPacketSize 512
[ 1331.128693] usb 1-1: Endpoint 2 MaxPacketSize 512
[ 1331.128709] usb 1-1: Setting MaxPacketSize 512
[ 1331.132098] usb 1-1: FTDI USB Serial Device converter now attached to ttyUSB0
[ 1331.135432] ftdi_sio 1-1:1.1: FTDI USB Serial Device converter detected
[ 1331.135502] usb 1-1: Detected FT2232H
[ 1331.135520] usb 1-1: Number of endpoints 2
[ 1331.135537] usb 1-1: Endpoint 1 MaxPacketSize 512
[ 1331.135554] usb 1-1: Endpoint 2 MaxPacketSize 512
[ 1331.135570] usb 1-1: Setting MaxPacketSize 512
[ 1331.141882] usb 1-1: FTDI USB Serial Device converter now attached to ttyUSB1

The guide says "you must make sure you are using the correct serial
device." and that UART1 is usually the second serial device.  So, is
the second serial device the one I always want to use?  It doesn't say
that the second is always the "correct serial device" explicitly, so I
just want to make sure I understand this.

On Thu, Mar 24, 2011 at 10:24 AM, George Nychis <gnychis@...> wrote:
> Great, thank you very much. This was really helpful to me. I'll just
(Continue reading)

Mariano Alvira | 1 May 2011 22:56
Gravatar

Re: Widely supported ZigBee USB dongle?

On Sun, May 01, 2011 at 03:35:10PM -0400, George Nychis wrote:
> I received my EconoTAG r3 in the mail!  I had it come pre-configured
> with the firmware.
> 
> I followed the instructions on the MC1322x page, but there was
> something I was wondering.  The guide keeps mentioning that there are
> two UARTs, which I also notice in dmesg when plugging in the device:
> [ 1330.662176] usb 1-1: new high speed USB device using ehci_hcd and address 3
> [ 1331.128560] ftdi_sio 1-1:1.0: FTDI USB Serial Device converter detected
> [ 1331.128641] usb 1-1: Detected FT2232H
> [ 1331.128659] usb 1-1: Number of endpoints 2
> [ 1331.128676] usb 1-1: Endpoint 1 MaxPacketSize 512
> [ 1331.128693] usb 1-1: Endpoint 2 MaxPacketSize 512
> [ 1331.128709] usb 1-1: Setting MaxPacketSize 512
> [ 1331.132098] usb 1-1: FTDI USB Serial Device converter now attached to ttyUSB0
> [ 1331.135432] ftdi_sio 1-1:1.1: FTDI USB Serial Device converter detected
> [ 1331.135502] usb 1-1: Detected FT2232H
> [ 1331.135520] usb 1-1: Number of endpoints 2
> [ 1331.135537] usb 1-1: Endpoint 1 MaxPacketSize 512
> [ 1331.135554] usb 1-1: Endpoint 2 MaxPacketSize 512
> [ 1331.135570] usb 1-1: Setting MaxPacketSize 512
> [ 1331.141882] usb 1-1: FTDI USB Serial Device converter now attached to ttyUSB1
> 
> The guide says "you must make sure you are using the correct serial
> device." and that UART1 is usually the second serial device.  So, is
> the second serial device the one I always want to use?  It doesn't say
> that the second is always the "correct serial device" explicitly, so I
> just want to make sure I understand this.

Try the second device (/dev/ttyUSB1) and see if it works; it probably
(Continue reading)

George Nychis | 1 May 2011 23:04
Picon

Re: Widely supported ZigBee USB dongle?

Thanks Mariano!

I am trying to test it out now. When I run the rftest (after building it) I get a '.' output every second or so. I don't get any errors or anything.

So then I thought id follow the wireshark guide to check packet output. I have a transmitter to generate packets. Regardless of getting the channel correctly, whether I dump to a pcap file or pipe to wireshark I end up getting a "protocol 230 unknown" error. So it seems like the global pcap header identifies the protocol as 230, which wireshark does not recognize.

Have you or anyone else seen this error before? I'm just trying to test things out without tampering with the FW first since it was pre-flashed.

Thanks a bunch!

On May 1, 2011 4:56 PM, "Mariano Alvira" <mar-spmBQXUuMhI@public.gmane.org> wrote:
> On Sun, May 01, 2011 at 03:35:10PM -0400, George Nychis wrote:
>> I received my EconoTAG r3 in the mail! I had it come pre-configured
>> with the firmware.
>>
>> I followed the instructions on the MC1322x page, but there was
>> something I was wondering. The guide keeps mentioning that there are
>> two UARTs, which I also notice in dmesg when plugging in the device:
>> [ 1330.662176] usb 1-1: new high speed USB device using ehci_hcd and address 3
>> [ 1331.128560] ftdi_sio 1-1:1.0: FTDI USB Serial Device converter detected
>> [ 1331.128641] usb 1-1: Detected FT2232H
>> [ 1331.128659] usb 1-1: Number of endpoints 2
>> [ 1331.128676] usb 1-1: Endpoint 1 MaxPacketSize 512
>> [ 1331.128693] usb 1-1: Endpoint 2 MaxPacketSize 512
>> [ 1331.128709] usb 1-1: Setting MaxPacketSize 512
>> [ 1331.132098] usb 1-1: FTDI USB Serial Device converter now attached to ttyUSB0
>> [ 1331.135432] ftdi_sio 1-1:1.1: FTDI USB Serial Device converter detected
>> [ 1331.135502] usb 1-1: Detected FT2232H
>> [ 1331.135520] usb 1-1: Number of endpoints 2
>> [ 1331.135537] usb 1-1: Endpoint 1 MaxPacketSize 512
>> [ 1331.135554] usb 1-1: Endpoint 2 MaxPacketSize 512
>> [ 1331.135570] usb 1-1: Setting MaxPacketSize 512
>> [ 1331.141882] usb 1-1: FTDI USB Serial Device converter now attached to ttyUSB1
>>
>> The guide says "you must make sure you are using the correct serial
>> device." and that UART1 is usually the second serial device. So, is
>> the second serial device the one I always want to use? It doesn't say
>> that the second is always the "correct serial device" explicitly, so I
>> just want to make sure I understand this.
>
> Try the second device (/dev/ttyUSB1) and see if it works; it probably
> does.
>
> Also, I can see that it will work since /dev/ttyUSB1 got mapped to the
> second usb device (1-1:1.1 instead of 1-1:1.0).
>
> The assignment of the names is done by udev and so it depends on your
> distribution. It's been the second one on everything that I've tried
> (except for Mac OSX which uses the serial numbers, but even then it
> has been the second serial number).
>
> -Mar.
------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Linux-zigbee-devel mailing list
Linux-zigbee-devel@...
https://lists.sourceforge.net/lists/listinfo/linux-zigbee-devel
Mariano Alvira | 2 May 2011 00:44
Gravatar

Re: Widely supported ZigBee USB dongle?

On Sun, May 01, 2011 at 05:04:01PM -0400, George Nychis wrote:
> Thanks Mariano!
> 
> I am trying to test it out now. When I run the rftest (after building it) I get
> a '.' output every second or so. I don't get any errors or anything.

Since your devices are pre-flashed you will have to erase them first
with bbmc.

When erased, you can load new code on them (by pressing reset when you
see the '.'s).

> 
> So then I thought id follow the wireshark guide to check packet output. I have
> a transmitter to generate packets. Regardless of getting the channel correctly,
> whether I dump to a pcap file or pipe to wireshark I end up getting a "protocol
> 230 unknown" error. So it seems like the global pcap header identifies the
> protocol as 230, which wireshark does not recognize.

You need the latest wireshark from source. Building the most recent
snapshot should work.

-Mar.

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd

Gmane