Ok, I believe the issue is that the block size needed vs. number passed are different. You need to explicitly specify the elements in the IE_BLK array. For example, if passing "123456789" it needs to passed like so: ieblk.data[5] =0x21 ieblk.data =0x43 ieblk.data[7] =0x65 ieblk.data =0x87 ieblk.data[9] = 0x9 So the calculation of "ieblk.length = strlen(my_num) + 5" is incorrect in this case. As the number passed can be half that of strlen in this case when passing 2 digits into a single array element. Jeff
↧