Type 8: Connecting to I-7000/I-87K series module
Function Description
SendCmdTo7000
Sends a command to an I-7000/I-87K series
module.
ReceiveResponseFrom7000_ms
Receives a response from an I-7000/I-87K
series module
ascii_to_hex
Converts the ASCII code to a hexadecimal
value.
hex_to_ascii
Converts a hexadecimal value to ASCII code.
…More…
There are many other functions related to
connecting to I-7000/I-87K series module.
Please refer to the 7188xb.h header file and
the user manual on the enclosed CD, which
can be found at
CD:\Napdos\minios7\document
\lib_manual_for_7188xabc\index.htm
for more
detailed information.
SendCmdTo7000()
Function: Sends a command to an I-7000 series module.
Syntax:
int SendCmdTo7000(int iPort, unsigned char *cCmd,
int iChksum);
Header: #include
”7188xb.h”
Description: If the checksum is enabled, the function will add 2 bytes
checksum to the end of the command.
iPort: 0/1/2/3/4 for COM0/1/2/3/4.
cCmd: The command to be sent (DO NOT add “\r” at the
end of the cCmd as SendCmdTo7000() will add a
checksum (if needed) and “\r” after the cCmd).
iChecksum: 1 for checksum enabled, 0 for checksum
disabled.
Return Value: On success, returns NoError.
On error, returns an Error code. Refer to the user
manuals for I-7000 series modules for more details.
Example:
#include “7188xb.h”
void main()
{
int port=2,quit=0,x;
I-7188XB Series User’s Manual(Ver.1.0, Apr/2007,
7MH-020-10
) ---
133
Summary of Contents for I-7188XB Series
Page 88: ...I 7188XB Series User s Manual Ver 1 0 Apr 2007 7MH 020 10 88...
Page 138: ...I 7188XB Series User s Manual Ver 1 0 Apr 2007 7MH 020 10 138...
Page 144: ...Step 8 Make the project I 7188XB Series User s Manual Ver 1 0 Apr 2007 7MH 020 10 144...
Page 151: ...Step 8 Rebuild the project I 7188XB Series User s Manual Ver 1 0 Apr 2007 7MH 020 10 151...