I think it is possible to solve this problem putting the lock in onreceive under a try statement as follows.I ran into a serious bug in start() which stopped it ever receiving data because ioservice.run() was returning before it was given any work to do.The fix is to call asyncreadsome(); before creating the thread and calling run().
But when I am trying to set the baud rate of the port using ioctl() system call. ![]() ![]() Vxworks Serial Port Example Code Was ToThe way you wrote the code was to assign f either 0 or 1 (0 in this case, because you could open the serial port), and then tried to set baud rate for file descriptor 0 (i guess is the stdout id). The same you assigned status either 0 or 1 (1 in this case, because you couldnt set the baud rate, so ioctl returned -1). Provide details and share your research But avoid Asking for help, clarification, or responding to other answers. Making statements based on opinion; back them up with references or personal experience. Not the answer youre looking for Browse other questions tagged c serial-port vxworks baud-rate or ask your own question.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |