WiFly: test of serial comms and telnet via wifi ad-hoc network

The serial comms justs works — connect your PC at 9600 and power-up the board and you’ll see a sign-on message.

WiFly Ver 2.21, 07-11-2010
MAC Addr=00:06:66:13:cc:25
Creating ADhoc network
ADhoc on Wifly-GSX-25 chan=1
*READY*

Adhoc was a bit trickier — and no doubt we may be a little confused, but it seems like the Wifly prefers to connect to an existing Adhoc network, rather than creating one by itself. We had some grief setting up Adhoc on our Ubuntu laptop — it worked, but seemed to drop out fairly often. Windows 7 worked fine. This needs further investigation, but is a separate issue from the Wifly so we are ignoring that for now.

Set up the adhoc network as Wifly-GSX-NN, where NN is the last two digits of your Wifly module’s MAC address.

Next, you need to pull-up GPIO-9 to 3.3 volts, so that the Wifly will choose Adhoc on power-up. Then just watch the 9600 serial and you’ll see it immediately sign up to the adhoc network on power-up.

Connected via Ad-Hoc on Wifly-GSX-25
Using Static IP
IF=UP
DHCP=ON
IP=169.254.1.1:2000
NM=255.255.0.0
GW=0.0.0.0
Listen on 2000

Telnet to port 2000 and you can keyboard back and forth between your telnet connection and your serial connection.

Posted in Uncategorized | Leave a comment

JSON and Javascript for the Wifly?

We want to do a simple web server to display thermocouple values on the TC4 for our coffee roasting projects. Ideally we’ll run the Wifly in Ad-hoc mode, from any web browser — IPhone, IPAD, Smartphone, etc.

Ward Cunningham (of wiki and ‘extreme programming’ fame) is using JSON and Javascript for this sort of thing. He has a nice video here, and his code is available in both MIT and GPLV2 licenses. I may give that approach a try.

Posted in Uncategorized | Leave a comment

5 volt FTDI cable interface for Sparkfun Wifly GSX breakout board

We wanted to evaluate the very cool Wifly module from Roving Networks. Sparkfun has a nice little ‘breakout board‘. We attached the breakout board via a pin/socket scheme, to a Radio Shack perf board and added an ‘FTDI cable’ connector and also level-shifter for the TX and RX signals.

One of the great things about Sparkfun is that they provide Eagle schematic and pcb files under the CC-BY-SA licence. You may download their original Eagle files on the product page (see above). You may wish to view our modified version of their schematic also.

The scheme for the level-shifting circuit was derived from Sparkfun’s nice tutorial on the subject.

Thanks Sparkfun!

Posted in Uncategorized | Leave a comment

ThingSpeak disk space chart

ThingSpeak is a neat way to store all kinds of data online.

Here’s a modification of Chris’s nifty cpu app to track disk space instead.


# modify Chris's cpu monitor to display disk space instead.
# http://www.australianrobotics.com.au/?q=node/292

import httplib, urllib, time, os
import time
API_KEY="mykey"

def doit():
s = os.statvfs("/")
diskfree = s.f_bavail

params = urllib.urlencode({'field1': diskfree, 'key':API_KEY})
headers = {"Content-type": "application/x-www-form-urlencoded","Accept": "text/plain"}
conn = httplib.HTTPConnection("api.thingspeak.com:80")
conn.request("POST", "/update", params, headers)
response = conn.getresponse()
print response.status, response.reason
data = response.read()
conn.close()

# update once an hour
while True:
doit()
time.sleep(60*60)

~
~
~
1,1 All

Posted in Uncategorized | Leave a comment

fun with Android

No, I didn’t write these apps, but they show what is possible.

Posted in Uncategorized | Leave a comment

upload Arduino sketches using Bluetooth

I sent this comment to Sparkfun about their Bluetooth Mate Silver product.

With a simple mod, this module facilitates uploading Arduino sketches via Bluetooth!

There are two signals that you may want to consider bringing out to pads or possibly jumper options — pin 33 (remote DTR), and pin 34 (remote RTS). I also set the module into the “MDM” mode with the “S~,3″ command.

thank you, Bill Welch, bvwelch 2-April-2011

Posted in Uncategorized | 5 Comments

WNDR3700 — Rotary phone meets Asterisk 1.8

We hooked up an old rotary phone to Asterisk 1.8 today. We used the WNDR3700 router running OpenWRT (SVN version 26273 from openwrt ‘development trunk’, not the ‘backfire trunk’). It is working well with the Grandstream HT502 ATA on the rotary phone, and we’re still using the old Linksys/Sipura SPA-1001 for the cordless phone.

Also tested my Android cell phone — the HTC Incredible from Verizon — works fine with Sipdroid to Asterisk via wifi.

Incoming Googlevoice calls work, but outgoing Googlevoice calls don’t work. Not sure why…

Posted in Uncategorized | Leave a comment

installed first android app built from source

Ringdroid has lots of good details for building, testing, installing apps. I tried the emulator and it sort of worked but was slow. So I tried my new Incredible cell phone and it worked great. Used usb cable and adb to install. Next will try old Vogue cell phone.

Did I mention that ringdroid explained how to do the whole thing without ever running Eclipse? Hooray!

Posted in Uncategorized | Leave a comment

new cell phone HTC Droid Incredible

Running adb on the new phone shows that root is disabled, which is probably good for now, especially since I have my old phone available.

Curious that this shows only 162.54 bogomips ?

$ cd /proc
$ cat cpuinfo
Processor : ARMv7 Processor rev 2 (v7l)
BogoMIPS : 162.54
Features : swp half thumb fastmult vfp edsp thumbee neon
CPU implementer : 0×51
CPU architecture: 7
CPU variant : 0×0
CPU part : 0x00f
CPU revision : 2

Hardware : incrediblec
Revision : 0003
Serial : 0000000000000000

$ cat version
Linux version 2.6.32.17-g9a2fc16 (htc-kernel@u18000-Build-149) (gcc version 4.4.0 (GCC) ) #1 PREEMPT Thu Sep 30 18:42:08 CST 2010

$ cat meminfo
MemTotal: 423200 kB
MemFree: 70996 kB
Buffers: 2712 kB
Cached: 84668 kB

$

Posted in Uncategorized | Leave a comment

first steps writing apps for droid (old cell phone – HTC touch Vogue

Installed Eclipse, the SDK, etc on my laptop (running Ubuntu). Then ran thru the tutorial which uses an emulated device.

Next I tried plugging in my old cell phone ( htc touch vogue) which I had installed Android on last nite, and plugged its usb cable into my laptop. Typing “adb shell” gives me a shell prompt on the old cell phone, and it seems to be running busybox version 1.15.3, and linux kernel 2.6.32.9. not bad!

BusyBox v1.15.3 (2010-02-20 14:24:22 EST) multi-call binary
Copyright (C) 1998-2008 Erik Andersen, Rob Landley, Denys Vlasenko
and others. Licensed under GPLv2.
See source distribution for full notice.

# uname -a
Linux localhost 2.6.32.9 #399 PREEMPT Thu Jan 13 12:45:24 NZDT 2011 armv6l GNU/Linux

# cat /proc/cpuinfo
Processor : ARMv6-compatible processor rev 4 (v6l)
BogoMIPS : 383.38
Features : swp half thumb fastmult edsp java
CPU implementer : 0×41
CPU architecture: 6TEJ
CPU variant : 0×0
CPU part : 0xb36
CPU revision : 4

Hardware : HTC Vogue
Revision : 0000
Serial : 0000000000000000

# free
total used free shared buffers
Mem: 111988 105888 6100 0 68
Swap: 0 0 0
Total: 111988 105888 6100
#

Posted in Uncategorized | Leave a comment