Tuesday, October 2, 2007

Interrupts handling

Hello everyone,

We have received lots of questions from our customers regarding how interrupts are being handled.

Interrupts handling is much more simpler from what you might thought in the AIRcable, even simpler from a PC interrupt schema.

Basically as in any other processor you have an interrupt stack, where each new even get's registered. The biggest difference between this stack schema and the PC schema is that interrupts are only pushed at bottom or at top of the stack, depending the interrupt priority.

Only 4 interrupts are pushed to the top: @ALARM, @PIN_CODE, @MESSAGE and @FTP. You might ask your self why @INQUIRY is not high priority, as we insist so much in making it short as possible, simple because if @INQUIRY would be high priority it would interrupt it self.

So how does the interrupt handler work? Simple each time a new interrupt is pushed into the stack it checks if it goes in the top of the current serviced interrupt, if it does then it goes to service that new interrupt, if it doesn't it will execute the code until it reaches RETURN. Once it reaches RETURN it will go and see if the stack has more stuff to service.

As you might know every processor allows you to disable interrupts, this is achieved by adding ; at the end of each line.

I think this will clarify all your questions regarding interrupts, if you have more questions for us please leave your comments and we will be glad to help you.


Friday, April 27, 2007

Command Line Version 0.8 UART Released

Hello everyone,
We found a couple of bugs in the command line version 0.7 UART. Most of this bugs where related to the manual inquiry, and the service master mode. Version 0.8 fix all this bugs, and is another step forward the new generation command line (Version 1.0) which should be released soon.
Meantime we encourage you to download version 0.8 from here.

NOTE: There's a bug in the Command Line V0.8 UART for the SerialOS device, please get the AIRcable.bas file from here.

Friday, April 6, 2007

Command Line Version 0.7 UART Released

Hello everyone,
We had just released the 0.7 command line for the UART. This version is a bug fixing from version 0.6, most sensitive bugs where related to mode changing.
You can get it here: http://aircable.googlecode.com/files/0.7UART.zip
This version applies to SerialOS, Mini, Industrial and OEM Boards.

Thursday, April 5, 2007

FAQ Released

Hello everyone,
We had started a FAQ section for our users. Based in the questions from our costumers, we wrote a simple FAQ that can be accessed from here.
Please give us your feedback, and if you think there is any question missing, don't hesitate to ask.

Tuesday, March 20, 2007

Production Tools

Hello everyone,
We had released a series of tools that can be used for product testings, and massive uploading. This tools are mainly targeted for internal use, but you can use them if you want.
Get here for more information http://www.aircable.net-a.googlepages.com/productiontools2
Manuel Naranjo

Monday, March 19, 2007

Command Line Version 0.7 SPP and Devel Tools Alpha 2 Released

Hello everyone,

We has just released version 0.7 SPP of our command line. This corrects a bug that made version 0.6 SPP don't behave correctly when using a parity different than even. WARNING: Only upload this code to AIRcable SMD. It's not compatible with other devices.

This should be our last release before we make the Command Line version 1.0, which will be fully rewritten from scratch, thanks to your suggestions we could improve our tool, and now is time to make it much better.

We have also corrected some bugs on our JEdit tools, please start using the Alpha 2 instead of the Alpha 1, serious bugs where found on the first alpha release.

You can get all this stuff from: http://code.google.com/p/aircable/

Manuel Naranjo

Tuesday, March 6, 2007

More jEdit stuff

Hello everyone,
I had been working on some jEdit Scripts this week, this scripts are like the Java Tool Set we have made in the past, but it is much better it has Graphical Interface. And is integrated with one of my favorite editors jEdit.

Here you can read about his new tools: http://code.google.com/p/aircable/wiki/jEdit_Tools, you can even watch a video there to see the scripts in action.

If anyone has a comment, suggestion, question, etc, don't doubt to ask,
Manuel Naranjo
AIRcable Development Blog Admin

Saturday, March 3, 2007

Code Highlight for JEdit

Hello everyone,
I just ended submitting a file that does the code Highlighting for AIRcable Basic code in the JEdit editor.

You can find the file here: download
You will need to modify the file that is under $HOME/.jedit/modes called catalog, you need to add this line:
before the tag.

$HOME is C:\Documents and Settings\\ in Windows or /home/ in Unix systems like Linux or Mac.

Here you have an snapshot of how the code highlighting looks like:

With this new tool you can tell if you are writing the code well or not. If any of the commands you write doesn't highlight somehow then that command doesn't exist on the OS.

This is the first part of our next AIRcable JEdit's Pluging, feel free to try it, and to give us your comments.

Manuel Naranjo
AIRcable Development Blog Admin.

Friday, March 2, 2007

Command Line Version 0.6 Released

Hello everyone,
We had just released the command line version 0.6. This new version includes a lot of new and exciting stuff like:
  • Command line over Bluetooth for the AIRcableSMD.
  • Power Measurement for the future AIRcableOS.
  • PIO list editing from the command line.
  • PIN and Name settings regarding the unique number of each AIRcable device.
  • Parity and Stop Bits configuration from the command line.
  • .....
You can see the electronic version of the docs from: here.

And you can download the code here:
UART Version - For all Devices
SPP Version - Only for AIRcableSMD

Please leave your comments with feedback, suggestions and questions, feel free to ask.
Manuel Naranjo

Tuesday, January 30, 2007

Tutorial Started

Hello everyone,
We had started working on our Tutorial/Example series, you can find it all here.
As we continue working on this you will start finding more links.
AIRcable Development Blog Admin

Monday, January 29, 2007

Sample Programs

Hello again,

We know how hard is to start knowing a new technology from the scratch, with that in mind, we had made a list of example programs we are going to put on the web, so our costumer can use them as a reference for they're code.

This list is temptative, and can change a lot, so please if you think there is something we are missing, something you think we can add or delete please let us know, we are here to help you. Here is the list (the order is not relevant):
  • Micro Slave: A simple code that opens the slave port on discoverable mode and accepts all the incoming connections. It will teach you how to open the slave channel, and how to make slave connections, and finally how to handle leds.
  • Little Slave: Like the micro slave, but now it will open the shell if the user press "+" when the connection is firstly started. It will teach you how to handle input characters and how to open shell connections.
  • Filtered Service Slave: A more complex mode, it will open the port in discoverable mode, but will check that those who want to connect to this peer complies with an address pattern. It will teach you how to compare string, and reject incoming connections.
  • Cable Slave: This is a piece of code taken from our command line, that will pair to a device, and then will apair invisible to all the other devices. It will teach you how to make an slave device discover and undiscoverable.
  • Mini Master: This code will make inquires, and once it found a device it will try to connect, once the connection is closed. This will teach you how to handle alarms, make inquires, handle inquires results, make master connection, and check master connections.
  • Filtered Service Master: This code will make inquires, and if the device it discovers matches a given pattern it will make a connection, once the connection is lost it will connect to the first thing it can find. It will teach you how to work with inquires showing how sensitive they are.
  • Listed Master: Those interested on buying AIRcable Mini or SMD can be very interested in this code. This code will have a predefined list of devices (between 0 and 30), will open a connection to each one of this (one at the time), will make some work over the connection, will close the connection and will continue with the next device, all this on an endless working cycle. It will teach you how to iterate, control state and close master connections from the master side.
  • Cable Master: This code is like our Cable Master, it will make inquires and will pair with the first device it can find. Once it is paired it will not inquiry any more and will only connect to it's peer. This code will show you a way to handle pairs from the master side.
  • Interactive Code: Sometimes you need an interactive shell on the other side, this code will teach you how to write a simple interactive program that will let the user control a series of leds and will read some analog/digital inputs.
  • Relay Mode Code: This code will show you how easy is to create a network of AIRcable devices. For this example you will need at least 3 different bluetooth devices, and one of those 3 must be an AIRcable OS enabled device. In this mode the AIRcable OS device will be connected to two other devices and will make a bridge between them, this way you can make the range of your bluetooth devices much longer.
Please let us know if you think we can add something more, or if you have your examples and want to show us your way to achieve things feel free to do it. Also if you need some support with your work, let us know we can surely help you.

AIRcable Development Blog Admin

Saturday, January 13, 2007

Command Line Version 0.5 Released, Devel Tools Alpha Release

The version 0.5 of the command line is ready for be used. You can download it from here: http://aircable.googlecode.com/files/0.5_.zip you can also download our source code from here: http://aircable.googlecode.com/files/0.5-src_.zip

We have also been working on a set of tools that you can use to make BASIC code development easier. The tools can be downloaded from here: http://aircable.googlecode.com/files/aircabletools.jar, this devel tools need and will only run with Java 6 which you can get from java.sun.com . If you want to try this tools simply do java -jar aircabletools.jar (from inside the folder where you downloaded the tools), you will see the list of commands, and if you do java -jar aircabletools.jar you will get the list of arguments to that command. This set of tools is the base for our next JEdit Plugin, so you can start trying them while we work on the plugin.
Just one thing, there is a bug on the code related to lines movement. In case you want to move code you firstly must move the code to an empty area (For example line 2000 which can't be used), you make all your work on those lines and then get them back to it's original place. We know this bug, we will correct it in the future.

Fell free to test our stuff, and give us your comments.