Thursday, February 25, 2010

Friday Night SMS - Feasible via Zigbee

One of the new features in the FLOW is the inclusion of a Zigbee modem, instead of the currently prevalent bluetooth. If you get a Overo Fire - it will have a bluetooth on board. A while back we came up with the Friday night phone call idea, routing a call through the wireless of all the unused phones in the area, very useful in crowded club districts.

Voice is a different matter it requires some decent bandwidth, bluetooth can provide it for wireless headsets. The telcos charge exorbinant amounts for the very low-bandwidth SMS services, why ? Because they have centralized user-management and routing systems, they also theoretically have a lot of QoS, security and privacy policies. Yet again in the club scenario SMS is one of the best ways to communicate, voice will be lost in the din and will require the callee to switch location.

Let's consider how we can break the monopoly without paying zillions to licence our own mobile band. Solution will be to build a user maintained/powered/administered zigbee mesh. Zigbee can power itself from energy-harvesting - thumping on the dance floor, peltier sucking off some of the coldness in your beer or the heat in your coffee. We always go over the top in our energy use, it would be nice to channel some of it into free/cheaper communication. The zigbee mesh can take and channel the first hop, suppose the SMS target is beyond mesh reach, what do we do ? We hop on the old faithful - IP.

Before there was internet, there were lots of small intranets. Now we have and 'SMS like' service running over http with lots of users - Twitter seems to have no trouble raising funds. May be it can offer a cheaper solution to all the user to user functions the telco claims to perform. The mesh network links to an IP gateway and the SMS hops onto the twitter channel as a direct message. For that matter any chat engine will do, jabber, msn etc etc, just need to address the target properly.

But at the end someone has to pay the piper (the transmitter of data). Working out who does that and how much is a political issue, but I definitely want a cheaper piper. If energy harvesting lets me sing and dance to send an SMS I will do that.

Wednesday, February 24, 2010

Bringing NearMap to WorldWind

I promised myself I will do this soon and it has been a month or so since I thought about it. NearMap provides a nice Google like URL resource to pull tiles from and WorldWind provides 3d perspective (since admittedly the NearMap elevation is strange at times). The projection is not quite right in the on-the-fly transform from Google Projection to LatLon, I am using the Mercator projection built-in worldwind. Anyway enough talk screenshot time. Here are couple of Microsoft Bing Maps vs NearMap. I hope I will do the maths for the 900913 projection right soon and fix up the little inconsistencies.

Tuesday, February 23, 2010

Learning PCB Cad - then finding someone who knows it all

One of the great pleasure of diving around on the web is finding those ah-ha things. I have been contemplating buying bits and pieces from the gumstix shop. Then I found that all expansion boards are open design. So I downloaded some, converted from Eagle to Gerber and sent off to a fab shop for a quote. The fab shop is very responsive and even provided a custom how-to on converting from Eagle to Gerber. I think I will get a fair few PCB's made and loaded for the project.
 Some more snooping around for a camera to attach followed. There are lots of suggestions on attaching a USB camera to the USB host slot, but that somehow feels clunky to me. I would like a high bandwidth camera directly attached to the PXA using DMA. Some seem to have already made a lot of progress with the Overo COM's and gotten to a phone-like devide with lots of bits. Time to see how much it will cost to get a FLOW to Australia.

Saturday, February 20, 2010

Evolution - superficial and speciation

Time Machine discusses evolution and dichotomy. Speciation is not such a common occurence unless there are heavy evolutionary drivers. I just read Michael Crichton's Prey, all his books carry the same cautionary finger about new technology. Crichton has inspired more research than caution by a lot of his work. Ultimately it is human hubris to blame.

I have lately been excited by the possibilities of distributed processing and mesh networking as discussed in Prey. I can't operate at the nano scale yet, but we can have half-hour endurance swarms with decent processing. The Xbee is great for mesh networking as I have found, currently each node needs to be individually configured, but that can be done over air soon enough. The current version of the quadcopter autopilot can read euler angles from the IMU, read GPS locations at 1Hz and send I2C commands to an Arduino to control motor speeds. What needs to be completed is the control/feedback loop to tie all this together. The hardware also needs to be cleaned up and a power supply segment built, all the bits take so many different voltages - IMU(9V), Arduino+Gumstix(5V), Xbee(3.3V).

The last 2 nights have been spent setting up Xbees correctly. Apparently the fidelity is best in point-to-point mode, where a single router/end-point sends to another - this is achieved by setting the SH/SL and DH/DL registers. The Xbee has a lot of config options, the other neat thing in X-CTU is the inbuilt signal quality testing app. Running cat /dev/ttyS0 on the gumstix lets me create a software loopback and test the signal quality while moving the transmitter around.

Tuesday, February 16, 2010

Mailing list to the rescue - working Gumstix + 3DM-GX2


Finally had to put up a thread on Gumstix mailing list to get the misnomers sorted. Dave Hyland, the maintainer of the robostix code came forward to iron out most of the strangeness and provided the sertest utility to finally sort out the issues with the port. So now I can access both the GPS stream and my IMU reading of choice (Euler angles, possibly linear and angular acceleration). The IMU commands can be lined up and sent as a larger sequence in continuous mode to achieve better reading throughput than the 1 reading per second I am currently getting. Here are a couple of GPS and IMU streams. For a change the GPS was very stable for the few seconds it took to do the screenshot. Need to get the uBlox explorer and see it drift around, same for Microstrain.

Sunday, February 14, 2010

I wanted a UART but I got GPIO

Time finally came to hookup IMU to Gumstix. I carefully soldered a couple of ribbon cables and put on a scope at the RXD and TXD pins to see if I could run a loopback test. The Gumstix UART page is suitably vague and confusing. Fine I can do some guesswork and deal with ambiguities. I soldered both the HWUART and the BTUART since that's where the ambiguity lies. I tried to send some data to the serial using cat. Lo and behold it did not work. So I put both receive and transmit pins in GPIO mode and manually toggled the state using:

 while(true);do echo "GPIO out set" > /proc/gpio/GPIO43;sleep 1;echo "GPIO out clear" > /proc/gpio/GPIO43;sleep 1;done

My soldering is rock solid (I have gotten better) and I got a 1 second pulse on the cable soldered to the the supposedly unused HWUART. More fiddling is needed before I can get the 3rd UART I need.

Saturday, February 13, 2010

Why make when you can buy - Australian import culture

Lately I have been doing lots of ordering of parts from the US and China via ebay and Little Bird. It all seems pretty cheap in Australian terms. I realize this must be due to the lately strong Australian dollar, second 0.90 plus peak in 2 years. I lack the economic expertise to analyse this fact, but I do know someone who did a PhD on macroeconomics and impact on exchange rates. The graph is created with a live link and will change as this post ages, but right now it demonstrates the point I am trying to make.

Australia has plenty of bespoke engineering, often aimed at the defence industry and not the larger and potentially more valuable commercial industry. This is most likely because defence is a protected field and bespoke engineering has high barrier to entry. Australian companies don't have the human talent and financial pool to play in the shark infested competitive world of commercial. Curse of small population base, lack of talent pool to pick and choose from. So in the end all commercial electronics gets imported as well as designed somewhere else. The ads on TV proudly tout that stuff is German Engineered or features European Luxury - while the same said Germans would rather live in Australia than in Germany. We would have all German engineers folking here if we can set-up industry and have decent education system. Engineering education needs to move beyond basics (move the basics to high school) and tailor students for the current market capturing all the principles. Not just technology - technology moves too fast to teach it for 4 years, but trends.

Suppose someone takes the bull by the horns and starts something native. Unless there is stellar talent, marketing, money and faith behind this drive - the Australian market will simply not sustain it. Another curse of small pool. You may develop a solution, but the client will simply walk off to a similarly skilled and probably longer established American or European operation to buy.