Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Share Your Creations
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Share Your Creations Show your developed application to Basic4ppc community. Please include source code if possible.

Bluetooth serial port program with Automatic Sequence repeat function.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-02-2009, 03:46 PM
pdablue's Avatar
Senior Member
 
Join Date: Sep 2007
Posts: 114
Arrow Bluetooth serial port program with Automatic Sequence repeat function.

Hi,

This Bluetooth Serial Port communication program lets you
define a serial packet of 1 to 16 characters. The serial packet
of characters will be transmitted repeatedly until stopped.

You can specifiy a delay between the characters in a packet
from 0 to 9 seconds.

You can specify a delay between the serial packets from 0 to 9 seconds.

The serial packets will be transmitted repeatedly until stopped.

This program uses the Serial2.dll. You must be able to establish a
Bluetooth serial port connection between your PDA and an external
Bluetooth module. When the serial com port is opened if a valid
connection is not established the Serial2.dll will give you an error
message. When a valid serial port connection is established you
will not see any message at all, which lets you know the connection
is working properly.

You can assign a Label and Value to each of the 16 possible entries.
The 16 entries are referenced by a Row and a Column position.

R1C1 Entry number 1.
R1C2 Entry number 2.
R1C3 Entry number 3.
R1C4 Entry number 4.

R2C1 Entry number 5.
R2C2 Entry number 6.
R2C3 Entry number 7.
R2C4 Entry number 8.

R3C1 Entry number 9.
R3C2 Entry number 10.
R3C3 Entry number 11.
R3C4 Entry number 12.

R4C1 Entry number 13.
R4C2 Entry number 14.
R4C3 Entry number 15.
R4C4 Entry number 16.

To define a Lable and Value for entries 1 to 16, you must check the appropriate checkbox first, then enter the data into the Label and Value textboxes and then press the "E" button to enter the data into the selected Row and Column position.

Press the "E" button to enter data for Label and Value into the checked Row, Column position.

Press the "CLV" button to clear the Label and Value textboxes.
Press the "CT" button to clear the yellow Transmit textbox.
Press the "CR" button to clear the blue Receive textbox.
Press the "CC" button to clear the Row and Collumn checkboxes 1 to 16.
Press the "SIP On/Off" button to turn the Soft Input Panel keyboard on and off.

Press the "Read:File" button to read the (.txt) data file into the Row and Column entries.

Press the "Save:File" button to save the Row and Column data into the (.txt) data file.

Press the "View:Data" button to see all of the Row and Column data at one time.

Press the "Open" button to open the Bluetooth Serial port connection.
Press the "Close" button to close the Bluetooth Serial port connection.
Press the "Run" button to start the Automatic Sequence running.
Press the "Stop" button to stop the Automatic Sequence from running.

The Timer number Up/Down box lets you select the millisecond delay between each character in a packet. The millisecond delay can be between 0 to 9000 and the default value is 300.

The Packet Delay number Up/Down box lets you select the second delay between each serial packet. The second delay can be between 0 to 9 seconds and the default value is 3.

Be sure to check the checkboxes that represent the data that you want to be transmitted before you press the "Run" button to start the Automatic Sequence.

The file "Auto1.JPG" is a screenshot of the program.
The file "Auto2.JPG" is a screenshot of the program after reading data file.
The file "Auto3.JPG" is a screenshot of the programs data view screen.
The file "Seq4.sbp" is the Basic4ppc source code file.
The file "AutoSeqzip.zip" is the zipped up ARMV4 (.CAB) installation file.
Attached Images
File Type: jpg Auto1.JPG (27.9 KB, 34 views)
File Type: jpg Auto2.JPG (28.5 KB, 15 views)
File Type: jpg Auto3.JPG (19.8 KB, 17 views)
Attached Files
File Type: sbp Seq4.sbp (29.1 KB, 53 views)
File Type: zip AutoSeqzip.zip (79.1 KB, 61 views)

Last edited by pdablue : 04-02-2009 at 04:25 PM.
Reply With Quote
  #2 (permalink)  
Old 04-02-2009, 07:07 PM
taximania's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Derbyshire. UK
Posts: 592
Awards Showcase
Beta Tester 
Total Awards: 1
Default

So you've not studied the post I made in your other thread yet

Your code contains far to many lines that can be combined.
PM me if you need more help on how to do this.
Or reply here, and we'll share the info with other forum members
__________________
.
.
.
Don't ask, I'm fine, honest. !!
.
.
.
Just a little crazy at times



O2 XDA, GW Evo 2.1 UC WWE Rom, WM6.1
Radio Ver 03.34.90
With Basic4ppc V6.80


http://www.taximania.co.uk
Reply With Quote
  #3 (permalink)  
Old 04-08-2009, 02:10 PM
pdablue's Avatar
Senior Member
 
Join Date: Sep 2007
Posts: 114
Smile Code length...

Hi,

I am still learning how to use Basic4ppc. I have really only used a
few of the commands available so far. I need to look at more code
examples to see how others are using the commands.
I do not have to much time to write code, most of the programs
I have written so far have been in my spare time. I still have many
questions...
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bluetooth serial com program lets you define 10 custom buttons and values. pdablue Share Your Creations 0 04-01-2009 03:13 PM
Bluetooth Serial Port communication program for the PDA. pdablue Share Your Creations 3 03-30-2009 02:45 PM
Use Basic4ppc to send serial data from a PDA to a BlueSMiRF Bluetooth module. pdablue Share Your Creations 3 11-19-2007 09:58 PM
Serial Port Profile & Bluetooth Paul Questions (Windows Mobile) 5 07-27-2007 04:08 PM
Open serial port crashes program on device Steve Bug Reports 2 05-23-2007 09:52 PM


All times are GMT. The time now is 12:13 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0