FAQ  •  Search  •  Profile  •  Log in to check your private messages  •  Log in
 WRT54G/GS: How to run kaiEngine on Alchemy/Satori View next topic
View previous topic
Post new topicReply to topic
Author Message
^S^
Team XLink Administrator
Team XLink Administrator


Joined: 09 Sep 2004
Posts: 251
Location: Portugal

PostPosted: Mon Dec 13, 2004 9:55 pm Reply with quoteBack to top

Your .conf is fucked up. You probably used some windows editor that changed line termination. I've seen a post where some guy used WinVI and that it is compatible with Unix line endings.

You can use any editor you like, just make sure to save it with Unix line endings.

Cheers.
View user's profileSend private messageMSN MessengerICQ Number
Sykobabble
Kai Beginner
Kai Beginner


Joined: 09 Oct 2004
Posts: 32
Location: United Kingdom

PostPosted: Mon Dec 13, 2004 10:41 pm Reply with quoteBack to top

Thanks ^S^

Was just about to reply saying I had seen the post but you beat me to it Smile

I have managed to get the follwing result........


Code:
~ # killall -9 kaid
~ # wget http://192.168.1.2/kaid.conf -O /tmp/kaid.conf
Connecting to 192.168.1.2[192.168.1.2]:80
kaid.conf            100% |*****************************|  2769       00:00 ETA
~ # wget http://192.168.1.2/kaid -O /tmp/kaid
Connecting to 192.168.1.2[192.168.1.2]:80
kaid                 100% |*****************************|  1197 KB    00:00 ETA
~ # cd /tmp && chmod +x /tmp/kaid && /tmp/kaid &
~ # KAI: Reading settings from kaid.conf
CONFIG: Downloading settings from http://www.teamxlink.co.uk/connector/clientget
config.php...
CONFIG: 4 orbital(s) available...
KAI: Kai for KaiStation now starting...
KAI: Listening for UI's on :34522
KAI: Added 1 device(s) to engine cache.
PKTSNIFF: Setting up packet sniffer...
PKTSNIFF: Applying pcap filter 'ether src 00:0D:3A:xx:xx:xx'
PKTSNIFF: Everything set with packet sniffer...


But I still cannot start Kai on XBMC this is my kaid.conf file


Code:
################################################################################
# Kai daemon configuration file
#
# This file contains the configuration options for Kai daemon.
# There are some fields which can be modified, the descriptions of these fields
# and their default values are listed below
#
# UIBind        : Specifies which ip/port kaid will use to listen for controller
#                 UIs
#               Ex.: 192.168.0.138, 10.0.0.1:34522, :34522 (default)
UIBind = :34522

# OrbPort      : Specifies which port kaid will use to probe(UDP) and talk to
#                   Orbitals (TCP)
#               Ex.: 34525
#   Default      : 34525 (default)
OrbPort = 34525

# EngineBind      : Specifies the IP:port to listen for the engine (UDP socket);
#                   (port should be forwarded in your router if using NAT)
#                   Ex.: 69.69.69.69, 69.69.69.69:37500, :37500
EngineBind = 37500

# SniffDevice   : NIC to sniff for console traffic (eth0, ethX, ...). Will be used
#              for packet injection too.
#               Ex.: eth0 (default), en0 (Mac OSX),
SniffDevice = br0

# Protocol      : Indicates whether kaid will support IPv6.  Valid values
#                  for this field are:
#                    4 - IPv4 Support only.
#                    6 - IPv4 and IPv6 Support.
#             ***** This is WIP, only using IPv4 for now !!!! ******
#Protocol = 4

# ConsoleMacs   : You can and should specify your console(s) mac address(es)
#                   here. They'll be used as pcap filters reducing CPU loading
#                   processing each packet. It will also avoid sniffing
#                   incoming/injected packets to be caught. Format must be
#                   standard tcpdump format:  Ex.: 00:ff:dd:5b:31:ac
#                   You can specify more than a mac address in a ; separated
#                   list. Will be parsed and "OR'ed" in filter. List should end
#                   with ";" or last element will be discarded.
ConsoleMacs = 00:0D:3A:xx:xx:xx;

# ConfigURL   : URL where orb list is published (and extra stuff)
ConfigURL = http://www.teamxlink.co.uk/connector/clientgetconfig.php

# Auth stuff, for clients like Win32 (XBMC uses auth from XboxMediaCenter.xml)!
# Current XBMC (1.1+) allows to setup XTag & Pass on screen)
# Get latest CVS for working arena support
#   No defaults here!
Username = Sykobabble
Password = password
AutoLogin = 1

###### Advanced stuff ################
# IgnoreTCP       : Many of you probably noticed that, when using your dashboard FTP and
#              kaid was running that all the packets sniffed would be sent to remote
#              hosts. Not only this was a big privacy and security issue but it would
#              cause unecessary traffic. This setting should stop TCP packets from
#              being relayed.
IgnoreTCP       = 1


Do you have any idea what is going wrong?

Thanks

Sykobabble
View user's profileSend private message
Puma81
Team XLink Moderator
Team XLink Moderator


Joined: 21 May 2004
Posts: 278

PostPosted: Mon Dec 13, 2004 11:58 pm Reply with quoteBack to top

in the newer xbmc build dates (12/8/2004.) there is a setting to tell XBMC what IP to look for the engine. Settings -> My Programs -> Xlink kai. set that to the router IP.
View user's profileSend private message
TaskMaster
Kai Regular
Kai Regular


Joined: 21 May 2004
Posts: 85
Location: USA - Massachusetts

PostPosted: Tue Dec 14, 2004 2:42 am Reply with quoteBack to top

@Sykobabble - What router and version do you have? You may need to change the sniff device in your KAID.CONF.
View user's profileSend private message
Sykobabble
Kai Beginner
Kai Beginner


Joined: 09 Oct 2004
Posts: 32
Location: United Kingdom

PostPosted: Tue Dec 14, 2004 8:14 am Reply with quoteBack to top

I am running the latest version of XBMC and all settings are correct.

I have a WRT54G I think it is Version 1.0 as it has no version number on the bottom of it.
The router has about 20 lights on the front and I read somewhere that if this is the case then it is a version 1.0

Do I need to forward any ports or set my XBOX IP as DMZ in my router?

Thanks

Sykobabble
View user's profileSend private message
TaskMaster
Kai Regular
Kai Regular


Joined: 21 May 2004
Posts: 85
Location: USA - Massachusetts

PostPosted: Tue Dec 14, 2004 12:45 pm Reply with quoteBack to top

You should not have to do either of those things. Can you test using a PC and configure just the Kai UI and see if it can detect the engine running on the router? I am just trying to narrow down where the problem may be.
View user's profileSend private message
jloor
Kai Beginner
Kai Beginner


Joined: 09 Jun 2004
Posts: 6
Location: USA - New Jersey

PostPosted: Tue Dec 14, 2004 4:30 pm Reply with quoteBack to top

I learned this the hard way,
always check your kaid.conf file using VI when you telnet into the router.

type "i" to edit things
the "delete" key deletes backwards (hint)
press "escape" to get out of edit mode
to save an exit type ":wq" and press "enter"

hope this helps, helped me big time.
View user's profileSend private messageAIM Address
^S^
Team XLink Administrator
Team XLink Administrator


Joined: 09 Sep 2004
Posts: 251
Location: Portugal

PostPosted: Tue Dec 14, 2004 6:40 pm Reply with quoteBack to top

or :x (shortcut for :wq)

EDIT: Thanks


Last edited by ^S^ on Wed Dec 15, 2004 9:53 am; edited 1 time in total
View user's profileSend private messageMSN MessengerICQ Number
A@ron
Kai Beginner
Kai Beginner


Joined: 15 Nov 2004
Posts: 8
Location: USA - Michigan

PostPosted: Wed Dec 15, 2004 3:46 am Reply with quoteBack to top

:x ^S^ you need to disable smilies or else people cannot read it.
View user's profileSend private message
Z0DIAC
Kai Beginner
Kai Beginner


Joined: 28 Nov 2004
Posts: 37
Location: Germany

PostPosted: Wed Dec 15, 2004 12:43 pm Reply with quoteBack to top

Everything works for me now, I started kaid on the WRT and XBMC finds kai services and servers.
Now I wan't to have to possibility to look into the kai network with my pc, too. So I added the MAC of my PC to the kaid.conf file. After that, i started kaid again:


Quote:
~ # /tmp/kaid -c /tmp/kaid.conf
KAI: Reading settings from /tmp/kaid.conf
CONFIG: Downloading settings from http://www.teamxlink.co.uk/connector/clientgetconfig.php...
CONFIG: 4 orbital(s) available...
KAI: Kai for KaiStation now starting...
KAI: Listening for UI's on :34522
KAI: Added 2 device(s) to engine cache.
PKTSNIFF: Setting up packet sniffer...
PKTSNIFF: Applying pcap filter 'ether src 00:50:F2:XX:XX:XX or ether src 00:02:3F:XX:XX:XX'
PKTSNIFF: Everything set with packet sniffer...
UI: Received: KAI_CLIENT_DISCOVER; (20 bytes)
UI: Received: KAI_CLIENT_DISCOVER; (20 bytes)
UI: Received: KAI_CLIENT_DISCOVER; (20 bytes)
...


The first MAC listed is my XBox (currently switched off), the second is the MAC of my PC. If I start the KaiUI on my PC, kaid on my WRT repeats the message "UI: Received: KAI_CLIENT_DISCOVER; (20 bytes)" continously until I close the KaiUI on my PC. But the KaiUI on my PC can't detect the kaiengine on my WRT. The messages on my WRT signals, that the WRT receives KAI_CLIENT_DISCOVER messages, so the setup seems to fine, I guess. Why does the kaid engine not answer?
View user's profileSend private messageVisit poster's website
^S^
Team XLink Administrator
Team XLink Administrator


Joined: 09 Sep 2004
Posts: 251
Location: Portugal

PostPosted: Wed Dec 15, 2004 3:19 pm Reply with quoteBack to top

probaby because its an endless loop, did you ever imagine why the directive is called ConsoleMacs? and not ConsoleAndComputerMacs?

Any IP packet sniffed from those ConsoleMacs is injected, those are being repeated over and over...
View user's profileSend private messageMSN MessengerICQ Number
Z0DIAC
Kai Beginner
Kai Beginner


Joined: 28 Nov 2004
Posts: 37
Location: Germany

PostPosted: Wed Dec 15, 2004 3:48 pm Reply with quoteBack to top

In other words: KaiUI on PCs are not supported by the kai engine on the WRT?
View user's profileSend private messageVisit poster's website
^S^
Team XLink Administrator
Team XLink Administrator


Joined: 09 Sep 2004
Posts: 251
Location: Portugal

PostPosted: Wed Dec 15, 2004 6:54 pm Reply with quoteBack to top

No! It means you SHOULDN'T use ComputerMacs in ConsoleMacs. If its called ConsoleMacs, just stick to the plan and use Xbox mac addresses there, don't put your PC mac address there.

Each and every UI available connects perfectly to kaid & kaiStation. If you can't, besides the pc mac address issue, you're doing something wrong and we need more info.
View user's profileSend private messageMSN MessengerICQ Number
Z0DIAC
Kai Beginner
Kai Beginner


Joined: 28 Nov 2004
Posts: 37
Location: Germany

PostPosted: Wed Dec 15, 2004 7:02 pm Reply with quoteBack to top

Uhm.. Sorry, I guess, I don't understand this...
So I don't have to specify the PC MAC anywhere (as the keyword ComputerMacs is not avalable) and my PC kaiUI should conect to the kai engine on the WRT "just like this"? If this is the case, can I have both connected at the sme time?
View user's profileSend private messageVisit poster's website
Rroet
Kai Beginner
Kai Beginner


Joined: 23 Nov 2004
Posts: 12
Location: Netherlands

PostPosted: Wed Dec 15, 2004 7:14 pm Reply with quoteBack to top

No,

enter your xbox mac address in there and use perhaps: xbmc !!

If not and your using kai xlink ui on your pc, then enter the mac address of your PC.

and for the router people:
automagically downloading and starting kaid on your wrt or alike router: http://www.teamxlink.co.uk/forum/viewtopic.php?t=5228
View user's profileSend private message
Z0DIAC
Kai Beginner
Kai Beginner


Joined: 28 Nov 2004
Posts: 37
Location: Germany

PostPosted: Wed Dec 15, 2004 8:10 pm Reply with quoteBack to top

Rroet wrote:
No,
enter your xbox mac address in there and use perhaps: xbmc !!
If not and your using kai xlink ui on your pc, then enter the mac address of your PC.

And if I want to use both GUIs?
But I already have it, I guess. Just leaving the PC's MAC out will give status information to the PC GUI and still leaves XBMC usable.
View user's profileSend private messageVisit poster's website
Z0DIAC
Kai Beginner
Kai Beginner


Joined: 28 Nov 2004
Posts: 37
Location: Germany

PostPosted: Sat Dec 18, 2004 7:58 pm Reply with quoteBack to top

wrote:
where do we get kaid.conf from
there no link for that


http://www.zbit.pt/kai/mips/fs/etc/kaid.conf

This was documented in the next thread....
View user's profileSend private messageVisit poster's website
YogSothoth70
Kai Beginner
Kai Beginner


Joined: 30 Nov 2004
Posts: 47
Location: USA - Colorado

PostPosted: Thu Dec 23, 2004 3:06 am Reply with quoteBack to top

Important!!!

(from sveasoft's site)

Quote:
*WRT54G V2.2 and WRT54GS V1.1 require Alchemy-6.0rc4 or later.
View user's profileSend private messageAIM Address
Treebear
Kai Beginner
Kai Beginner


Joined: 23 Oct 2004
Posts: 11
Location: Australia - VIC

PostPosted: Sat Jan 01, 2005 11:16 pm Reply with quoteBack to top

I'm using Alchemy-6.0-RC5a.

After downloading the kaid files to my webserver, I've been using the script:
wget http://192.168.1.99/~bruce/kaid.conf -O /tmp/kaid.conf
wget http://192.168.1.99/~bruce/kaid -O /tmp/kaid
cd /tmp && chmod +x /tmp/kaid && /tmp/kaid &

My kaid.conf for my WRT54G 1.0 is:
UIBind = :34522
OrbPort = 34525
EngineBind = :37500
SniffDevice = br0
Protocol = 4
ConsoleMacs = 00:50:f2:67:83:80;
ConfigURL = http://www.teamxlink.co.uk/connector/clientgetconfig.php
Username =
Password =
Autologin =
IgnoreTCP = 1

I then get:
~ # KAI: Reading settings from kaid.conf
CONFIG: Downloading settings from http://www.teamxlink.co.uk/connector/clientgetconfig.php...
CONFIG: 4 orbital(s) available...
KAI: Kai for KaiStation now starting...
KAI: Listening for UI's on :34522
KAI: Added 1 device(s) to engine cache.
PKTSNIFF: Setting up packet sniffer...
PKTSNIFF: Applying pcap filter 'ether src 00:50:f2:67:83:80'
PKTSNIFF: Everything set with packet sniffer...

But this is my output using the 28/12/04 XBMC as the UI. The UI keeps saying 'The service is not connected. Would you like to reconnect...":
UI: Received: KAI_CLIENT_ATTACH; (18 bytes)
UI: Sending msg 'KAI_CLIENT_ATTACH;' to controller UI.
UI: Received: KAI_CLIENT_GETSTATE; (20 bytes)
UI: Sending msg 'KAI_CLIENT_NOT_LOGGED_IN;;;0;' to controller UI.
UI: Received: KAI_CLIENT_LOGIN;USER;PASS; (33 bytes)
UI: Sending msg 'KAI_CLIENT_STATUS;Querying orbital mesh...;' to controller UI.
ORBDGRAM: Sent Orb Probe to 81.27.99.53:34525
ORBDGRAM: Sent Orb Probe to 212.26.219.228:34525
ORBDGRAM: Sent Orb Probe to 64.81.178.4:34525
ORBDGRAM: Sent Orb Probe to 64.27.6.84:34525

Is there an easy answer? Do I need any ports forwarded in my router? Or particular DNS settings? I can't even ping those Orb Probe IPs - I get 'unknown host'.

Cheers,
B
View user's profileSend private message
raver2046
Kai Beginner
Kai Beginner


Joined: 12 Aug 2004
Posts: 12
Location: France

PostPosted: Mon Jan 03, 2005 4:36 pm Reply with quoteBack to top

i have mirrored the rar file here :

http://raver2046.free.fr/xbox/kai-linksys-firmware/kaiEngine-For-WRT54G.rar

_________________
my hostname - tiburon hyundai - gmail invites spooler
View user's profileSend private messageVisit poster's websiteMSN Messenger
Display posts from previous:      
Post new topicReply to topic


 Jump to:   



View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group :: Theme by Daz :: All times are GMT