BUGBeeChat

App Image

 Download Latest Version 

This application uses:
Bugview Bugbee 
   April 4th, 2009   ·   1640 views  /  2723 downloads

Admin Administrators: Bug Labs teamfinsprings, Bug Labs teamjconnolly, Bug Labs teamkgilmer, Bug Labs teambcruskie
Collaborator Collaborators: Bug Labs teamagibb, thavisri, Bug Labs teambballantine

Category: Communications    Maturity: Beta    API version: not specified
Tags: bugbee 

BUG-to-BUG ‘chat’ sample application for the BUGbee module with some features for testing. Pressing hotkey 1 brings up the matchbox virtual keyboard. What you type will appear in the (sadly squished) upper text area, and when you press RETurn it will be sent to the other BUG.

To use this app you need two BUG bases each with a BUGbee module. Create a file called ”/home/root/chatboss” on one (and only one) of the BUGs, then deploy BUGBeeChat to them both. This file tells the app which instance should establish the PAN (there are better ways to do this but they aren’t implemented yet).

The latest version of BUGBeeChat on bugnet adds echo/ping functionality.
As before, if BUGBeeChat finds a file called /home/root/chatboss when it starts, it will start as the coordinator, and if not it will start as an end device. So only one of the two bugs running BUGBeeChat should have that file.

Now it also looks for /home/root/chatping and /home/root/chatecho when it starts up. If it finds chatecho, then every message it receives it will send a copy of back. If it finds chat ping then it will send out a message every 5 seconds (configurable by PING_DELAY at the top of BUGBeeChatApplication.java).

To use this you would put the chatecho file on one of the bugs and the chatping file on the other – doesn’t matter which is which. It comes in handy for doing range testing and stability testing. You can also put the chatping file on each BUG and not use the chatecho option.

NOTE:
The PA (Power Amplifier is enabled by default in the application). To avoid excessive rf power to the front end, the BUGbees should be placed about 2 ft apart. In addition, to prevent data corruption, the units should be operated with obstructions in between them if in a lab/office environment, or about 5-10 meters away from each other if in line of sight.


Download Download Latest Version

Version Date Uploaded by Notes  
Version 15 November 16th, 2009 finsprings  use matchbox-keyboard hide/toggle switches that were added for 1.4.3 (more) use matchbox-keyboard hide/toggle switches that were added for 1.4.3 (collapse) download
Version 14 May 27th, 2009 finsprings  add MAX_SCROLLBACK logic so that the remote2LocalText TextArea won't consume... (more) add MAX_SCROLLBACK logic so that the remote2LocalText TextArea won't consume ever-increasing amounts of memory (especially when doing ping/echo testing). (collapse) download
Version 13 May 27th, 2009 finsprings  Make allowBind use 0xFF instead of BUGBeeControl.BINDING_ALLOWED_INDEFINITELY_TIMEOUT, which is 65... (more) Make allowBind use 0xFF instead of BUGBeeControl.BINDING_ALLOWED_INDEFINITELY_TIMEOUT, which is 65 because of an error in TI's documentation (see https://community.ti.com/forums/p/5414/20127.aspx#20127 for someone else enjoying the same fun). Will go back to using constant once it has been corrected. (collapse) download
Version 12 May 27th, 2009 finsprings  drop back to STATE_JOINING instead of STATE_BIND_REQUEST on a send-data... (more) drop back to STATE_JOINING instead of STATE_BIND_REQUEST on a send-data failure. (collapse) download
Version 11 May 26th, 2009 finsprings  Added chatping / chatecho functionality. Added STATE_JOINING as in zsocket,... (more) Added chatping / chatecho functionality. Added STATE_JOINING as in zsocket, so it waits until it's in the PAN before trying to bind. (collapse) download
Version 10 May 26th, 2009 finsprings  (more) (collapse) download
Version 9 May 25th, 2009 finsprings  reduce timing delays and add WAIT_FOR_ED as it looks like... (more) reduce timing delays and add WAIT_FOR_ED as it looks like having them both trying to bind to each other at the same time is what's making them fail to hear each other, maybe. (collapse) download
Version 8 May 21st, 2009 finsprings  fixed a couple of NPEs on shutdown since the refactoring... (more) fixed a couple of NPEs on shutdown since the refactoring. trying making ED->COORD bind before COORD->ED to see if I can make it actually come up; still not working though. (collapse) download
Version 7 May 13th, 2009 finsprings  factored out network stuff and keyboard stuff as precursor to... (more) factored out network stuff and keyboard stuff as precursor to making a simpler high-level API for BUGbee. haven't tested this one on a BUG yet though. (collapse) download
Version 6 May 5th, 2009 finsprings  Add debugging msgs to the Remote->Local text area (can be... (more) Add debugging msgs to the Remote->Local text area (can be disabled with a flag at the top of the app class). Now using cheesy-but-functional marker file to indicate which BUG is the coord - /home/root/chatboss (collapse) download
Version 5 April 9th, 2009 finsprings  Added calls to get/setUserDesc (more) Added calls to get/setUserDesc (collapse) download
Version 4 April 6th, 2009 finsprings  Revamped gui to include labels and status; ditched STATE_JOINING as... (more) Revamped gui to include labels and status; ditched STATE_JOINING as it wasn't needed. (collapse) download
Version 3 April 5th, 2009 finsprings  clean up; remove threads for data/control since I can't it... (more) clean up; remove threads for data/control since I can't it to work properly without polling anyway. (collapse) download
Version 2 April 4th, 2009 finsprings  bit more commenting (more) bit more commenting (collapse) download
Version 1 April 4th, 2009 finsprings  First version of a simple chat application using the BUGBee... (more) First version of a simple chat application using the BUGBee module for the communication. (collapse) download

This application is licensed under the MIT license agreements.

Viewing BUGBeeChat   Link