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

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -

Nuget pack csproj using nuspec -