We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I am having difficulty sending commands to the UART using fprintf. I am able to send 4 commands without difficulty. However, when I try to send the fifth command, fprintf returns a -1. Any other commands after this also returns a -1. Any ideas why this is happening?
What do you mean by "commands" here, and which one(s), precisely, are you sending?
Are you sure that you have correctly implemented the underlying support required by fprintf? Look up "retargetting"...
I want to request information from the device Im connected to using UART so I send a command,SS1400X, using fprintf. I can send 4 different types of command: SS1400, SS1420, SS1440, SS1460 to the device. The device responds with no problems. However, when I send the next command, SS1480, I see that the command is sent to the device but fprintf is returning a -1. I will look into retargetting. Thanks