wicd crash!

Hey guys,

the latest wicd will crash if you try to edit settings with wicd-curses or wicd-gtk.

The bug is caused by a simple coding bug that is triggered everytime when the python script tries to save a unicode string from the settings:

TypeError: translate() takes exactly one argument (2 given)

Full Error:

$ wicd-gtk

** (process:1063): WARNING **: Trying to register gtype 'GMountMountFlags' as enum when in fact it is of type 'GFlags'

** (process:1063): WARNING **: Trying to register gtype 'GDriveStartFlags' as enum when in fact it is of type 'GFlags'

** (process:1063): WARNING **: Trying to register gtype 'GSocketMsgFlags' as enum when in fact it is of type 'GFlags'
Importing pynotify failed, notifications disabled.
Has notifications support False
Loading...
Connecting to daemon...
Connected.
displaytray True
Done loading.
refreshing...
ESSID : <hidden>
ESSID : a_network
ESSID : another_network
setting encryption info...
Traceback (most recent call last):
  File "/usr/share/wicd/gtk/gui.py", line 666, in edit_advanced
    if self.run_settings_dialog(dialog, ttype, networkid, networkentry):
  File "/usr/share/wicd/gtk/gui.py", line 679, in run_settings_dialog
    if self.save_settings(nettype, networkid, networkentry):
  File "/usr/share/wicd/gtk/gui.py", line 644, in save_settings
    if not networkentry.save_wireless_settings(networkid):
  File "/usr/share/wicd/gtk/netentry.py", line 940, in save_wireless_settings
    return self.advanced_dialog.save_settings(networkid)
  File "/usr/share/wicd/gtk/netentry.py", line 591, in save_settings
    encrypt_methods[self.combo_encryption.get_active()]['type'])
  File "/usr/share/wicd/gtk/netentry.py", line 532, in set_net_prop
    wireless.SetWirelessProperty(self.networkID, option, value)
  File "/usr/lib/python2.7/site-packages/dbus/proxies.py", line 145, in __call__
    **keywords)
  File "/usr/lib/python2.7/site-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Python.TypeError: Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/dbus/service.py", line 707, in _message_cb
    retval = candidate_method(self, *args, **keywords)
  File "/usr/share/wicd/daemon/wicd-daemon.py", line 1067, in SetWirelessProperty
    prop = misc.sanitize_config(prop)
  File "/usr/lib/python2.7/site-packages/wicd/misc.py", line 433, in sanitize_config
    return s.translate(None, table)
TypeError: translate() takes exactly one argument (2 given)

I have found a Solution on this thread.

in /usr/share/wicd/daemon/wicd-daemon.py  [lines 1067 and 1411]

prop = misc.sanitize_config(prop)

to

 
prop = misc.sanitize_config(str(prop))

restart the wicd daemon and rock on! (over wifi) ;)

A bugreport was submitted, so you can wait a few days and receive the fix on the usual way (pacman etc..)

IRONBOX Issue #2: Analysing the NAND

The 8×8 LED matrix should be controled direcrly “out of the box”. But before we can talk to it, we have to hack it.. and before we can hack it, we need a way to read from and write to the internal NAND flash chip.

After some research on free60.org i’ve collected some usefull informations. The NAND chip used inside the xbox is a HY27US, wich is controlled by the flash controller, wich is on the other hand connected to the internal SPI bus.

SPI bus connection for all Xbox360 FAT models.

SPI bus connection for all Xbox360 SLIM models.

I’ve only used the SPI bus for programming AVR MCU’s. So it’s a perfect moment to dive a little bit deeper into this topic :)

 

NAND chip and board connectors

IRONBOX Issue #1 Introduction

Hey friends and fellows,

Lets introduce my new project:

Ironbox (Ironman themed Xbox360)

TODO:

  • Giving the case a nice look similar to the Ironman armor.
  • Replace the green/red LED’s on the frontpanel with blue/red ones.
  • Try to output the current state of the DVD drive with some more LED’s.
  • Building an 8×8 LED matrix into the case.
  • Create a connection between Matrix and xbox via the internal UART port.
  • … Document the whole thing!

to be continued ;)

Finished 5x5x5 LED Cube

Hey there,

finaly i finished my Arduino based LED cube :) It was my second electronic Project and its amazing that this Cube still works (like expected).

But enouth, lets see some Pictures and Videos :D

 

Ledcube PCB from behind

Here is the actual Arduino PCB. it has an ATMEGA328P as Core. the green Board is the USB to Serial Circuit I found in an old Mobile Data cable. it`s a PL2313 Chip that do the Magic. I totaly love to reuse old and useless things ;)

I used this Instructable as a start point and resource (big thanks to the Author). Like the original, my Cube uses 5x 3 to 8 “one hot” Bitdecoders (74HC238). I replaced the NPN transistors with logic level MOSFET`s (ILN…) and must say this was a realy bad idea. They are so much slower than normal bipolar transistors (but still faster than our eyes).

In a earlier Post, i`ve said i want to put some cool sound sensing in it.. and psst.. i really did it! :D i used an electret microphone and an LM386 OPAMP Chip.. there is also a nice integer based FFT Library for the Arduino

okay boys n girls.. enougth Pictures.. lets see some Videos :D

 

I`ve build this Cube as a birthday present my brother-in-law, Ralph.. And he made also a little Video. Thank you :)

 

A little summary:

Okay.. it was a lot of work but also a lot of fun. i have learned many new things. I saw some interesting electric effects like swinging Parts and learned how to fix them. And most importand: iam totally happy with the result (but next time i will etch a board).

You can take a look at the sourcecode on my new github account.

Thank you for reading,

this was Tino Göhlert for cmdrkeen.net.. Signing out!

LED CUBE final tweaking

The little Board that you see at the beginning holds the atmega32 and the USB to serial converter. Its an PL2323 that i ripped out of an >10 year old data cable for a mobile phone.

I currently waiting for some parts that i need to get the final wiring for the power supply done.