Hi, On Mon, Apr 20, 2015 at 11:09:49PM +0200, Kristoffer Ödmark wrote: > Hi, I am developing a device that can send and recieve 802.15.4 frames > to a computer over usb. > okay. First, I already answered a similar question, please see [0]. > Since you seem to have done a lot of work with this kind of thing, is > there someway that i can create a virtual interface, much like the > TUN/TAP interfaces that are available for us right now? > So you want to have some special "driver" which can accept frames from userspace to redirect them in the kernelspace to the driver and the interface is type of a WPAN interface. This doesn't exist right now, maybe you can setup such enviornment with the serial driver (I think this is what Tony Cheanau did at [1]). See [2] - right side, I think then you need to remove the green box and you have your /dev/fakeserial0 device, but this methods required the serial driver which isn't mainline yet. The interface at /dev/fakeserial0 would be the serial protocol then, see my other mail for usb dongles at [0]. > What would i have to do to get my raw serialized 802.15.4 frames into > the linux-zigbee stack? I watched your talk about that on youtube. > Originally i was going to use the contiki solution, but since the > stack in linux seems to be pretty okay thanks to you i would prefer > that way. > I would say you need to decide if "atusb" or "serial" based firmware for your usb dongle device. If you have already a serial connection then I think you already decide to use the serial protocol, which you can see mostly see how it works at serial driver [3]. For atusb, your firmware need to speak the "atusb" protocol which is simple if the transceiver is a at86rf2xx based. The atusb driver isn't mainline yet but in a good state. (Means better than serial). For serial communication you need to speak the serial protocol on firmware and port the serial driver to newer kernel release. Maybe you can also generate some crazy setup which do a adaptation from /dev/ttyUSB0 to /dev/fakeserial0 in userspace, then you could use your already existing serial protocol from /dev/ttyUSB0 and translate it to /dev/fakeserial0. If you don't have access to the firmware, then this would be the only choice for you. The bad messages this is not all mainline and you need to port it, if you do that I would be very happy about to see patches. I cc here Werner Almesberger, the creator of atusb. - Alex [0] http://www.spinics.net/lists/linux-wpan/msg01591.html [1] https://github.com/tcheneau/virtual-ieee802154-serial [2] https://github.com/tcheneau/virtual-ieee802154-serial/blob/master/figures/fakeserial-architecture.png [3] https://github.com/linux-wpan/linux-wpan-next/commit/546618171de2be30236aab86f3ee323b425e2bf5 -- To unsubscribe from this list: send the line "unsubscribe linux-wpan" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html