Hide thumbs Also See for MiraBox:

Advertisement

A. Package contents .............................................................................................................................................. 2
B. MiraBox appearance and connecting ports ................................................................................................... 5
C. LED indication .................................................................................................................................................... 7
D. System console and debugging ...................................................................................................................... 8
1.
Driver and tool installation..................................................................................................................................... 8
2.
Go into debugging console. ................................................................................................................................ 11
3.
WiFi AP mode testing ......................................................................................................................................... 12
4.
WIFI Client mode testing .................................................................................................................................... 14
5.
Bluetooth testing ................................................................................................................................................ 17
6.
Gigabit ethernet ports ......................................................................................................................................... 18
7.
USB 3.0 port ..................................................................................................................................................... 19
8.
Multi-IO port ...................................................................................................................................................... 20
9.
Reset................................................................................................................................................................ 28
10.
Download sites .............................................................................................................................................. 29
MiraBox User Guide

Table of Contents

MiraBox User Guide -page1 / 29
-Sep18, 2012

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the MiraBox and is the answer not in the manual?

Questions and answers

Summary of Contents for GlobalScale MiraBox

  • Page 1: Table Of Contents

    MiraBox User Guide -Sep18, 2012 Table of Contents A. Package contents .............................. 2 B. MiraBox appearance and connecting ports ....................5 C. LED indication ..............................7 D. System console and debugging ........................8 Driver and tool installation............................. 8 Go into debugging console..........................11 WiFi AP mode testing ............................
  • Page 2: Package Contents

    MiraBox User Guide –page2 / 29 A. Package contents 1. Standard package contents...
  • Page 3: Ethernet Cable

    MiraBox User Guide –page3 / 29 MiraBox standard contents List Remark MiraBox 1 unit Mirabox main unit AC-DC Power Adapter 1 pc Input 90-240VAC / output 5V,3A DC Ethernet Cable 1 pc Cat 5e Mini-USB Cable 1 pc For debug console use...
  • Page 4 MiraBox User Guide –page4 / 29 2. Optional package contents MiraBox Optional contents List Multi I/O Cable 1 pc Connect from MiraBox to JTAG/GPIO box GPIO Cable 1 pc For GPIO port connection MiraBox JTAG/GPIO box 1 pc External JTAG/GPIO box for debugging...
  • Page 5: Mirabox Appearance And Connecting Ports

    MiraBox User Guide –page5 / 29 B. MiraBox appearance and connecting ports...
  • Page 6 MiraBox User Guide –page6 / 29 Mirabox ports description Connection port Description Remark Power Port DC 5V/3A port RJ45 #1 Gigabit Ethernet port1 RJ45 #2 Gigabit Ethernet port2 USB 3.0 port#1 USB 3.0 high speed host USB 3.0 port#2 USB 3.0 high speed host...
  • Page 7: Led Indication

    MiraBox User Guide –page7 / 29 C. LED indication LED indication table Color/ Pattern Description Power on LED Solid green Upon power on, this LED lights up WiFi AP Blinking blue Indicate WiFi AP mode is activated as default after boot up...
  • Page 8: System Console And Debugging

    (4-1) Connect Mirabox to your Windows PC. Connect Mini USB cable here. The other end connects to computer’s USB port. (4-2) The first time when you connect Mirabox to the Windows computer, you will be asked to install the driver.
  • Page 9 MiraBox User Guide –page9 / 29 (4-3) Run “2KXPVDock.exe” and the driver will be installed to the PATH “C:\cabs\2KXPVDock”. Click “Next” to complete the installation (5) Find out the com port of your debugger on your windows PC. (5-1) Right click [My Computer]  [Properties]  [Hardware]  [Device Manager]...
  • Page 10 MiraBox User Guide –page10 / 29 (5-2) Find out your com port as below (here is COM3 for example). (6) Run “putty.exe” and configure as below on your Windows PC. The “Serial line” should be configured the same as the COM port in Device Manager Give it a name and “Save”...
  • Page 11: Go Into Debugging Console

    MiraBox User Guide –page11 / 29 2. Debugging console (1) Power on the MiraBox and you will see messages on screen as below. (2) You can press any key to stop auto-boot when you see the bootdelay timer is counting down.
  • Page 12: Wifi Ap Mode Testing

    3. WiFi AP mode testing MiraBox Server has a built-in WiFi module which is in compliance with 802.11 b/g/n standard. The WiFi can work as client or AP mode but only one at a time. The default mode is AP mode every time when it powers on, and the indication light D6 is blinking blue.
  • Page 13 MiraBox User Guide –page13 / 29 2. Select “View Available Wireless Networks” 3. Choose name with “mira-uAP-6344”, here digits ”6344” is the last four digits of MAC address for the MiraBox WiFi. Then click “Connect”. 4. Successfully connected.
  • Page 14: Wifi Client Mode Testing

    MiraBox User Guide –page14 / 29 4. WIFI Client mode testing (1) Switch to WiFi client mode by entering command as following. # wlan.sh When done successfully, the LED (D7) is blinking green and mlan0 is activated. (2) To check mlan0 with ifconfig command.
  • Page 15 MiraBox User Guide –page15 / 29 (3) Scan for WiFi AP nearby. # iwlist mlan0 scan...
  • Page 16 MiraBox User Guide –page16 / 29 (4) Connect to WiFi AP. # iwconfig mlan0 essid <AP’s ID> # dhclient mlan0 # ifconfig mlan0 #ping 192.168.1.1 The below screenshot is an example for how to connect a mlan device. If you can see IP address (for example: 192.168.1.102), that means you have already connected and got an IP.
  • Page 17: Bluetooth Testing

    MiraBox User Guide –page17 / 29 5. Bluetooth testing There is a bluetooth chip built-in Mirabox but disabled as default. (1) Enable the Bluetooth function. # turnon_bt.sh # hcitool -i hci0 dev If you see the message like this, it means your Bluetooth is up and running.
  • Page 18: Gigabit Ethernet Ports

    MiraBox User Guide –page18 / 29 6. Gigabit Ethernet ports (1) Connect the two Gigabit Ethernet ports to a Gigabit switch by network cables. Normally it will get an IP address assigned by DHCP. Enter command as below to check: # ifconfig (2) Test the speed of Gigabit Ethernet ports.
  • Page 19: Usb 3.0 Port

    MiraBox User Guide –page19 / 29 7. USB 3.0 port (1) Plug in the usb3.0 hard disk or flash disk to the USB port, then you can see some driver messages as below of this device. (2) View the usb3.0 hard disk.
  • Page 20: Multi-Io Port

    MiraBox User Guide –page20 / 29 8. Multi-IO port Connect the MIRABOX JTAG/GPIO box to the Multi-IO port via Multi-IO cable. Multi-I/O port Multi-I/O port Multi-I/O Cable MiraBox JTAG/GPIO box 9. Multi-IO port- JTAG interface Please connect the debugger to the 20-pin JTAG slot as shown in the picture; here we use the Marvell BlackStone debugger and XDB (Marvell eXtreme Debugger 5.1) software on Windows PC for...
  • Page 21 MiraBox User Guide –page21 / 29 Debugger connection MiraBox Marvell BlackStone debugger MiraBox JTAG GPIO Run XDB on Windows PC...
  • Page 22 MiraBox User Guide –page22 / 29 10. GPIO interface and control (1) LED demo program There is a demo program to show the GPIO LEDs by entering command as below: # ledtest1 This will light up all the LEDs. (2) Write a simple program to control the LED...
  • Page 23 MiraBox User Guide –page23 / 29 a. Prepare a pc with linux Fedora 14 installed, and download the cross tool chain “arm-marvell-linux-gnueabi-vfp.tar.bz2” from our website http://www.plugcomputer.org/downloads/d2plug/ http://www.globalscaletechnologies.com b. Install and configure the tool chain Copy “arm-marvell-linux-gnueabi-vfp.tar.bz2” to directory /opt # cd /opt # tar –jxf arm-marvell-linux-gnueabi-vfp.tar.bz2...
  • Page 24 MiraBox User Guide –page24 / 29 /*i2c_led.c*GTI--Globalscaletechnologies.,INC**/ #include <stdio.h> #include <linux/types.h> #include <stdlib.h> #include <fcntl.h> #include <unistd.h> #include <sys/types.h> #include <sys/ioctl.h> #include <errno.h> #define I2C_RETRIES 0x0701 #define I2C_TIMEOUT 0x0702 #define I2C_RDWR 0x0707 #define I2C_M_RD 0x0001 #define I2C_M_NOSTART 0x4000 /* if I2C_FUNC_PROTOCOL_MANGLING */...
  • Page 25 MiraBox User Guide –page25 / 29 struct i2c_rdwr_ioctl_data e2prom_data; fd=open("/dev/i2c-0",O_RDWR);/* /dev/i2c-0 is registered to the system */ if(fd<0) perror("open error"); e2prom_data.nmsgs=2; e2prom_data.msgs=(struct i2c_msg*)malloc(e2prom_data.nmsgs*sizeof(struct i2c_msg)); if(!e2prom_data.msgs) perror("malloc error"); exit(1); ioctl(fd,I2C_TIMEOUT,1);/*timeout */ ioctl(fd,I2C_RETRIES,2);/*retries times*/ /***write data to e2prom**/ e2prom_data.nmsgs=1; (e2prom_data.msgs[0]).len=2; (e2prom_data.msgs[0]).addr=0x25;//e2prom device address (e2prom_data.msgs[0]).flags=0;...
  • Page 26 MiraBox User Guide –page26 / 29 /*********** control the GPIO OP-2 **************************************/ //turn on LED (e2prom_data.msgs[0]).buf[0]=0x1a;// e2prom write address (e2prom_data.msgs[0]).buf[1]=0x0;//the data to write ret=ioctl(fd,I2C_RDWR,(unsigned long)&e2prom_data); if(ret<0) perror("ioctl error3"); //turn off LED sleep(1); //delay 1 second (e2prom_data.msgs[0]).buf[0]=0x1a;// e2prom write address (e2prom_data.msgs[0]).buf[1]=0xFF;//the data to write ret=ioctl(fd,I2C_RDWR,(unsigned long)&e2prom_data);...
  • Page 27 Give this program the name “i2c_led.c” and save to “/home” directory, then compile it. # cd /home # arm-marvell-linux-gnueabi-gcc -o led i2c_led.c Then copy the executable file “led” to Mirabox and run it. You can see the LED is controlled by yourself.
  • Page 28: Reset

    MiraBox User Guide –page28 / 29 11. Reset 6、GPIO reset button hole. (1) GPIO reset button The reset button is connected to one GPIO which means controlled by software. When you press down this button by using a sharp pin, it arouses attention of CPU. Then CPU asserts the master reset low signal to start the system reset session.
  • Page 29: Download Sites

    MiraBox User Guide –page29 / 29 12. Download sites To download the files for MiraBox server, please visit: http://www.globalscaletechnologies.com/t-downloads.aspx Other useful resource links are: http://www.plugcomputer.org/ http://plugcomputer.org/plugwiki/index.php/GuruPlug...

Table of Contents