TrackGen interaction details
Posted: Mon Apr 29, 2019 3:21 am
I am using an STM32L4 device to control my AD9910 which means I'm writing my own version of the TrackGen code. The manual provides me with the command set and the 115200 8N1 specs for the communication but it does leave silent a couple of points:
- is the interface expected to echo/not echo the commands sent to it?
I would assume no echo but it is worth the question. Also if an echo is expected, is it on a character-by-character basis (I would assume so)?
- what does the interface do if it gets back '\r\n' (in whatever order) rather than just '\n' (as per the manual) for return strings?
- for the majority of commands (i.e. commands other than those with an explicit return string - GETPINS etc.) is a command acknowledgement expected/required and if so what?
In other words, what error checking/correction protocol is there to make sure a command has been correctly received and acted upon?
- when a string is returned (e.g. from GETPINS) is the string case sensitive?
- for the return string from GETPPMTRIM, is there a prefix before the number?
- for GETDDSTYPE, the manual shows numbers for 2 DDS devices; are there other numbers defined?
And if not, is there a central registry to have numbers allocated/reserved?
- Is it safe to assume that no other command, other than those defined, will be sent to the TrackGen (equivalent) code?
If not then is there an 'unknown command' style return string?
Thanks
Susan
- is the interface expected to echo/not echo the commands sent to it?
I would assume no echo but it is worth the question. Also if an echo is expected, is it on a character-by-character basis (I would assume so)?
- what does the interface do if it gets back '\r\n' (in whatever order) rather than just '\n' (as per the manual) for return strings?
- for the majority of commands (i.e. commands other than those with an explicit return string - GETPINS etc.) is a command acknowledgement expected/required and if so what?
In other words, what error checking/correction protocol is there to make sure a command has been correctly received and acted upon?
- when a string is returned (e.g. from GETPINS) is the string case sensitive?
- for the return string from GETPPMTRIM, is there a prefix before the number?
- for GETDDSTYPE, the manual shows numbers for 2 DDS devices; are there other numbers defined?
And if not, is there a central registry to have numbers allocated/reserved?
- Is it safe to assume that no other command, other than those defined, will be sent to the TrackGen (equivalent) code?
If not then is there an 'unknown command' style return string?
Thanks
Susan