objective c - Data Transmission and Receivinge using RedPark L2DB9V SDK -
i using redpark sdk , serical cable l2-db9v communication between iphone , max 3232 board using max3232 usb digital converter. purpose have used demo app provided redpark understand functionality of sdk. sdk has "rscmgr class" in methods implemented communication purpose send , receive data example
- (int) write:(uint8 *)data length:(uint32)length; - (int) read:(uint8 *)data length:(uint32)length; - (int) getreadbytesavailable; - (void) writedata:(nsdata *)data;
delegate methods:
- (void) cableconnected:(nsstring *)protocol; - (void) cabledisconnected; - (void) portstatuschanged; - (void) readbytesavailable:(uint32)length;
in case, cable connection , disconnection methods have been called. sending data using:
- (int) write:(uint8 *)data length:(uint32)length;
and implemented loopback functionality receive data back. in case
- (void) readbytesavailable:(uint32)length;
should called not calling , unable find out cause. , there no way make sure data being sent using 1 of these methods or not. please, if 1 have idea problem thankful.
i have resolved issue not sending correct format of data buffer hardware. sending correct data buffer format solved it.
thanks
Comments
Post a Comment