I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---
135
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 7188xa.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 ”7188xa.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 <7188xa.h>
void main()
{
int port=2,quit=0,x;
Summary of Contents for I-7188XA
Page 62: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 62 5 6 COM1 RS 232 1 2 232...
Page 90: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 90 1 2...
Page 140: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 140...
Page 146: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 146 Step 8 Make the project...
Page 153: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 153 Step 8 Rebuild the project...
Page 158: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 158...
Page 162: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 162...
Page 164: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 164...