Wiz Usb Host


sbock

Chaos is our mode and modus
Joined
Dec 22, 2005
Messages
3,778
Location
Germany
Hi!

Now that we know the ext pin-out (thanks to andymanone) and that the USB host is implemented (thanks to notaz), I decided to try it out with my retail Wiz.

Here we go:
First I dismantled my serial cable and soldered the pins responsible for the USB host:
Bild3.jpg



Here's the pin-out from andymanone:

05 - + 3.7 V
17 - USB + Data (Host)
18 - USB - Data (Host)
19 - USB Ground

The EXT port and the Samsung E810 plug count this way:
Code:
------------------------
24                     1

Now all I need is a piece of USB cable with jack type A:

White - Data -
Black - Ground
Green - Data +
Red - +5 V

My first try didn't succeed. So I added an active USB Hub:

Bild8.jpg


Bild1.jpg



Now it's working great. Set USB Host in the settings Menu to ON and get this:

Bild7.jpg



Well, what can we do with this? E.G play PicoDrive with a Competition Pro joystick:

Bild2.jpg



Or hacking with Termula and USB keyboard:

Bild4.jpg



Now I searched for the problems without hub and found a wrong soldered pin. After changing this we can use the host without external power supply:

Code:
Using /lib/modules/2.6.24/kernel/drivers/hid/usbhid/usbhid.ko
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver
usb 1-1: USB disconnect, address 2
usb 1-1: new low speed USB device using pollux-hcd and address 3
usb 1-1: configuration #1 chosen from 1 choice
input,hidraw0: USB HID v1.00 Gamepad [MOSIC      SPEED-LINK Competition Pro ] on
 usb-pollux-1
usb 1-1: Product: SPEED-LINK Competition Pro
usb 1-1: Manufacturer: MOSIC

Bild5.jpg

Bild6.jpg



USB sticks aren't working yet. They are recognized, but I think storage support is not implemented . Mice work, but I don't find a suitable application yet.
What's next? Try to get WLAN working. I have a stick with Ralink 3070 chip here who is identified from the Wiz. I found the sourcecode for the driver here.
Now I must cross-compile this (Not a trivial task for me... ;) ). Anybody here who want's to help me? :rolleyes:

Remarks: My Wiz is a standard retail model with firmware 1.1.0. USB filtering is not necessary but it might me included on the devbords.
The +3,7 V pin 5 even has power when the Wiz is turned off (Thanks to Claude for this hint).

Regards,
Stephan
 
Thanks iprice! First I made a mistake and I only get it working with an active hub. But I found the problem and at least low power USB units like keyboards, joysticks and mice work with power from the Wiz only.
 
hmm, i though usb host wasnt working at all, oh well good to see.

As for that wireless driver, its not exactly trivial to recompile. I think you would need the kernel source and gcc version 3.4.4 in order to build a module.
 
Any other progress? WiFi, BT, LAN or even FlashStick? I'm just curious.
And other thought: "The +3,7 V pin 5 even has power when the Wiz is turned off (Thanks to Claude for this hint)." Does this mean, that line is wired directly to battery (maybe even without any protection)?

edit: mistype
 
And how about a camera . What do you think will it be possible to connect a camera , wifi and make it a wireless camera . I'm not sure but I think I have seen cameras from creative which had open source drivers :) :) ( Dream can they become true ?? )
 
As for that wireless driver, its not exactly trivial to recompile. I think you would need the kernel source and gcc version 3.4.4 in order to build a module.

Sounds not very easy to me... :( Thought I could use Orkie's crosscompiler ( I know, stupid rookie error...)

Any other progress? WiFi, BT, LAN or even FlashStick? I'm just curious.
And other thought: "The +3,7 V pin 5 even has power when the Wiz is turned off (Thanks to Claude for this hint)." Does this mean, that line is wired directly to battery (maybe even without any protection)?

No, no progress yet. Not much time and my provider locked my internet connection last week... Bastards. :angry:
Yes, we think it's directly connected to the battery. We don't know if there is a protection or a current restriction.
 
so just a bump of this, i such at soldering and all that jazz but if it just so happens all good things come of this, would their be selling of needed cables possibly?
 
OK, now we have some progress here with the USB WLAN stick:

Code:
root@wiz:/mnt/sd/App/wireless# insmod rt3070sta.ko
Using rt3070sta.ko
rtusb init --->
usbcore: registered new interface driver rt2870
root@wiz:/mnt/sd/App/wireless# ./iwconfig
lo        no wireless extensions.

ra0       RT2870 Wireless  ESSID:""  Nickname:""
          Mode:Auto  Frequency=2.412 GHz
          Link Quality=10/100  Signal level:0 dBm  Noise level:-143 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

root@wiz:/mnt/sd/App/wireless# ifconfig ra0 inet 192.169.1.1 up
0x1300 = 00064300
root@wiz:/mnt/sd/App/wireless# ./iwconfig
lo        no wireless extensions.

ra0       RT2870 Wireless  ESSID:""  Nickname:"RT2870STA"
          Mode:Ad-Hoc  Frequency=2.422 GHz  Cell: 02:21:E8:A9:97:08
          Bit Rate=150 Mb/s
          RTS thr:off   Fragment thr:off
          Encryption key:off
          Link Quality=70/100  Signal level:0 dBm  Noise level:-97 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

root@wiz:/mnt/sd/App/wireless# ping 192.169.1.2
PING 192.169.1.2 (192.169.1.2): 56 data bytes
64 bytes from 192.169.1.2: icmp_seq=0 ttl=64 time=8.8 ms
64 bytes from 192.169.1.2: icmp_seq=1 ttl=64 time=0.8 ms
64 bytes from 192.169.1.2: icmp_seq=2 ttl=64 time=1.0 ms

--- 192.169.1.2 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 0.8/3.5/8.8 ms

Many thanks to GPH. The new SDK included a matching driver for my stick. My own compiling always ended with no success...
The MSI US 300 Ex Lite adapter now runs without active hub or voltage transformer directly at the EXT port.
I can ping my N900 using the ad-hoc modus and no encryption yet.
 
is it feasible that one day we may be able to do TV out AND usb support (for keyboard/mouse on say c64 and amiga emulator) and just to be a greedy bugger, external power all at the same time? That would make my day. I'm a little worried that the wiz only has the 1 wierdo slot for all these different thingamyjigs.

I'm still a bit narked that I bought my Wiz thinking I'd just whip up one of my shoddy half arsed attempts at a cable and be able to plug it into the composit/scart port of a bog standard TV. I really believed I'd pop in some nice mediaplayer and be able to use it to watch my vast porn collection anywhere I went... :ph34r:
 
I can't wait for GPH to release the breakout board/WLAN Dongle/whatever for the Wiz. IMHO, not being able to easily use that EXT port is a real deal-breaker for development .. sure, I've gotten some nice cables in the meantime, hacked up for me, but the problem is: none of my potential users have these cables, though ..
 
torpor said:
I can't wait for GPH to release the breakout board/WLAN Dongle/whatever for the Wiz. IMHO, not being able to easily use that EXT port is a real deal-breaker for development .. sure, I've gotten some nice cables in the meantime, hacked up for me, but the problem is: none of my potential users have these cables, though ..
+1
 
Last edited by a moderator:
Infrastructure mode and WEB are working too. I don't try WPA because I'm too lazy to fiddle with WPA_Suplicant...
As there are no net programs like browser or Samba available yet, I tried remote debugging using the new SDK and Codeblocks:

Code:
root@wiz:/mnt/sd/App/wireless# ./gdbserver Host:1234 /mnt/sd/App/Blue/Blue.gpe
Process /mnt/sd/App/Blue/Blue.gpe created; pid = 852
Listening on port 1234
Remote debugging from host 192.168.0.4
FB_OpenMouse()
Using tslib touchscreen
HYUN_DEBUG: pollux_audio_open()
HYUN_DEBUG: pollux_audio_open()
audio_set_fragments

Seem to work fine...
More to come...
 
that really starts to get interesting! debugging would be sooooooooooo nice :)
 
Ok, I made a new smaller adapter:

Ext%20Adapter.jpg

Wiz_wlan.jpg


The driver and script files are now in the archive.
I also added a short how-to:

WLAN support for Wiz.

Driver and script for WLAN USB sticks with Ralink RT2870/3070 chip (e.g. MSI US 300 EX lite).
All you need is a simple Wiz EXT port to USB adapter or a Wiz developer board.

How to build an adapter:

You need a Wiz EXT port plug (e.g. some Samsung phone data cables) and an USB type "A" jack with cable e.g. from an USB extension cord.

Pin-out:

EXT port - USB jack - Signal:
05 - Red - +5V
17 - Green - USB + Data (Host)
18 - white - USB - Data (Host)
19 - black - USB Ground

Wiz EXT port:

------------------------
24__________1

Looking from volume buttons to headphone jack.

How to install:

Extract the archive and copy the folder to the SD card.
Boot the Wiz, activate USB host in the settings menu and plug in adapter and USB stick.
Run the "WLAN_Start.gpe" script via launcher.
Wait until the Wiz menu is back again, now WLAN should be operational.

You can edit the "RT2870STA.DAT" file with an editor to change parameters like mode, channel encryption etc.
Read the "README_RT3070.txt" for information about possible settings.

You can change the Wiz IP address editing the "WLAN_Start.gpe" with an editor.

Default values are:

Mode: Ad-hoc
Channel: 9
Country: DE
SSID: Wiz
Encryption: Off
IP: 192.168.0.14

You can now use WLAN remote debugging with Codeblocks and gdpserver ( file included).

Attention: Unplug the adapter after you shutdown the Wiz as it's always connected to the battery!

Thanks to GPH for compiling and providing the driver!

sbock
 
I finally find a application that support network functions to test if the connection is reliable.
It's OMMPC2x, a port of MPD (Music Player Daemon) and MPC. Due to it's server/client architecture it's ideal for testing.
You can use it to:

- Remote control the MPD server on your PC with the Wiz.
- Control the Wiz MPD server with your PC (or e.g. the N900):

MPC.jpg


Additionally you can receive a MPD music stream from your PC and play it on the Wiz. Works really great...

And here a test how long the batteries lasts with enabled WLAN:

With WLAN:
Code:
STATISTICS:
Clock Speed: 533 MHz
Running Time: 4:10:00
Average FPS: 143.22

Without WLAN:
Code:
STATISTICS:
Clock Speed: 533 MHz
Running Time: 6:20:00
Average FPS: 154.16

Not too shabby methinks...
 
This looks really, really nice. I'm off to find myself a USB stick I can finally plug into my Wiz and get access to for debugging remotely .. nice one!
 
Back
Top