Hi Ivo, Le 13.09.2012 14:33, Ivo Kunadt a écrit :
> At the moment i send some bytes in the xmit function of the > net_device_ops. What do you mean by that ? You cannot just send "some" bytes. Your driver must forward the data that comes from the higher layer (the soft mac) to your radio chip over SPI. > Now i want to use the ieee802154_mlme_ops func e.g. to > send a request. But how can i do that? mlme_ops contains the MAC management interface access points e.g. to start scanning the channels, to associate/disaccociate with a network, etc. These functions will be called through a netlink socket by a user space application. (in our case the tool called 'iz'). For example when you do an assoc request using the following command : iz assoc [insert system dependant parameters here] The following functions are called in the kernel (abstract) 0) | ieee802154_associate_req() { 0) + 14.805 us | ieee802154_nl_get_dev.clone.9(); 0) | mac802154_mlme_assoc_req() { 0) + 14.415 us | mac802154_dev_set_pan_id(); 0) 5.925 us | mac802154_dev_set_page_channel(); 0) 3.540 us | mac802154_dev_set_ieee_addr(); 0) | mac802154_send_cmd() { 0) 6.330 us | mac802154_dev_get_dsn(); 0) 7.080 us | mac802154_header_create(); 0) | mac802154_wpan_xmit() { 0) | mac802154_tx() { And only then your driver xmit() function will be called. (and your driver must pass the sk_buff data over SPI to your radio chip) You can generate "simple" data frame using the izchat program as show on the getting started page you were shown before. I hope that helped, Best regards, -- Christophe Aeschlimann Embedded Software Engineer & IT Manager ACN Advanced Communications Networks S.A. 2000 - Neuchâtel, Switzerland Tel. +41 32 724 74 31 ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Linux-zigbee-devel mailing list Linux-zigbee-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-zigbee-devel