Palm T5 RS232 Interface | >> Home |
It doesn't have a standard RS232 interface anymore, but a serial UART which can be used to set up a simple RS232 interface. Simple, because handshake lines are not included.
Lines available are:
25 pin D-Sub connector | 9 pin PC-interface | ||
2 | RXD (input) | 3 | TXD (output) |
3 | TXD (output) | 2 | RXD (input) |
7 | GND | 5 | GND |
15 | +5V charge for Palm | ||
As the Multi-connector does not have an integrated power plug we have used pin 15 of our connector to make charging possible through that cable if needed!
In order to use the ASLib Shared Library, the library must be loaded using the NSBasic LoadLibrary statement. This statement should be located in the program's Startup code so that the functions will be available throughout the program:
Program's Startup code:
Sub main() LoadLibrary "ASLib", "ASL" End SubAdditionally the ASLib Shared Library and the ASLib.INF file must be present in your "nsbasic\lib" directory and the ASLib.prc file must be downloaded to your device or included as ressource. |
Returns the version number.
Example
Dim version as Double version = ASL.Version()BatVolts()
Returns the device battery voltage * 100.
Example
Dim volt as Integer volt = ASL.BatVolts()Plugged()
Returns 1 if device is powered trough external adapter, else 0.
Example
Dim power as Integer power = ASL.Plugged()T5ExtPwrOn()
Switch on Power line and return status of operation:
0 | if everything is fine |
1 | if T5 specific library could not be found (typically seen on any other device than a Tungsten T5) |
2 | if T5 specific library could not be opened |
3 | if operation could not be performed |
4 | if T5 specific library could not be closed |
Example
Dim res as Integer res = ASL.T5ExtPwrOn()T5ExtPwrOff()
witch off Power line and return status of operation:
0 | if everything is fine |
1 | if T5 specific library could not be found (typically seen on any other device than a Tungsten T5) |
2 | if T5 specific library could not be opened |
3 | if operation could not be performed |
4 | if T5 specific library could not be closed |
Example
Dim res as Integer res = ASL.T5ExtPwrOff()
This program is commercial software. Only ASLib library Version 2.x includes a royalty-free per-developer runtime license. You can distribute the extension PRC files royalty-free with your application but you need to purchase a separate license for each NSB developer (person). You can contact the author by mail: office@schloegl-software.atYou can find my public PGP-key at: http://schloegl-software.at/publicPGP_key.asc |
Please contact me directly! |
Copyright (C) 2005 by Schloegl-Software |