On Wed, Dec 21, 2011 at 11:30 AM, M Pouillot <m.pouil...@watteco.com> wrote: > Hi Jon, > > I have a specific architecture on which is necessary to keep the Z-Stack > implementation on CC2530 with its own uart protocol. We have to imagine that > it is not possible to change the CC2530 firmware and so we need to adapt the > linux driver to the CC2530 uart protocol and not the opposite. Via the CC2530 > uart protocol, we can access to the mlme-data-request, mlme-data-confirm and > mlme-data-indication... I understand that I can't use directly the serial > driver which is connected to 802.15.4 MAC layer. So I think I need to use a > mix between hardMAC(fakehard) and the serial driver... have you some > suggestions?
What you suggest is the best way to do it. It shouldn't be too hard. You might want to practice with a user space app doing the serial communication to the CC2530 first and then switch the code over to a kernel driver. Probably easier to work with a CC2531 USB stick on a desktop machine until you get everything debugged. > > best regards, > > Mathieu > > -----Message d'origine----- > De : jonsm...@gmail.com [mailto:jonsm...@gmail.com] > Envoyé : mercredi 21 décembre 2011 17:04 > À : M Pouillot > Cc : linux-zigbee-devel@lists.sourceforge.net > Objet : Re: [Linux-zigbee-devel] Zigbee-linux CC2530 implementation > > Check out Contiki. Contiki already has an open source CC2530 implementation > using sdcc compiler. > > It shouldn't be too hard to alter that code to work in this environment. > > On Wed, Dec 21, 2011 at 3:06 AM, M Pouillot <m.pouil...@watteco.com> wrote: >> Hello all, >> >> >> >> I need to implement a 6lowpan linux driver for the CC2530 from TI. >> This transceiver purposes its own serial protocol to manage its Z-MAC >> (embedded >> 802.15.4 Mac layer). I see Linux-Zigbee allows hardMAC (for >> transceiver embedded Mac layer) or serial driver for which is >> necessary to have a >> 802-15-4 linux implementation. So what is the best way for me to >> implement my specific device (serial + hardMAC)? May be there is a >> near implementation. >> >> By the way for the HardMAC implementation, I don't understand in the >> fakehard.c example how are received the data and how are sent to the >> higher layer? >> >> >> >> thanks a lot for your feedback, >> >> >> >> >> >> Mathieu a newbie in linux driver ;-) >> >> >> ---------------------------------------------------------------------- >> -------- >> Write once. Port to many. >> Get the SDK and tools to simplify cross-platform app development. >> Create new or port existing apps to sell to consumers worldwide. >> Explore the Intel AppUpSM program developer opportunity. >> appdeveloper.intel.com/join http://p.sf.net/sfu/intel-appdev >> _______________________________________________ >> Linux-zigbee-devel mailing list >> Linux-zigbee-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/linux-zigbee-devel >> > > > > -- > Jon Smirl > jonsm...@gmail.com > > -- Jon Smirl jonsm...@gmail.com ------------------------------------------------------------------------------ Write once. Port to many. Get the SDK and tools to simplify cross-platform app development. Create new or port existing apps to sell to consumers worldwide. Explore the Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join http://p.sf.net/sfu/intel-appdev _______________________________________________ Linux-zigbee-devel mailing list Linux-zigbee-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-zigbee-devel