Hi,
This program example allows you to send alphanumeric characters
and strings out the Com7 serial port on a LG Fathom Windows Mobile
Phone. This example uses a Bluetooth wireless link to an external
Firefly Bluetooth adapter as the serial communication path.
In this version of the program I tried to bring out all of the characters
on the LG Fathom's Soft Input Panel keyboard.
You can individually send Upper case characters (A - Z)
by pressing a single button.
You can individually send Lower case characters (a - z)
by pressing a single button.
You can individually send Numeric characters (0 - 9)
by pressing a single button.
You can individually send one of 52 different Special characters
by pressing a single button.
You can transmit character strings by typing a string of characters
into the TX Transmit Textbox window using the Soft Input Panel
Keyboard and then press the "Send TX" button.
The Rx Receive Textbox window is used to display characters that
are received from the external Firefly Bluetooth adapter.
If you manually connect the TX and Rx lines together on the Firefly,
you can use the Range Test function to see if you are in communication
range of your external Bluetooth Serial Port Adapter.
If you have an embedded micro connected to your external Bluetooth
Serial Port Adapter you can press the "Loop-Back" button to send
a Special Character to your embedded micro which will automatically
create a loop-back path by connecting the TX and RX lines together
on the Bluetooth Serial Port Adapter (you will have to design your own
hardware logic circuit to enable and disable this function). Pressing
the "Loop-Back" button once will send a Special Character to turn
the hardware loop-back circuit ON and pressing the "Loop-Back"
button again will send a different Special Character to turn the
hardware loop-back circuit OFF. When the loop-back path is
enabled you can use the Range Test function. There is a Label
control that is updated when the "Loop-Back" button is pressed
to tell you if the loop-back function is ON or OFF.
Pressing the "RT-ON" button will turn the Range Test function ON.
Pressing the "RT-OFF" button will turn the Range Test function OFF.
There is a Range Test Label control that is updated to tell you if
the PDA device is in communication range of the external
Bluetooth Serial Port Adapter. If you are in range the Label will
display "IN". If you are out of range the Label will display "OUT".
The "SIP" button is used to turn the Soft Input Panel Keyboard ON
and OFF.
The Transmit Enable/Disable button is used to enable or disable
a buttons ability to transmit characters out the serial port.
If you set Transmit to Disable, you can press a button and see
the Ascii code for that character with out sending any data out
the serial port. This avoids error messages when you do not have
a Bluetooth Serial Port connection established with your external
Bluetooth Serial Port Adapter module.
When you set Transmit to Enable, you will need to have an established
Bluetooth Serial Port connection with your external Bluetooth hardware
module. Each time you press a button the program will try to send a
character out the serial port connection. Error messages will occur if
the program tries to send a character out the serial port and the
Bluetooth serial port connection is not established with your external
hardware.
Pressing the "Open" button will open the Bluetooth communication port.
Pressing the "Close" button will close the Bluetooth communication port.
Pressing the "TX" button will clear the Transmit Textbox window.
Pressing the "RX" button will clear the Receive Textbox window.
This program example allows you to send alphanumeric characters
and strings out the Com7 serial port on a LG Fathom Windows Mobile
Phone. This example uses a Bluetooth wireless link to an external
Firefly Bluetooth adapter as the serial communication path.
In this version of the program I tried to bring out all of the characters
on the LG Fathom's Soft Input Panel keyboard.
You can individually send Upper case characters (A - Z)
by pressing a single button.
You can individually send Lower case characters (a - z)
by pressing a single button.
You can individually send Numeric characters (0 - 9)
by pressing a single button.
You can individually send one of 52 different Special characters
by pressing a single button.
You can transmit character strings by typing a string of characters
into the TX Transmit Textbox window using the Soft Input Panel
Keyboard and then press the "Send TX" button.
The Rx Receive Textbox window is used to display characters that
are received from the external Firefly Bluetooth adapter.
If you manually connect the TX and Rx lines together on the Firefly,
you can use the Range Test function to see if you are in communication
range of your external Bluetooth Serial Port Adapter.
If you have an embedded micro connected to your external Bluetooth
Serial Port Adapter you can press the "Loop-Back" button to send
a Special Character to your embedded micro which will automatically
create a loop-back path by connecting the TX and RX lines together
on the Bluetooth Serial Port Adapter (you will have to design your own
hardware logic circuit to enable and disable this function). Pressing
the "Loop-Back" button once will send a Special Character to turn
the hardware loop-back circuit ON and pressing the "Loop-Back"
button again will send a different Special Character to turn the
hardware loop-back circuit OFF. When the loop-back path is
enabled you can use the Range Test function. There is a Label
control that is updated when the "Loop-Back" button is pressed
to tell you if the loop-back function is ON or OFF.
Pressing the "RT-ON" button will turn the Range Test function ON.
Pressing the "RT-OFF" button will turn the Range Test function OFF.
There is a Range Test Label control that is updated to tell you if
the PDA device is in communication range of the external
Bluetooth Serial Port Adapter. If you are in range the Label will
display "IN". If you are out of range the Label will display "OUT".
The "SIP" button is used to turn the Soft Input Panel Keyboard ON
and OFF.
The Transmit Enable/Disable button is used to enable or disable
a buttons ability to transmit characters out the serial port.
If you set Transmit to Disable, you can press a button and see
the Ascii code for that character with out sending any data out
the serial port. This avoids error messages when you do not have
a Bluetooth Serial Port connection established with your external
Bluetooth Serial Port Adapter module.
When you set Transmit to Enable, you will need to have an established
Bluetooth Serial Port connection with your external Bluetooth hardware
module. Each time you press a button the program will try to send a
character out the serial port connection. Error messages will occur if
the program tries to send a character out the serial port and the
Bluetooth serial port connection is not established with your external
hardware.
Pressing the "Open" button will open the Bluetooth communication port.
Pressing the "Close" button will close the Bluetooth communication port.
Pressing the "TX" button will clear the Transmit Textbox window.
Pressing the "RX" button will clear the Receive Textbox window.
Last edited: