Shop OBEX P1 Docs P2 Docs Learn Events
CI-V experience? — Parallax Forums

CI-V experience?

rogersydrogersyd Posts: 223
edited 2010-03-20 13:10 in General Discussion
Hi all.

I am attempting to create an prop based controller for the icom ci-v based radios and am not getting very far. This could be due in large part to my inexperience or stupidity. Eventually I hope to create a control unit of sorts that would send RF signals to the radio. For now I am hard wired and am only trying to send a command to the rig as a proof of concept. For my project I am utilizing the prop PDB which conveniently has a built in max3232e.

The serial data format is 8 bits, no parity, 1 stop bit. From my understanding of the protocol I would simply need to send a string of hex command codes one byte at a time to the radio. Easy enough you would think using one of the available objects like Simple_Serial.

Does anyone have experience in the CI-V realm that could help? There are some great websites that detail the various ci-v commands but I haven't been able to find any real helpful info in the Prop/BS2 space. I did search around the objex and forums and wasn't able to find any useful info but maybe I missed something...

The attached code is something I threw together this morning, thinking it was going to be "that easy" and I am almost embarrassed to post it up here as it is rather amateurish in nature, but hey we all gatta start somewhere. In it you can see that I have tried a few different methods for sending the codes to the radio but none of them are working.

If any of the prop gurus could shed some light on this it would be greatly appreciated. Thanks for any help or direction.

-rogersyd

Comments

  • kwinnkwinn Posts: 8,697
    edited 2010-03-08 04:29
    I have not had time to check the programs in detail but I notice you are using pins 28 and 29 for the Simple_Serial, comengine, and FullDuplexSerial objects. Are you doing this for a reason? Those pins are also used for accessing the eeprom. Have you tried using different pins?


    I am not familiar with CI-V but it appears to be fairly straight forward from a hardware perspective where I do have some expertise. It seems to be straight serial data using a 0-5V level instead of the +-12V of RS232. I may be able to help with the serial communications aspect if you can provide me with an explanation of what you are doing with the three serial objects you are using.

    Post Edited (kwinn) : 3/8/2010 4:46:20 AM GMT
  • rogersydrogersyd Posts: 223
    edited 2010-03-20 13:10
    Thanks for the advice. Good catch. I will test that soon.
Sign In or Register to comment.