514296
57
Zoom out
Zoom in
Previous page
1/113
Next page
www.ti.com
eZ430-Chronos Software Projects
3.6.6.1.2 Control Center DLL
The sources for the DLL are available in the eZ430-Chronos Windows package and can be found in
C:\Program Files\Texas Instruments\eZ430-Chronos\Control Center\GUI Sources\DLL.
The eZ430-Chronos Windows DLL has been developed using Microsoft Visual C++ 2008 Express Edition.
In order to rebuild the DLL file the Microsoft Visual Studio must be installed, since the registry enumeration
code uses MFC functions. If Microsoft Visual Studio is not present, it is still possible to rebuild the DLL, but
the "enumser" source code part needs to be removed from the project. Therefore, the BM_GetCOM()
function won’t work anymore.
The DLL has two interface sections, one that exports standard C functions, and a second one exporting
TCL-compliant functions. These TCL-compliant functions are used by the graphical user interface. Hence,
when compiling the DLL, TCL needs to be present in the default directory (C:\Tcl); otherwise, the
reference to the TCL libraries (tcl85.lib, tclstub85.lib) is invalid. If the DLL is compiled without the TCL
interface, the respective source code file and the references to the TCL libraries must be deleted.
COM Port Management
1. Opening the COM port
Prior to any communication, the COM port where the RF access point is connected must be opened.
The hardware is powered up immediately after the unit is connected. Some parts of the hardware
require a startup time of several hundred milliseconds. As a result, any access to the hardware should
not be done within one second after connecting the device.
NOTE: To address COM ports higher than COM9 in Windows, precede the "COMxx" string with the
sequence "\\.\".
The COM port is opened with the following function:
bool BM_OpenCOM( char * strPortName,
DWORD dwBaudrate = 115200,
WORD wTimeout = 30,
bool bRTS = false,
bool bDTR = false);
Parameters
strPortName
Name of the COM port (for example, "\\.\COM11").
wTimeout
Time in milliseconds a reply to a command is expected; default value is 30 ms, should not be
changed
dwBaudrate
Baudrate for the serial interface; default is 115200 Baud, should not be changed
bRTS
State of RTS line during normal operation; default is false (=GND), should not be changed
bDTR
State of DTR line during normal operation; default is false (=GND), should not be changed
Return Value
Returns true if COM port could be opened, otherwise returns false.
2. Closing the COM port
A successfully opened COM port must be closed when quitting the application to release all allocated
memory and the port itself.
The COM port is closed with the following function:
void BM_CloseCOM(void);
57
SLAU292DNovember 2009Revised March 2011 eZ430-Chronos Software
Submit Documentation Feedback
© 2009–2011, Texas Instruments Incorporated
57


Need help? Post your question in this forum.

Forumrules


Report abuse

Libble takes abuse of its services very seriously. We're committed to dealing with such abuse according to the laws in your country of residence. When you submit a report, we'll investigate it and take the appropriate action. We'll get back to you only if we require additional details or have more information to share.

Product:

For example, Anti-Semitic content, racist content, or material that could result in a violent physical act.

For example, a credit card number, a personal identification number, or an unlisted home address. Note that email addresses and full names are not considered private information.

Forumrules

To achieve meaningful questions, we apply the following rules:

Register

Register getting emails for Texas Instruments eZ430-Chronos at:


You will receive an email to register for one or both of the options.


Get your user manual by e-mail

Enter your email address to receive the manual of Texas Instruments eZ430-Chronos in the language / languages: English as an attachment in your email.

The manual is 7,17 mb in size.

 

You will receive the manual in your email within minutes. If you have not received an email, then probably have entered the wrong email address or your mailbox is too full. In addition, it may be that your ISP may have a maximum size for emails to receive.

The manual is sent by email. Check your email

If you have not received an email with the manual within fifteen minutes, it may be that you have a entered a wrong email address or that your ISP has set a maximum size to receive email that is smaller than the size of the manual.

The email address you have provided is not correct.

Please check the email address and correct it.

Your question is posted on this page

Would you like to receive an email when new answers and questions are posted? Please enter your email address.



Info