Wi5 / odin-wi5

Odin framework: Patches + Wiki (Instructions)
8 stars 17 forks source link

Problem starting agent #30

Closed hrchhangte closed 7 years ago

hrchhangte commented 7 years ago

We see this issue while starting the agent

2016-02-29T14:10:24Z|00002|reconnect|INFO|unix:/var/run/db.sock: connected Configuring OpenvSwitch router.cli:16: 'odinagent :: OdinAgent' input 2 unused Router could not be initialized!

josemariasaldana commented 7 years ago

Hi,

The question is that we are using a secondary wireless interface (wlan1 in monitor mode, i.e. mon1) for getting information about the wireless environment, without disrupting ongoing communications.

And we have added this interface to our Click scheme. Therefore, if you start Click without it, it does not work.

We are thinking about a solution for those APs that do not have a secondary interface. Perhaps creating a dummy interface called 'mon1' using kmod-dummy could do the trick. http://unix.stackexchange.com/questions/152331/how-can-i-create-a-virtual-ethernet-interface-on-a-machine-without-a-physical-ad

hrchhangte commented 7 years ago

Thanks. Just want to ask. Which router are you using and which secondary wireless interface are you using for the setup (Hardware)? We always seem to have a problem setting up the network. We would like to replicate the same.

josemariasaldana commented 7 years ago

We are using TP-Link AC1750 v2 routers (Archer C7, which runs with ath9k driver).

And we are connecting an extra WiFi interface: the USB TP-Link TL-WN722N. The datasheet of this device is available here http://www.tplink.com/resources/document/datasheet/TL-WN722N_ds.zip

hrchhangte commented 7 years ago

Thanks. Does the image built for TP-Link AC1750 v2 contains the drivers for USB TP-Link TL-WN722N? Also, we faced issues building the images and click. So, could you let us know which kernel/distribuition/os specific versions you used for building the images and click succesfully.

josemariasaldana commented 7 years ago

I have added some information about the dummy interface here: https://github.com/Wi5/odin-wi5/wiki/If-you-don't-have-a-secondary-wireless-interface

And I have also updated the wiki about how to build the .bin file: https://github.com/Wi5/odin-wi5/wiki/Create-OpenWrt-bin-image-including-openvswitch-and-the-ath9k-patch

hrchhangte commented 7 years ago

Thanks for the links. The main problem we are facing is when we run the click agent and let the client connect to the ssid, we have connectivity issues from the client to access point/agent and from client to controller. The issue is there are so many packet losses even for icmp echo request and reply. Could this be a link level connectivity problem between the client and the agent? or a routing issue at the agent?

Could you please share the topology, wireless configuration of access point and network configuration of access point.

josemariasaldana commented 7 years ago

You have new info here:

https://github.com/Wi5/odin-wi5/wiki/Configure-the-network-of-the-AP-after-flashing.-Prepare-OpenVswitch

and here:

https://github.com/Wi5/odin-wi5/wiki/Steps-for-setting-up-your-own-Odin-Enviroment

hrchhangte commented 7 years ago

Thanks for the info and links.

hrchhangte commented 7 years ago

Hi, we have another problem. The wifi connection (STA and Agent) gets disconnected periodically. From the agent debug messages, it looks like the agent keeps sending deauth frames when association is completed.

Thanks.

josemariasaldana commented 7 years ago

Please try with the Development Branch. We have new improvements there, which are not yet in the Master branch.

hrchhangte commented 7 years ago

Thanks. We followed the instructions for building click. https://github.com/Wi5/odin-wi5/wiki/Cross-compiling-Click-Modular-Router-for-Odin

But we got the same problem/error while building click : BUILDCXX ../../lib/error.cc ../../lib/error.cc: In static member function 'static String .. ...

Which specific linux distro/version are you using to successfully build Click. Thanks in advance.

aliarsal commented 7 years ago

Hi,

You can try the patch that you can find attached. I hope this will help you to compile Click.

Best,

Ali


Gönderen: hrchhangte notifications@github.com Gönderildi: 10 Nisan 2017 Pazartesi 14:36:19 Kime: Wi5/odin-wi5 Bilgi: Subscribed Konu: Re: [Wi5/odin-wi5] Problem starting agent (#30)

Thanks. We followed the instructions for building click. https://github.com/Wi5/odin-wi5/wiki/Cross-compiling-Click-Modular-Router-for-Odin

But we got the same problem/error while building click : BUILDCXX ../../lib/error.cc ../../lib/error.cc: In static member function 'static String .. ...

Which specific linux distro/version are you using to successfully build Click. Thanks in advance.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/Wi5/odin-wi5/issues/30#issuecomment-292924329, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ALZ2TvZlIFlU7N1A3aIITFPFE2UWrDaZks5ruhQzgaJpZM4L3IKb.

Click herehttps://www.mailcontrol.com/sr/7IdTWEe12u7GX2PQPOmvUiyxGuQ0drTSVqrmPJfcRodOMIm4sUJCKN9N+Pimf2QuwFZHW7Ml70geq4Nrivo6iw== to report this email as spam.

hrchhangte commented 7 years ago

Sorry. Couldn't find any attached patch?

Thanks.

aliarsal commented 7 years ago

Can you give me your e-mail address so I will send the patch to you directly.

Ali


Gönderen: hrchhangte notifications@github.com Gönderildi: 10 Nisan 2017 Pazartesi 19:36:34 Kime: Wi5/odin-wi5 Bilgi: Ali Arsal; Comment Konu: Re: [Wi5/odin-wi5] Problem starting agent (#30)

Sorry. Couldn't find any attached patch?

Thanks.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/Wi5/odin-wi5/issues/30#issuecomment-293005996, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ALZ2Tnkv8-ekRcgFFugMcRBEZPnbvxdRks5rulqSgaJpZM4L3IKb.

Click herehttps://www.mailcontrol.com/sr/LweJUzMjHQnGX2PQPOmvUtA0IxE6yMtzyXSM62TO+qtsyrNLMUAlZHihWYjvaSYV6XXhfx!FbniK0Rphlb7DTA== to report this email as spam.

hrchhangte commented 7 years ago

hrchhangte@gmail.com

Thanks.

hrchhangte commented 7 years ago

Hi,

Still got the problem even after patching. Don't know which one am i missing

output :

make[1]: Entering directory '/home/zela/openwrt/trunk/click/userlevel' CXX ../lib/error.cc ../lib/error.cc: In static member function 'static String ErrorHandler::vxformat(int, const char*, va_list)': ../lib/error.cc:39:50: error: lvalue required as unary '&' operand

define MAKE_POINTER_FROM_VA_LIST_ARG(arg) (&(arg))

                                              ^

../lib/error.cc:738:36: note: in expansion of macro 'MAKE_POINTER_FROM_VA_LIST_ARG' strstore = item->hook(flags, MAKE_POINTER_FROM_VA_LIST_ARG(VA_LIST_REF(val))); ^ Makefile:58: recipe for target 'error.o' failed make[1]: [error.o] Error 1 make[1]: Leaving directory '/home/zela/openwrt/trunk/click/userlevel' Makefile:57: recipe for target 'userlevel' failed make: [userlevel] Error 2

Thanks.

josemariasaldana commented 7 years ago

You can perhaps try with this: https://github.com/Wi5/odin-wi5/tree/master/Odin_Wi5_firmware_build

vincentng291 commented 7 years ago

Hi, I also faced this problem even adding dummy interface as you recommend @josemariasaldana - I am using TPLink 1043ND v3. Can I run Odin agent without extended wifi card? (If it is required, I will buy it but it will take time)