Have you considered compiled a batman-adv.ko for android?
https://www.mail-archive.com/b.a.t.m.a.n@lists.open-mesh.org/msg09417.html
Marek Lindner Tue, 07 May 2013 01:04:07 -0700
On Tuesday, May 07, 2013 15:36:09 cmsv wrote: > > so, I know it is the imcompatibility of my phone's kernel version and > > the compile tool's, which seems easy to solve. But, here is the > > question, If I want to develope a software for a lot of users, I can't > > get their kernel version and compile each batman-adv.ko for them, and > > unfortunately, android has various different versions. > > > > How about let android compile its own batman-adv.ko? But I think it is > > of great difficulity.
You are right that compiling a kernel module for different versions and kernels out there is an uphill battle. An application in userspace is better suited for this approach. Alternatively, you have to convince the manufacturer to build batman-adv by default - batman-adv is part of the stock Linux kernel after all. Nonetheless, even if you manage to solve the software compilation, distribution and adhoc mode inavailability / wifi bugs with different drivers you still have biggest issue unaddressed: power consumption. Ad-hoc mode has no power save mode I know of which leads to a steady battery drain as soon as you turn on your wifi. You don't even need to turn meshing and you can watch your smartphone's battery die Of course, driving into the desert to show how 2 smartphones can talk to each other over a mesh is quite catchy but totally impractical in today's life. Until power saving can be solved in an intelligent manner everything else is a pointless exercise. And no, carrying a car battery in your hand bag to power your phone is not a practical solution either. ;-) Cheers, Marek+++++++++++++++++++++++++++++++++++++++++++
https://www.mail-archive.com/b.a.t.m.a.n@lists.open-mesh.org/msg09415.html
i have not tried to compile for android as i am for now just looking at its possibility in theory but i am interested in hearing about your progress.
In regards to the mailing list you need to register yourself to be able to email it. On 05/05/2013 04:58 AM, haijian sun wrote: > Hi, > Recently, I'm doing a research on MANET, I choose batman-adv as my > research protocol, I want to use it on Android, batmand works ok, but, > when I use batman-adv, a lot of problems occurs. > # insmod batman-adv.ko > # insmod: init_module 'batman-adv.ko' failed, > I want to know what happens, so I use the command dmesg > # dmesg | grep batman > # batman_adv: version magic '2.6.30.4-EmbedSky mod_unload ARMv4 > ' should be '2.6.32.9-perf preempt mod_unload ARMv6 > > so, I know it is the imcompatibility of my phone's kernel version and > the compile tool's, which seems easy to solve. But, here is the > question, If I want to develope a software for a lot of users, I can't > get their kernel version and compile each batman-adv.ko for them, and > unfortunately, android has various different versions. > How about let android compile its own batman-adv.ko? But I think it is > of great difficulity. > > I read your email ''batman-adv and android as mesh client'', and as > far as I know, guys from ITU use batmand, which is on OSI layer 3, and > we also already implemented it, it is easier. But, the question is > batman-adv is more complicated and associated with linux kernel, I know > a community called servalproject also involved in this, and they are > doing quiet well, but they also use batmand. > I think the first step to do this is to open the phone's ad-hoc mode, > which we already implemented, and then compile batman-adv.ko for > android, this is difficult and relys much on kermel version. > Hope to hear suggestions from you. By the way, each time when I send a > email to b.a.t.m.a.n@lists.open-mesh.org > <mailto:b.a.t.m.a.n@lists.open-mesh.org>, they autosend me an email with > ''message rejected by filter rule match'' and I don't know why. > Cheers, > Sun Haijian.
相关热门文章
给主人留下些什么吧!~~
评论热议