Hi I have a few more information to share
http://code.google.com/p/linux-wsn/wiki/LinuxStack Please go through this link Prajosh On Thu, Sep 13, 2012 at 6:03 PM, Ivo Kunadt <kun...@schleissheimer.de> wrote: > Hi, > > i think you need some more information: > Linux Controller: imx35 > Linux Kernel : 3.6.rc1 > > "Zigbee" Device: AT-ANY-2400-SC-3 > Controller on the board: Atmega128rf1a > The Zigbee Device run with the Atmel Mac Stack at the moment. The goal is to > write a driver for the Atmega128rf1a that use a socket. > > My idea was now to take the at86rf230 SPI part and rewrite it: > > static int __devexit atmega128rfa1_remove(struct spi_device *spi){ > /*Device aus platform besorgen und deint*/ > dev_info(&spi->dev, "atmega128rfa1: remove"); > struct at86rf230_local *lp = spi_get_drvdata(spi); > unregister_netdev(lp->dev); > spi_set_drvdata(spi, NULL); > mutex_destroy(&lp->bmux); > return 0; > } > > static struct spi_driver atmega128rfa1_driver = { > .driver = { > .name = "atmega128rf1a", > .owner = THIS_MODULE, > }, > .id_table = atm_dev_id, > .remove = __devexit_p(atmega128rfa1_remove), > .probe = tmega128rfa1_probe, > }; > > > static __init int spi_atmega128fa1_init(void){ > printk( KERN_ALERT "atmega128rfa1: init"); > > return spi_register_driver(&atmega128rfa1_driver); > } > > static __exit void spi_atmega128fa1_exit(void){ > spi_unregister_driver(&atmega128rfa1_driver); > } > > module_init(atmega128fa1_init); > module_exit(atmega128fa1_exit); > MODULE_DESCRIPTION("ATmega128RFA1 Controller/Transceiver Driver"); > MODULE_LICENSE("GPL2"); > > > In my prop function: > > alloc and register wpan_phy > alloc and register net_device > init a struct like the at86rf230_local in at86rf230.c > init lock and mutex > TODO: reqeust an gpio irq to get information from slave. The SPI Slave > musst talk to the master e.g. lost the connection or something else. > > At the moment i send some bytes in the xmit function of the net_device_ops. > Now i want to use the ieee802154_mlme_ops func e.g. to send a request. But > how can i do that? > > Please let me know if you need more details. > > Regards, > Ivo > > ------------------------------------------------------------------------------ > 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 > -- Regards, Prajosh Premdas ------------------------------------------------------------------------------ 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