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 7188xc.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
”7188xc.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 “7188xc.h”
void main()
{
int port=2,quit=0,x;
I-7188XC Series User’s Manual(Ver.1.0, Apr/2007,7MH-21-10) ---
131
Содержание I-7188XC Series
Страница 87: ...I 7188XC Series User s Manual Ver 1 0 Apr 2007 7MH 21 10 87...
Страница 136: ...I 7188XC Series User s Manual Ver 1 0 Apr 2007 7MH 21 10 136...
Страница 142: ...Step 8 Make the project I 7188XC Series User s Manual Ver 1 0 Apr 2007 7MH 21 10 142...
Страница 149: ...Step 8 Rebuild the project I 7188XC Series User s Manual Ver 1 0 Apr 2007 7MH 21 10 149...