Shop OBEX P1 Docs P2 Docs Learn Events
Icom ci-v — Parallax Forums

Icom ci-v

JJJJJJ Posts: 2
edited 2008-03-20 17:02 in BASIC Stamp
First - I'm a newbie to BS2 . This is a repost of my original "no subject" post to add the subject ...

I am using an ICOM IC-746PRO amateur radio transceiver with CI-V rig control. I have been trying to use my BS2 to control the radio but am not having any luck.

Does anyone have experience with CI-V and BS2? Is the BS2 output compatible with CI-V, or does it need to go through a level converter?

Comments

  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2008-03-18 17:42
    In the future please do not repost...Edit you message to add a subject. The duplicate post has been removed.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • Larry~Larry~ Posts: 242
    edited 2008-03-19 21:42
    Yes I have done CI-V interface I will look around for my info

    larry
  • Larry~Larry~ Posts: 242
    edited 2008-03-19 21:56
    '{$STAMP BS2}
    'This program allows you to read the frequencies stored into memory of a Optoelectronics Scout Model-25 which uses the Icom civ interface. I have a manual somewhere that has the Icom protocol I will look for it if you need it.
    '

    a var byte
    b var byte
    c var byte
    d var byte
    e var byte
    f var byte
    g var byte
    h var byte
    i var byte
    j var byte
    k var byte
    L VAR WORD
    BCD VAR WORD

    HOLD:
    IF IN11 = 0 THEN START
    GOTO HOLD

    start:
    debug " START PROGRAM READ",13,13
    FOR L= 0 TO 399
    bcd = ((l DIG 2) << 8) + ((l DIG 1) << 4) + (l DIG 0)
    pause 80
    serout 3,84,[noparse][[/noparse]$FE,$FE,$90,$80,$7F,$22,bcd.highbyte,bcd.lowbyte,$FD]
    serin 3,84,2000,stopPed,[noparse][[/noparse]wait(254),a,b,c,d,e,f,g,h,i,j,k]
    debug hex2 a," ",hex2 b," ",hex2 c," ",hex2 d," ",hex2 e," ",hex2 f," ",hex2 g," ",hex2 h," ",hex2 i," ",hex2 j," ",hex k,13
    debug dec3 l," ",DEC2 BCD.highbyte," ",DEC3 BCD.lowbyte," ",hex2 J,HEX2 I,".",hex2 h,hex2 G,13,13
    IF IN11 = 0 THEN STOPPED
    IF J=0 AND I=0 AND H=0 AND G=0 THEN STOPPED
    NEXT

    STOPPED:
    PAUSE 500
    debug 13," STOPPED COMMUNICATIONS",13," ENDING PROGRAM READ ",13,13
    pause 2000
    goto hold
  • JJJJJJ Posts: 2
    edited 2008-03-20 16:12
    Larry:

    Thanks for the help. I have a copy of the CI-V manual with codes and protocol, so the codes are no problem.
    My idea is to read SWR from the radio and trigger an alarm if it is over a certain level - I'm prone to change bands
    and forget to reset my antenna tuner.

    Does the output of the Stamp go through a level converter, or is it compatible for direct connection to the radio?
  • Larry~Larry~ Posts: 242
    edited 2008-03-20 17:02
    Well its been 10 years since I did this, and It if I remember correctly they have converters. The freq. counter I was reading there was no need for a converter, it hooks to a scanner and will control the freq. so just try it and see!
Sign In or Register to comment.