ngocthanhit / xig

Automatically exported from code.google.com/p/xig
0 stars 0 forks source link

xig-src-1.5.0 wouldn't run #30

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. On a mipsel router (asus WL500g, Dlink DL320 etc) install python 2.7, 
download tar.gz, unpack, change directory to src/
2. _No_ properly configured XBee is connected to UART port
3. Run python2 xig.py
4. Last output line is cp4pc.edp - my IP is ... . Then nothing happens.

What is the expected output? What do you see instead?
Expecting this: http://faludi.com/xig/images/XIG_Linux_terminal.png
Getting half of it, IP line comes the last, nothing happens then.

What version of the product are you using?
xig-src-1.5.0

P.S. absolutely same behaviour I get on Win 7 machine running exe file.

Please provide any additional information below.

Original issue reported on code.google.com by andrey.p...@gmail.com on 1 Oct 2012 at 6:50

GoogleCodeExporter commented 9 years ago
This is the furthest I could come:

cp4pc.xbee - Exception while creating serial port (/dev/ttyS1, 57600): 
ddo_get_param: timeout fetching DDO parameter (HV@None).
xig - XBee Internet Gateway (XIG) v1.5.0 starting.
cp4pc.rci - Starting web server at http://localhost:8000
Exception in thread Thread-3:
Traceback (most recent call last):
  File "/opt/lib/python2.7/threading.py", line 551, in __bootstrap_inner
    self.run()
  File "./library/ext/cp4pc/rci/__init__.py", line 213, in run
    make_server('', local_port, self, handler_class=RCIWSGIRequestHandler).serve_forever()
  File "/opt/lib/python2.7/wsgiref/simple_server.py", line 144, in make_server
    server = server_class((host, port), handler_class)
  File "/opt/lib/python2.7/SocketServer.py", line 408, in __init__
    self.server_bind()
  File "/opt/lib/python2.7/wsgiref/simple_server.py", line 48, in server_bind
    HTTPServer.server_bind(self)
  File "/opt/lib/python2.7/BaseHTTPServer.py", line 108, in server_bind
    SocketServer.TCPServer.server_bind(self)
  File "/opt/lib/python2.7/SocketServer.py", line 419, in server_bind
    self.socket.bind(self.server_address)
  File "/opt/lib/python2.7/socket.py", line 224, in meth
    return getattr(self._sock,name)(*args)
error: [Errno 125] Address already in use

cp4pc.edp - my device ID is: 00000000-00000000-001731FF-FFDF8479
cp4pc.edp - my IP is 
cp4pc.edp - my device ID is: 00000000-00000000-001731FF-FFDF8479
cp4pc.edp - my IP is 
cp4pc.rci - Received query_state request

Original comment by andrey.p...@gmail.com on 1 Oct 2012 at 10:44

GoogleCodeExporter commented 9 years ago
P.S. Hardware is Asus wl500gp running Oleg's firmware (http://wl500g.info/)

Original comment by andrey.p...@gmail.com on 1 Oct 2012 at 10:45

GoogleCodeExporter commented 9 years ago
I changed logging levels to debug. Here's what XID doing after showing IP:
['0xa', '0x48', '0x56']
cp4pc.xbee - TX: API ID = 0x8
['0xb', '0x48', '0x56']
cp4pc.xbee - TX: API ID = 0x8
['0xc', '0x48', '0x56']
cp4pc.xbee - TX: API ID = 0x8
['0xd', '0x48', '0x56']
cp4pc.xbee - TX: API ID = 0x8
['0xe', '0x48', '0x56']
cp4pc.xbee - TX: API ID = 0x8
['0xf', '0x48', '0x56']
cp4pc.xbee - TX: API ID = 0x8
['0x10', '0x48', '0x56']
cp4pc.xbee - TX: API ID = 0x8
['0x11', '0x48', '0x56']
cp4pc.xbee - TX: API ID = 0x8
['0x12', '0x48', '0x56']
cp4pc.xbee - TX: API ID = 0x8
['0x13', '0x48', '0x56']
cp4pc.xbee - TX: API ID = 0x8

Original comment by andrey.p...@gmail.com on 2 Oct 2012 at 7:36

GoogleCodeExporter commented 9 years ago
This may be due to the firmware version and baud rate you have loaded on your 
XBee module.  What firmware version are you using?

Original comment by Jordan.H...@gmail.com on 19 Oct 2012 at 8:49

GoogleCodeExporter commented 9 years ago
Hi,
I am getting the exact same problem on Windows 7.
Do you have any solution for this ?

I am not sure if this is router configuration or not.

I manager to run it once, but after closing/opening xig_app, I get stuck after 
my IP is ...

Sometimes I get [Errno 10053] An established connection was aborted by the 
software in your host machine (but not always).

I tried disabling Firewalls, antivirus, firewall on router (TP-LINK with DDWRT).

Original comment by mbe...@gmail.com on 30 Jul 2013 at 7:59