What is up with Bluetooth and why won’t my software run on new computers?

Posted May 13, 2008 by Russell Shapiro
Categories: Bluetooth, Communication

Recently, I have had several conversations with folks about the changes in Bluetooth. More to the point, Bluetooth technology has changed over the past few years so that software written for the older model is not compatible with the new model. That means, the software you used on, say, an Recon computer a few years ago might not work on a new Recon running Windows Mobile 6 with integrated Bluetooth.

The nitty-gritty

“Bluetooth” is simply a wire-free way to connect devices. While most folks are familiar with Bluetooth headsets or maybe printers, I mostly deal with GPS receivers. In most cases, you can think of Bluetooth as a replacement for a USB or serial cable. However, Bluetooth devices can communicate with several other devices simultaneously through a ‘piconet.’

The latest version is 2.1 with Enhanced Data Rate (EDR). This version came out in July, 2007 and superseded version 2.0 with EDR. The older version had a completely different construction (known as a stack) and, consequently, different transmission rates (though the same 2.45 GHz frequency) and protocol. That is why software written for the older Bluetooth won’t work on the new version.

Regardless of the Bluetooth version, there are three classes of Bluetooth that vary by strength of signal and power consumption. Class 1 is the high-end model and has a range of 100 meters. Class 2 is what is found in most computers and has a range of 10 meters. Class 3 is not common, but is the lowest power radio and has a range of 1 meter.

Was the change necessary?

Yes. I loved my Recon with Windows Mobile 2003 but I was frustrated with the Socket Bluetooth card. Socket is a great company, but the technology was tenuous to me, as a user. In fact, I wrote back then that Bluetooth would die soon. Once again, I was wrong. Various applets and updates came out to make Bluetooth more stable but I found myself appreciating the serial cable for my devices. With the latest operating system change, I find the Bluetooth very stable and have finally gone wireless with my GPS devices. What to do? Change the software. Kind of like when they ditched unleaded gas. You could keep adding additive to your fuel or buckle down and replace the valve seats.

What does the logo represent?

It made no sense to me until I dug deeper into the roots of Bluetooth. Harald Bluetooth was a 10th century king of Denmark and Norwary who is noteworthy (at least in legend) for unifying tribes across Scandinavia. (Meanwhile, Hamlet whined about the castle and contemplated skulls while his sweetheart used poor judgement with herbs—but I digress.) The symbol is the Germanic runes for H and B forming a bind rune.

The Nomad goes on a fossil hunt!

Posted April 30, 2008 by Russell Shapiro
Categories: Field analysis, GIS, GPS, Google Earth, Mapping, software

Tags: , , ,

Recently, three colleges converged in western Nevada for four days of field paleontology. Over thirty students participated in a series of field tasks that represented different kinds of field scientific work. The tasks ranged from classic description to modern collection techniques. For the latter, the students mapped a trilobite-rich area using a Nomad computer and SX Blue II sub-meter GPS from Walcott Scientific.


Students found the gear not too cumbersome to wear and use in the field.

Trilobites are extinct arthropods, related to modern insects, crabs, and lobsters. In the Cambrian period, about 500 million years ago, they ruled the seas. Deep water deposits of that age are rich in trilobite fossils. The field exercise was carried out in Esmeralda County, Nevada in glorious weather. The students divided into teams of four members and each team had a guide to the common trilobites. Then, they students scurried about the hills looking for fossil-rich zones. When they found a particularly rich area, the students logged their location with an SX Blue II sub-meter GPS that communicated to a TDS Nomad via Bluetooth.

Nevadia weeksi, common trilobite in the lower field area.

Data was collected as a point-based shape file in ArcPad, set against a topographic map downloaded from a state of Nevada GIS website. In addition to the location information, the students listed the dominant fossil genus and estimated the age. Both the Nomad and GPS worked without a hitch and there was plenty of battery life at the end of the project.

Back at the college, the data was transferred to MapWindow GIS and sent via Shape2Earth to GoogleEarth as a .kml file. This process took less then five minutes. Each student was then e-mailed the .kml file so they could see for themselves just how the fossil bugs were distributed in the field area.

This assignment, and similar ones I have done with my courses, really shows the students both how easy it is to collect data in the field, and how GIS adds value to a project. The Nomad proved an excellent tool in the Nevada desert with the bright screen and rugged design. While many researchers still use tablets and PCs in the field, the use of small PDA data collectors is more efficient on cost, weight, and battery life.

Quickie user guide to Windows Mobile

Posted April 18, 2008 by Russell Shapiro
Categories: software

Tags: , ,

Your buddy / boyfriend / boss hands you a PDA for the first time and tells you to ‘figure it out.’ Where do you start? Can you understand your way around the computer? This short blog is meant to be a sort of triage to get you through a Windows Mobile device, like the Recon or Nomad.

It sure looks like Windows…

Windows Mobile look and feels like Windows XP even if the code below the surface is different. (Windows Mobile evolved from Win.CE so all the various operating systems share some similarities.) Many of the features, such as the Start button, Program list, menu buttons, etc., function in the same way so if you use a PC, it will be terra cognita. Here are the important differences:

1) When you click the X in the upper right corner, you usually only close the window, not the program like in Windows XP. You will need to close the program through a menu option or it will run in the background.

2) Use the File Explorer to find missing files, even when your files are on a CompactFlash or USB drive.

3) Most PDAs only have ‘USB out’ for synching to a desktop computer. That means you cannot plug in a USB device like a printer or flash (thumb) drive. The Nomad does have a ‘USB in’ option.

4) Can’t see the screen because it is dark? Try holding down the power button for a second or two and that should bring up the brightness. If you hold it down too long, you will enter a ‘soft reset mode’ which your probably don’t want to do.

My biggest advice…

Whenever you turn on a device, close a program, and just before turning off, go to Start>Settings>System>Memory>Running Programs to close all the programs running in the background. I just grabbed a Recon out of a drawer and checked and the following programs were running: ActiveSync, Internet Explorer, Wireless Manager, and File Explorer. Knowing our computers, I am surprised ‘Solitaire’ wasn’t running as well…

Finally, if you are using ActiveSync to send files back and forth, I recommend logging on as a “Guest” so you are not committed to a dedicated PC for file sharing.

Why can’t my Tablet-PC read my USB-connected GPS receiver?

Posted March 28, 2008 by Russell Shapiro
Categories: Communication, GPS, software

Tags: , , , ,

I’ve written several times about COM ports and GPS receivers. Interestingly, in the last two days, I have spoken with four different folks about how this works, particular in regards to setting up a GPS receiver through a USB port on a tablet computer. It is valuable to understand how this works to avoid frustration in setting up software later.

What is a COM port?
A communication (COM) port streams data into the computer. Older computers had serial ports for this purpose. USB ports are not really COM ports, so you need to download a driver for the conversion. There are two facts about this process: you need a different driver for each different brand of GPS or other devices using the COM port, each USB port needs to be set-up as a COM port and each will be given a different port number. This COM port number will be used in any software that needs to connect to the GPS. (As a side note, you will also need to know the speed of the data stream from the GPS called the Baud rate.)

Setting up a COM port for an SX Blue II Sub-Meter GPS
The first step is to download the driver. I can’t post folders in the blog, but I put the driver on the Walcott Scientific website. This will comprise a folder with various .dll, security catalog, etc., files for the FTBI driver. The folder is zipped, so you need to unzip it. Then, place the folder somewhere you can find it, like the desktop. Now, power up the SX Blue II and plug it into the USB port you wish to use. The computer will open the “Found New Hardware Wizard.” No need for the internet, so click “No, not this time” and click “Next.” Then, choose “Install from a list or specific location (Advanced)” and “Next.” On this page, choose “Search for the best driver in these locations” and “Include this location in the search:” Use the Browse button to find the folder and click “OK” and “Next.” A warning box will appear that the USB Serial Converter has not passed the test. Click “Continue Anyway.” The driver is now installed and you will close the Wizard. But wait! Another Wizard will open and you will repeat the process. You’ve done it!

Finding the COM port
So, what is the COM port? You can use a ‘port sniffer’ like GPS Viewer which works pretty well for finding GPS devices. Alternatively, you can go to: Control Panel>Administrative Tools>Computer Management>Device Manager and click on the “Ports (COM & LPT)” to see the port number assigned to the SX Blue. This is the COM port you will use in your software. The SX Blue broadcasts at 9600 Baud, 8 stop bits, no parity.

Setting up an external Bluetooth GPS on a ToughBook

Posted February 29, 2008 by Russell Shapiro
Categories: Bluetooth, Field analysis, GPS, Mapping

Tags: , , , ,

As I have written in a previous blog, I am not very pleased with the integrated GPS on the new Toughbooks. However, the Bluetooth is very stable and opens up a variety of GPS options. The following goes through the steps of setting up an external GPS on a Toughbook 19 running Windows XP Tablet. Other models should be similar; Vista has not been tested.

1) Turn on the GPS. As always, make sure the battery is charged!

2) On the Toughbook, open the SD card slot and flip on the Wireless toggle switch, Then, click on the Bluetooth logo on the bottom bar. A box will appear. Click “New Connection”. Here is an important step: use “Custom Mode” or else the computer will assign a COM port that may not work with some software! Click “Next.”

3) The computer will recognize the GPS. Highlight the name and click “Next.”

4) The computer will assign the GPS to a serial port. Click “Next.”

5) On the next screen, uncheck “Use default COM port.” Now, you can choose your own COM port. Many software packages only go up to COM 9 for GPS, so I recommend choosing COM 8 and “Auto Connect.” Click “Next.”

6) On the next screen you can select an icon if you wish. Click “Next” and you are done! The COM port you have chosen will be the same for all software you use. This also means that you cannot run two different software programs at the same time.

To save battery life in the field, you can turn off the WiFi while you are running Bluetooth. In the lower right corner of the bottom tool bar is an icon of a lightning bolt with a circle. Click it to bring up wireless options. Choose Wireless LAN OFF and Bluetooth ON. The 802.11a doesn’t matter.

The “Mystery of the Shifting COM Port”

Posted February 13, 2008 by Russell Shapiro
Categories: Bluetooth, Communication, GPS, Mapping, software

Tags: , , ,

I had an interesting case this past week that while unique, might shed light on some problems. A researcher has been using a CompactFlash GPS card in a Recon handheld computer without problems for nearly a year now. He e-mailed me that the GPS was working, but was coming in on a different COM port. Well….that can’t happen! COM ports, or Communication Ports are the electronic version of docks. They allow for data to be exchanged and, like a real dock, only one ‘vehicle’ can be there at a time. All computers use COM ports. Some have designated COM port numbers but allow you to create virtual COM ports. On a PC, it is typical for a serial port or an SD slot to have a unique COM port. If you have an integrated GPS that has a designated COM port. Because USB ports are wired differently, they require a driver to convert them to COM ports. Once a port is identified as a COM port, it stays a COM port. That is, the numbers don’t shift! On the Recon, the serial port is always COM1, the CompactFlash (either slot) is COM2, and Bluetooth devices come in on either COM8 or COM9. In the case of the “Mystery of the Shifting COM Port”, the CompactFlash jumped from COM2 to COM3.

Knowing the COM port for a GPS is necessary to run any software to read the data stream coming from the GPS. Unfortunately, the program I wrote for the researcher was set for COM2 so he could not use COM3. (As a quick fix, I re-wrote the program for COM3, but that didn’t address why the port should change.) Many programs allow you to figure out which COM port the GPS is connected to before you begin to collect data.

Back to the mystery, there are three scenarios: 1) The GPS tortured the computer into shifting COM ports, 2) there was a hardware malfunction in the computer, or 3) there was a gremlin in the operating system of the Recon. GPS receivers don’t have the capability to shift COM ports so that was ruled out. I was hoping the computer didn’t fail because the researcher was in the field in South Africa. So, I settled on the operating system. His Recon has Windows Mobile 5 which has a cool applet that allows you to re-route the GPS from its incoming hardware COM port (in this case, COM 2) to any outgoing COM port. The benefit is that many programs can read a virtual COM port. The analogy is that you phone can only take one call, but many receivers in your house can listen in. We tried changing the parameters on the GPS applet but that didn’t work. Dang. It seemed the most likely scenario (and the cheapest) was that the operating system flaked out. With Recons, it is really easy to restore the operating system. You do a hard reset by holding down the power button for a few seconds. When the yelp of a rapid double beep occurs, simultaneously press the flying windows and enter buttons. This will restore the factory settings. Of course the factory didn’t put on any extra programs or data so if you try this yourself, BACK UP ANY FILES OR PROGRAMS YOU INSTALLED!!

The result? One e-mail later, the researcher restore the factory settings and the CompactFlash GPS is back on COM2. The “Mystery of the Shifting COM Port” is closed. The lesson is, if it seems like the operating system is tweaked, return to the factory settings before you toss the computer. Oh, and back up the files!

Comment on ABC News: How accurate is your GPS?

Posted January 15, 2008 by Russell Shapiro
Categories: GIS, GPS, Mapping, software

Tags: , , ,

Recently, ABC put out a news snippet about the “child killing” inaccuracies of GPS vehicle navigation units. Glossing over the semantically misleading title, the report did a decent job of quickly summarizing the obvious—navigational software is prone to errors. It is not that the receivers are inaccurate, but rather the GIS programming behind the directional software is not foolproof. Having driven sub-par vehicles all my life, I am well cautioned to not blindly trust ‘foolproof’ gauges like gas meters, speedometers, turn signal indicators, etc. I do trust billowing white steam as a statistically likely indicator that my car is overheating. So, where is the fault with the navigational systems and what can you do to lighten your chances of becoming a GPS child killer?

The various driving programs packaged by TomTom, Magellan, Garmin, DeLorme, and others, rely on a base map of roads. Already, there is going to be a spread of accuracy based on the detail of the map and the age of the data. Roads change; in some areas, a map can be outdated within a year. I live on a street that dead-ends against a creek and then shows up on the other side with the same name. It is not uncommon for folks to knock on our door wondering where the rest of the street lies. Some software allows for upgrades but it is up to you to stay on top of things. And, it is unlikely that daily, weekly, or monthly closures will appear. Secondly, in the better mapping packages, the roads are ‘weighted’ for traffic speed and other flow parameters. That way, you can mathematically deduce which is the best route even if it is not the shortest. We all know how this works whenever we try to explain to a friend or spouse that our way is “better.” Herein lies the problem. How many software packages are going to be more accurate than your knowledge, experience, and intuition for your neighborhood? Then why do you trust it for other neighborhoods you have never been to?

I blame the problem for the accidents and lost drivers on losing our ability to read a map and growing up in an increasingly virtual world. At some point in the Late Atarian, we evolved into a race that trusts virtual landscapes more than what is outside our window. Or, we just would rather inhabit that space. Why else would so many minivans and airplanes have TV sets instead of looking out the blessed window?

At this point, you may be wondering why I am writing about this on a fieldwork blog. Do you think the software for backcountry work doesn’t suffer the same shortcomings? In future blogs, I would like to explore how to improve the software we use for monitoring and recording our field work.

ToughBook computers and GPS receivers

Posted December 29, 2007 by Russell Shapiro
Categories: Uncategorized

I am not a big fan of the integrated GPS that one can purchase as an option on the ToughBook for about $300. In my experience, the GPS does not perform as well as cheaper add-on units. But, I will lay out my thoughts and you can make the call.

Benefits

The obvious benefit is that you have an integrated GPS so you will never lose it, forget to bring it to the field, or neglect to charge the battery. Also, there are no USB cables to get tangled in. If these are issues for you, and the extra one to two hundred dollars isn’t an impediment, than buy the integrated GPS. Why not? Regardless of the company’s claims, I would not rate this GPS for better than + / -15 meters accuracy. Is that important? For reference, remember that the standard USGS 7.5’ quadrangle maps that form the basis for most off-the-shelf high resolution software are at a scale of 1:24,000. Since a dot on that map is about 1 mm across, the dot represents 24,000 mm on the ground, or 24 meters. That is about the resolution of the integrated GPS. So, no problem. But, if you want to display your locations on a higher resolution map, it will be a problem.

Drawbacks

Beside the coarse accuracy, the biggest drawback is the price. It costs about $300 to add a GPS onto a computer from the factory. In comparison, I use a USB-driven device (GlobalSat) that costs about $70. I have been very, very pleased with the accuracy, quick start-up, and ruggedness of this unit. I have also used a Bluetooth-enabled device (GlobalSat) that costs about $115. Both of these options also allow for using the device with another computer—including a Macintosh or PDA! Folks who have read my other blogs will know I am a big fan of modularity. The GlobalSat units, in my testing, get closer to 3-5 meters of accuracy, or a dot on a 1:10,000 scale map.

For my ToughBook mapping, I use a USB-driven receiver and bundle the cord and tie it to the handle of the tablet. As a geologist, I have worked in many terrains with this set-up and have never felt burdened or been trapped on bushes. However, if I was to buy a ToughBook on a grant and could spare the few extra hundred dollars in the budget, I would likely get the GPS for when I was doing coarse mapping, or forgot the USB GPS, or forgot to recharge the Bluetooth GPS…

Figuring out the GPS COM port on a ToughBook PC

Posted December 27, 2007 by Russell Shapiro
Categories: Uncategorized

I receive quite a few phone calls each year from ToughBook owners trying to figure out how to use the GPS receiver. A ToughBook with integrated GPS from the factory comes with a default COM port dedicated to the GPS, but which one? You need to know this COM port for using software, but also, in the event of a malfunction, you will need to test the GPS to make sure the defaults from the factory haven’t changed. To find out, the best route is to use the HyperTerminal program.

To get to HyperTerminal, start with the START button in the lower left corner:

START > All Programs > ACCESSORIES > Communications > HyperTerminal

Under “Connection Description” give any name to the New Connection, it won’t matter. The icon also doesn’t matter. In the next box, under “Connect Using” scroll down to COM 1. The properties screen will appear. Change to the following if set differently:

Bits per second: 9600; Data bits: 8; Parity: None; Stop bits: 1f; Flow control: None

Click OK.

On the main HyperTerminal screen, you should see a string of characters which are the NMEA sentences (e.g., $GPGGA, $GPGSA, etc., followed by comma-separated values). If not, chose “Disconnect” from the toolbar, then reconnect and start over but chose COM 2 this time. Keep working through the COM ports until one works. Record this COM port as it should not change. If you have the COM port correct in the software, but it still is not connecting to the GPS, make sure the Baud rate hasn’t changed. I have seen that happen and most times the software and GPS are not communicating, it is a mismatched Baud rate; the rest of the time, the GPS isn’t connected.

Super-cool field mineral analyzer from inXitu–check it out at AGU in San Francisco!

Posted December 12, 2007 by Russell Shapiro
Categories: Field analysis, Mapping

Tags: , , , , , ,

This week, I have been visiting the annual meeting of the American Geophysical Union (AGU) in San Francisco. This meeting, held each fall, showcases the latest in research on the Earth and space and the exhibit hall boasts lots of new technology. I had a great time speaking with folks at the NASA booth, visiting with booksellers, and chatting with the Google Earth crew. However, this year’s grooviest field device is a ruggedized rock and mineral analyzer from inXitu, Inc.

inxitu.jpg
Image courtesy of the inXitu website. Note icy cold research ship in background! Where are the penguins?
Known as an XRD, this hefty box takes a powdered rock sample and bombards it with x-rays to produce a diffraction pattern. As we learned in Intro Geology, each mineral has a unique arrangement of atoms so each mineral will produce a unique diffraction pattern, like a fingerprint. Normally, you collect a sample in the field, bring it back to the lab, crush it to a fine powder, then put it in a large, humming box. The “TERRA” allows you to do this in the field as it comes with a handy metal mortar and screen. Simply crush a piece of the sample, put the powder in the sample holder, place it in the box, and in a very short time (~30 seconds in the demonstration I saw), a diffraction pattern is produced. As long as you have a database of known minerals (available from a variety of sources), identification is instantaneous.As this blog is about rugged field computers, I’ll mention this XRD amazingly has no moving parts so is field ready. It comes in a ‘Antarctic-orange’ rugged case and can operate from -10 to 40 degrees C. Slightly bulky, but not unmanageable. The battery claims 4 hours of field use and is hot-swappable. You don’t need a computer to run the XRD, but you can communicate via WiFi (802.11g) to control the start and stop, download data, and search stored data.

The suggested price is $64,500. Not cheap, but a reasonable price compared to lab-based units. If you were involved in a project where on-site mineralogic data is critical for saving time in planning the next day’s (or hour’s) investigation, you would quickly make up the cost. I anticipate that we will hear about use of these units from the major research schools, particularly the hot economic geology schools. U. M. Duluth grads, pool your money and donate one of these gems!

For more information, contact inXitu, Inc. My congratulations for the coolest field tool at AGU!