Hi, I am a novice at writing code so I am not quite sure how to write what I need, and/or if I even have enough info to write the proper codes based on the documents I was given. Can someone help me with determining if I can complete the commands for the HTD MCA-66 Controller/Amplifier. Perhaps someone already made this user device for use in Integration Designer? That would make life a lot easier! I have attached the RS232 documentation that the HTD tech emailed me today. This is the link to the unit as well : http://www.htd.com/Products/Mid-Level-and-Lync-Systems-Without-Keypads/MCA-66-and-HTDNET-MC
Simply put, does the attached 232 document give me enough information to write the codes in RS232 Library Manager? If so, can someone choose a few of the commands in the attached PDF document and write out the codes here so that I can compare them to the document and see if I can make sense of what you are doing, so that I can try to complete the device on my own?
Thank you for any help!!
Jeff MCA66.pdf 122k .pdf file
I don't know what Integration Designer or RS232 Library Manager is, but that document has all the info anyone would need to write code to communicate with that device.
Basically take the Tx format and substitute the data values from the tables to build a command. I can't quite tell how the checksum is calculated from that document, but it's typically all the bytes they list XOR'd together.
I'm not sure how novice you are, but you'll need a pretty good understanding of binary, hex and boolean math to program any RS232 stuff from scratch. I typically take the contents of a spec like you have and put it in a spreadsheet, and build some formulas for the checksum byte so I know what my command strings should look like, so I can check my code using Hyperterminal on a loopback. Once I'm certain my program is sending the strings according to spec, I test on the actual device. I guess you could skip the Hyperterminal test if you wanted.
The hardest part for me is not sending commands but receiving them. So if you want feedback, the code around that is generally more complex since you have to detect the events, read your comm buffer, then parse and decode the data, then display it on your controlling device. That can be a significant coding effort.
|All times are GMT -7. The time now is 10:09 AM.|
Powered by vBulletin® Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
vBulletin Security provided by vBSecurity (Pro) - vBulletin Mods & Addons Copyright © 2019 DragonByte Technologies Ltd.
vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2019 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2019 DragonByte Technologies Ltd.