Sketch below shows how to split comma or any other character delimited string into an array.

Here is the output

Word 1 : One_1
Word 2 : Two_2
Word 3 : Theree_3
Word 4 : Four_4
Word 1 : 1_One
Word 2 : 2_Two
Word 3 : 3_Theree
Word 4 : 4_Four
Word 5 : 5_Five
Word 1 : One
Word 2 : Two
Word 3 : Theree
Word 4 : Four
Word 5 : Five

This is a solution on how to fix the problem where my Seeedstudio RePhone Mass Storage Mode is not working probably.

Mass Storage Mode works in first time, subsequently it does not appear as a "Removable Disk" (Red LED ON, Green LED OFF). I do get Alcatel single RNDIS network interface under the device manager, the RNDIS interface is keep on rebooting every few seconds. This problem only happen on Win7, WinXP is working fine.

You can fix the problem by disable the "automatic driver installation"

Disable automatic driver installation

There's a few ways to disable the "automatic driver installation"

Scan for hardware changes

  • Open "Device Manager" and navigate to "Network adapters"
  • Right click on "Alcatel single RNDIS Interface" and select uninstall
  • Click on Action Menu on the Device Manager and select "scan for new hardware changes"
Tuesday, 20 October 2015 22:02

OpenWrt: Control LED manually

Control LED manually

Due to the limited GPIO availability on the wireless router, you may want use the router LED pin to provides a few more GPIOs. This describes how to use the LED pin on a wireless router as binary outputs. 

Sunday, 20 September 2015 22:15

Compiling OpenWrt from source

Compiling OpenWrt from source

To compile OpenWrt from source, you need a computer running Linux such as Ubuntu. If you are like me and don't have a Linux computer, you can still use your Windows computer to compile OpenWrt.

In order to run Linux on a Windows, you must install virtual machine on you computer. Virtual machines allow you to run any operating system in a window on your desktop, I'm using the free VirtualBox for my case, please read here for details.

Setting up 3G network on Openwrt Barrier Breaker

opkg update
opkg install comgt kmod-usb-serial kmod-usb-serial-option kmod-usb-serial-wwan usb-modeswitch
opkg install luci-proto-3g #optional, this is for 3G device configuration support in Luci
/etc/init.d/usbmode enable

Insert 3G dongle and restart router.

Append to following line to /etc/config/network configuration file. Here is the settings for setup Maxis 3G network.

config interface 'wan'
option proto '3g'
option apn 'unet'
option username 'maxis'
option password 'wap'
option device '/dev/ttyUSB0'
option service 'utms'

Restart the router.

Back to Top