Hi!
 
I tried the latest linux802154-serialdev firmware with the zigbee stack.
With the python test scripts the communication worked correctly. But
after I started the stack and the izcoordinatior I get an exception in
serial.c:555 after I started a zigbee device. I downloaded the kernel
and tool sources at 1st of March. Is it a known bug or I missed
something? The low level serial communication seems to me worked
correctly because the Beacon request received from the device. 
 
Regards,
Gabor
 
cmd:
#sudo modprobe serial
#sudo izattach /dev/ttyUSB0
#sudo iz add wpan-phy0
Registered new device ('wpan0') on phy wpan-phy0
#sudo ip link set wpan0 address de:ad:be:af:ca:fe:ba:be
#sudo ifconfig wpan0 up
#sudo izcoordinator -d 1 -i wpan0 -p 1038 -s 1 -c 11
 
daemon.log
 
Mar 22 14:16:00 testhomehub-laptop NetworkManager:    SCPlugin-Ifupdown:
devices added (path:
/sys/devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/ttyUSB0/tty/ttyUSB
0/wpan-phy0/wpan0, iface: wpan0)
Mar 22 14:16:00 testhomehub-laptop NetworkManager:    SCPlugin-Ifupdown:
device added (path:
/sys/devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/ttyUSB0/tty/ttyUSB
0/wpan-phy0/wpan0, iface: wpan0): no ifupdown configuration found.
Mar 22 14:20:09 testhomehub-laptop izcoordinator[1809]: mlme_start
Mar 22 14:20:09 testhomehub-laptop izcoordinator[1809]: Received command
14 (1) for interface wpan0
Mar 22 14:20:09 testhomehub-laptop izcoordinator[1809]: Start
confirmation
 
debug.log
 
Mar 22 14:15:08 testhomehub-laptop kernel: [ 1024.247136]
ieee802154_dump_phy
Mar 22 14:15:34 testhomehub-laptop kernel: [ 1050.096574] Openning ldisc
Mar 22 14:16:00 testhomehub-laptop kernel: [ 1075.812148]
ieee802154_add_iface
Mar 22 14:18:39 testhomehub-laptop kernel: [ 1235.277923]
ieee802154_serial_start
Mar 22 14:18:39 testhomehub-laptop kernel: [ 1235.277977] _open_dev()
Mar 22 14:18:39 testhomehub-laptop kernel: [ 1235.277989]
send_pending_data 7a 62 01                                         zb.
Mar 22 14:18:40 testhomehub-laptop kernel: [ 1235.564117]
ieee802154_tty_receive 7a 62 81 00
zb..
Mar 22 14:18:40 testhomehub-laptop kernel: [ 1235.564123] Opened device
Mar 22 14:18:40 testhomehub-laptop kernel: [ 1235.564155] send_cmd2():
id = 7
Mar 22 14:18:40 testhomehub-laptop kernel: [ 1235.564166]
send_pending_data 7a 62 07 02                                      zb..
Mar 22 14:18:40 testhomehub-laptop kernel: [ 1235.568127]
ieee802154_tty_receive 7a 62 87 00
zb..
Mar 22 14:18:40 testhomehub-laptop kernel: [ 1235.568361]
ieee802154_serial_start end
Mar 22 14:20:09 testhomehub-laptop kernel: [ 1324.961115]
ieee802154_nl_start_confirm
Mar 22 14:20:09 testhomehub-laptop kernel: [ 1324.961181]
ieee802154_serial_set_channel 1
Mar 22 14:20:21 testhomehub-laptop kernel: [ 1336.464106]
ieee802154_tty_receive 00 00 7a 62 8b 00 08 03 08 f0 ff ff ff ff 07
..zb...........
Mar 22 14:20:21 testhomehub-laptop kernel: [ 1336.464114] Received
block, lqi 00, len 08
Mar 22 14:20:30 testhomehub-laptop kernel: [ 1345.656116]
ieee802154_tty_receive 00 00 7a 62 8b 00 08 03 08 00 ff
..zb.......
Mar 22 14:20:30 testhomehub-laptop kernel: [ 1345.660611]
ieee802154_tty_receive ff ff ff 07
....
Mar 22 14:20:30 testhomehub-laptop kernel: [ 1345.660618] Received
block, lqi 00, len 08
Mar 22 14:20:38 testhomehub-laptop kernel: [ 1354.072127]
ieee802154_tty_receive 00 00 7a 62 8b 00 08 03 08 10 ff ff ff ff 07
..zb...........
Mar 22 14:20:38 testhomehub-laptop kernel: [ 1354.072135] Received
block, lqi 00, len 08
 
kernel.log
 
Mar 22 14:14:51 testhomehub-laptop kernel: [ 1007.303781] Initializing
ZigBee TTY interface
Mar 22 14:15:08 testhomehub-laptop kernel: [ 1024.247136]
ieee802154_dump_phy
Mar 22 14:15:34 testhomehub-laptop kernel: [ 1050.096574] Openning ldisc
Mar 22 14:15:34 testhomehub-laptop kernel: [ 1050.116135] NET:
Registered protocol family 36
Mar 22 14:16:00 testhomehub-laptop kernel: [ 1075.812148]
ieee802154_add_iface
Mar 22 14:18:39 testhomehub-laptop kernel: [ 1235.277923]
ieee802154_serial_start
Mar 22 14:18:39 testhomehub-laptop kernel: [ 1235.277977] _open_dev()
Mar 22 14:18:39 testhomehub-laptop kernel: [ 1235.277982]
_send_pending_data, 3 bytes
Mar 22 14:18:39 testhomehub-laptop kernel: [ 1235.277989]
send_pending_data 7a 62 01                                         zb.
Mar 22 14:18:40 testhomehub-laptop kernel: [ 1235.564107]
ieee802154_tty_receive, received 4 bytes
Mar 22 14:18:40 testhomehub-laptop kernel: [ 1235.564117]
ieee802154_tty_receive 7a 62 81 00
zb..
Mar 22 14:18:40 testhomehub-laptop kernel: [ 1235.564123] Opened device
Mar 22 14:18:40 testhomehub-laptop kernel: [ 1235.564150] Opened
connection to device
Mar 22 14:18:40 testhomehub-laptop kernel: [ 1235.564155] send_cmd2():
id = 7
Mar 22 14:18:40 testhomehub-laptop kernel: [ 1235.564161]
_send_pending_data, 4 bytes
Mar 22 14:18:40 testhomehub-laptop kernel: [ 1235.564166]
send_pending_data 7a 62 07 02                                      zb..
Mar 22 14:18:40 testhomehub-laptop kernel: [ 1235.568119]
ieee802154_tty_receive, received 4 bytes
Mar 22 14:18:40 testhomehub-laptop kernel: [ 1235.568127]
ieee802154_tty_receive 7a 62 87 00
zb..
Mar 22 14:18:40 testhomehub-laptop kernel: [ 1235.568361]
ieee802154_serial_start end
Mar 22 14:20:09 testhomehub-laptop kernel: [ 1324.961115]
ieee802154_nl_start_confirm
Mar 22 14:20:09 testhomehub-laptop kernel: [ 1324.961181]
ieee802154_serial_set_channel 1
Mar 22 14:20:09 testhomehub-laptop kernel: [ 1324.961220] ------------[
cut here ]------------
Mar 22 14:20:09 testhomehub-laptop kernel: [ 1324.961226] kernel BUG at
drivers/ieee802154/serial.c:555!
Mar 22 14:20:09 testhomehub-laptop kernel: [ 1324.961232] invalid
opcode: 0000 [#1] SMP 
Mar 22 14:20:09 testhomehub-laptop kernel: [ 1324.961240] last sysfs
file:
/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0A:00/power_supply/BAT0/charge
_full
Mar 22 14:20:09 testhomehub-laptop kernel: [ 1324.961246] Modules linked
in: af_802154 serial mac802154 ieee802154 crc_ccitt binfmt_misc ppdev
snd_hda_codec_idt fbcon tileblit font snd_hda_intel bitblit softcursor
snd_hda_codec snd_hwdep arc4 snd_pcm_oss snd_mixer_oss snd_pcm
snd_seq_dummy snd_seq_oss snd_seq_midi pcmcia joydev i915 snd_rawmidi
snd_seq_midi_event b43 mac80211 cfg80211 led_class yenta_socket snd_seq
snd_timer snd_seq_device rsrc_nonstatic drm_kms_helper pcmcia_core lp
snd ssb drm intel_agp i2c_algo_bit psmouse dell_laptop tg3 soundcore
iptable_filter video agpgart dcdbas output ip_tables x_tables
snd_page_alloc ftdi_sio serio_raw usbserial parport
Mar 22 14:20:09 testhomehub-laptop kernel: [ 1324.961360] 
Mar 22 14:20:09 testhomehub-laptop kernel: [ 1324.961367] Pid: 1771,
comm: wpan-phy0 Not tainted 2.6.33-rc6 #1 0TD761/Latitude D620

Mar 22 14:20:09 testhomehub-laptop kernel: [ 1324.961374] EIP:
0060:[<f8253af0>] EFLAGS: 00010296 CPU: 1
Mar 22 14:20:09 testhomehub-laptop kernel: [ 1324.961384] EIP is at
ieee802154_serial_set_channel+0x180/0x190 [serial]
Mar 22 14:20:09 testhomehub-laptop kernel: [ 1324.961391] EAX: fffffff6
EBX: f05ee9a0 ECX: c076e514 EDX: 00000000
Mar 22 14:20:09 testhomehub-laptop kernel: [ 1324.961396] ESI: fffffffc
EDI: f05ee9a8 EBP: f074bf50 ESP: f074bf14
Mar 22 14:20:09 testhomehub-laptop kernel: [ 1324.961402]  DS: 007b ES:
007b FS: 00d8 GS: 00e0 SS: 0068
Mar 22 14:20:09 testhomehub-laptop kernel: [ 1324.961409] Process
wpan-phy0 (pid: 1771, ti=f074a000 task=f067d8d0 task.ti=f074a000)
Mar 22 14:20:09 testhomehub-laptop kernel: [ 1324.961414] Stack:
Mar 22 14:20:09 testhomehub-laptop kernel: [ 1324.961417]  f8254729
f82547fc 00000001 c0839804 c083e700 00000001 00000001 c083e700
Mar 22 14:20:09 testhomehub-laptop kernel: [ 1324.961432] <0> 00000000
7ea4bf95 000000f4 f067d8d0 f73b0f80 ff002c40 ff002c40 f074bf60
Mar 22 14:20:09 testhomehub-laptop kernel: [ 1324.961448] <0> f81de1fa
c0585673 f73b0f80 f074bfbc c015e062 0002dc7c 00000000 7ea41537
Mar 22 14:20:09 testhomehub-laptop kernel: [ 1324.961465] Call Trace:
Mar 22 14:20:09 testhomehub-laptop kernel: [ 1324.961478]  [<f81de1fa>]
? phy_chan_notify+0x2a/0x50 [mac802154]
Mar 22 14:20:09 testhomehub-laptop kernel: [ 1324.961488]  [<c0585673>]
? _raw_spin_lock_irq+0x13/0x20
Mar 22 14:20:09 testhomehub-laptop kernel: [ 1324.961498]  [<c015e062>]
? worker_thread+0x112/0x220
Mar 22 14:20:09 testhomehub-laptop kernel: [ 1324.961507]  [<f81de1d0>]
? phy_chan_notify+0x0/0x50 [mac802154]
Mar 22 14:20:09 testhomehub-laptop kernel: [ 1324.961517]  [<c0161550>]
? autoremove_wake_function+0x0/0x40
Mar 22 14:20:09 testhomehub-laptop kernel: [ 1324.961524]  [<c015df50>]
? worker_thread+0x0/0x220
Mar 22 14:20:09 testhomehub-laptop kernel: [ 1324.961532]  [<c016117c>]
? kthread+0x6c/0x80
Mar 22 14:20:09 testhomehub-laptop kernel: [ 1324.961540]  [<c0161110>]
? kthread+0x0/0x80
Mar 22 14:20:09 testhomehub-laptop kernel: [ 1324.961548]  [<c0103646>]
? kernel_thread_helper+0x6/0x10
Mar 22 14:20:09 testhomehub-laptop kernel: [ 1324.961552] Code: 74 26 00
be fc ff ff ff e9 15 ff ff ff c7 44 24 04 fc 47 25 f8 be ea ff ff ff c7
04 24 33 47 25 f8 e8 f0 f1 32 c8 e9 12 ff ff ff <0f> 0b eb fe c7 45 d8
00 fe ff ff eb b6 8d 76 00 55 89 e5 83 ec 
Mar 22 14:20:09 testhomehub-laptop kernel: [ 1324.961642] EIP:
[<f8253af0>] ieee802154_serial_set_channel+0x180/0x190 [serial] SS:ESP
0068:f074bf14
Mar 22 14:20:09 testhomehub-laptop kernel: [ 1324.961656] ---[ end trace
3c0f12004349ddd1 ]---
Mar 22 14:20:21 testhomehub-laptop kernel: [ 1336.464095]
ieee802154_tty_receive, received 15 bytes
Mar 22 14:20:21 testhomehub-laptop kernel: [ 1336.464106]
ieee802154_tty_receive 00 00 7a 62 8b 00 08 03 08 f0 ff ff ff ff 07
..zb...........
Mar 22 14:20:21 testhomehub-laptop kernel: [ 1336.464114] Received
block, lqi 00, len 08
Mar 22 14:20:30 testhomehub-laptop kernel: [ 1345.656104]
ieee802154_tty_receive, received 11 bytes
Mar 22 14:20:30 testhomehub-laptop kernel: [ 1345.656116]
ieee802154_tty_receive 00 00 7a 62 8b 00 08 03 08 00 ff
..zb.......
Mar 22 14:20:30 testhomehub-laptop kernel: [ 1345.660601]
ieee802154_tty_receive, received 4 bytes
Mar 22 14:20:30 testhomehub-laptop kernel: [ 1345.660611]
ieee802154_tty_receive ff ff ff 07
....
Mar 22 14:20:30 testhomehub-laptop kernel: [ 1345.660618] Received
block, lqi 00, len 08

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Linux-zigbee-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-zigbee-devel

Reply via email to