VARA FM settings for Icom ID-5100 #VARA


Graham
 

Thanks Andy

Looks like it can call the  ptt, That means , with  vara  calling the  PTT ,
all that's  needed, in this case ,  is a  $5  usb sound card  
just a  little  off beat with the  split access , across the  set 
but  with low  $ expenditure and good audio b/w 

Same as in the  other family of data modes, where the  cat  sets  the  required mode  
and the  audio is via the usb  , or  simple  sound card , Ros , has never
indicated , that anything  but  a cheap  sound interface is  needed 

73-Graham


Andrew O'Brien
 

The "raw" code for the 5100 in hamlib might be of help

Andy K3UK


*  Hamlib CI-V backend - description of ID-5100 and variations
 *  Copyright (c) 2015 by Stephane Fillod
 *
 *
 *   This library is free software; you can redistribute it and/or
 *   modify it under the terms of the GNU Lesser General Public
 *   License as published by the Free Software Foundation; either
 *   version 2.1 of the License, or (at your option) any later version.
 *
 *   This library is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *   Lesser General Public License for more details.
 *
 *   You should have received a copy of the GNU Lesser General Public
 *   License along with this library; if not, write to the Free Software
 *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 *
 */

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

#include <stdlib.h>

#include "hamlib/rig.h"
#include "idx_builtin.h"
#include "icom.h"

/*
 * Specs and protocol details comes from the chapter 13 of ID-5100_Full-Inst_Manual.pdf 
 *
 * NB: while the port labeled "Data" is used for firmware upgrades,
 * you have to use the port labeled "SP2" for rig control.
 *
 * TODO:
 * - DV mode
 * - GPS support
 * - Single/dual watch (RIG_LEVEL_BALANCE)
 */

#define ID5100_MODES (RIG_MODE_FM)
#define ID5100_ALL_RX_MODES (RIG_MODE_AM|ID5100_MODES)

#define ID5100_VFO_ALL (RIG_VFO_MAIN|RIG_VFO_SUB)

#define ID5100_SCAN_OPS RIG_SCAN_NONE

#define ID5100_VFO_OPS  RIG_OP_NONE

#define ID5100_FUNC_ALL ( \
                            RIG_FUNC_TONE| \
                            RIG_FUNC_TSQL| \
                            RIG_FUNC_VOX)

#define ID5100_LEVEL_ALL    (RIG_LEVEL_AF| \
                            RIG_LEVEL_BALANCE| /* TODO 0x16 0x59 */\
                            RIG_LEVEL_SQL| \
                            RIG_LEVEL_RAWSTR| \
                            RIG_LEVEL_RFPOWER| \
                            RIG_LEVEL_MICGAIN| \
                            RIG_LEVEL_VOXGAIN)

#define ID5100_PARM_ALL RIG_PARM_NONE


/*
 * FIXME: real measurement
 */
#define ID5100_STR_CAL UNKNOWN_IC_STR_CAL



/*
 */
static const struct icom_priv_caps id5100_priv_caps = {
0x8C, /* default address */
0, /* 731 mode */
1,      /* no XCHG */
};

const struct rig_caps id5100_caps = {
.rig_model =  RIG_MODEL_ID5100,
.model_name = "ID-5100",
.mfg_name =  "Icom",
.version =  BACKEND_VER,
.copyright =  "LGPL",
.status =  RIG_STATUS_UNTESTED,
.rig_type =  RIG_TYPE_MOBILE,
.ptt_type =  RIG_PTT_RIG,
.dcd_type =  RIG_DCD_RIG,
.port_type =  RIG_PORT_SERIAL,
.serial_rate_min =  4800,
.serial_rate_max =  19200,
.serial_data_bits =  8,
.serial_stop_bits =  1,
.serial_parity =  RIG_PARITY_NONE,
.serial_handshake =  RIG_HANDSHAKE_NONE,
.write_delay =  0,
.post_write_delay =  0,
.timeout =  1000,
.retry =  3,
.has_get_func =  ID5100_FUNC_ALL,
.has_set_func =  ID5100_FUNC_ALL,
.has_get_level =  ID5100_LEVEL_ALL,
.has_set_level =  RIG_LEVEL_SET(ID5100_LEVEL_ALL),
.has_get_parm =  ID5100_PARM_ALL,
.has_set_parm =  ID5100_PARM_ALL,
.level_gran = {
[LVL_RAWSTR] = { .min = { .i = 0 }, .max = { .i = 255 } },
},
.parm_gran =  {},
.ctcss_list =  common_ctcss_list,
.dcs_list =  full_dcs_list,
.preamp =   { RIG_DBLST_END, },
.attenuator =   { RIG_DBLST_END, },
.max_rit =  Hz(0),
.max_xit =  Hz(0),
.max_ifshift =  Hz(0),
.targetable_vfo =  0,
.vfo_ops =  ID5100_VFO_OPS,
.scan_ops =  ID5100_SCAN_OPS,
.transceive =  RIG_TRN_RIG,
.bank_qty =   0,
.chan_desc_sz =  0,

.chan_list =  {
// There's no memory support through CI-V,
// but there is a clone mode apart.
   RIG_CHAN_END,
},

.rx_range_list1 =   {
{MHz(118),MHz(174),ID5100_ALL_RX_MODES,-1,-1,ID5100_VFO_ALL},
{MHz(375),MHz(550),ID5100_ALL_RX_MODES,-1,-1,ID5100_VFO_ALL},
RIG_FRNG_END, },
.tx_range_list1 =  {
{MHz(144),MHz(146),ID5100_MODES,W(5),W(25),ID5100_VFO_ALL},
{MHz(430),MHz(440),ID5100_MODES,W(5),W(25),ID5100_VFO_ALL},
RIG_FRNG_END, },

.rx_range_list2 =   {
{MHz(118),MHz(174),ID5100_ALL_RX_MODES,-1,-1,ID5100_VFO_ALL},
{MHz(375),MHz(550),ID5100_ALL_RX_MODES,-1,-1,ID5100_VFO_ALL},
RIG_FRNG_END, },
.tx_range_list2 =  {
{MHz(144),MHz(148),ID5100_MODES,W(5),W(50),ID5100_VFO_ALL},
{MHz(430),MHz(450),ID5100_MODES,W(5),W(50),ID5100_VFO_ALL},
RIG_FRNG_END, },

.tuning_steps = {
// Rem: no support for changing tuning step
{ID5100_ALL_RX_MODES,kHz(5)},
{ID5100_ALL_RX_MODES,kHz(6.25)},
// The 8.33 kHz step is not selectable, depending on the operating band or mode.
{ID5100_ALL_RX_MODES,kHz(8.33)},
{ID5100_ALL_RX_MODES,kHz(10)},
{ID5100_ALL_RX_MODES,12500},
{ID5100_ALL_RX_MODES,kHz(15)},
{ID5100_ALL_RX_MODES,kHz(20)},
{ID5100_ALL_RX_MODES,kHz(25)},
{ID5100_ALL_RX_MODES,kHz(30)},
{ID5100_ALL_RX_MODES,kHz(50)},
RIG_TS_END,
},
/* mode/filter list, remember: order matters! */
.filters = {
{RIG_MODE_FM|RIG_MODE_AM, kHz(12)},
{RIG_MODE_FM|RIG_MODE_AM, kHz(6)},
RIG_FLT_END,
},
.str_cal = ID5100_STR_CAL,

.cfgparams =  icom_cfg_params,
.set_conf =  icom_set_conf,
.get_conf =  icom_get_conf,

.priv =  (void*)&id5100_priv_caps,
.rig_init =   icom_init,
.rig_cleanup =   icom_cleanup,
.rig_open =  NULL,
.rig_close =  NULL,

.set_freq =  icom_set_freq,
.get_freq =  icom_get_freq,
.set_mode =  icom_set_mode,
.get_mode =  icom_get_mode,
.set_vfo =  icom_set_vfo,

.set_powerstat = icom_set_powerstat,
.get_powerstat = icom_get_powerstat,
.decode_event =  icom_decode_event,

.set_func =  icom_set_func,
.get_func =  icom_get_func,
.set_level =  icom_set_level,
.get_level =  icom_get_level,

.set_ptt =  icom_set_ptt,
.get_ptt =  icom_get_ptt,
.get_dcd =  icom_get_dcd,

.set_rptr_shift =  icom_set_rptr_shift,
.get_rptr_shift =  icom_get_rptr_shift,
.set_rptr_offs =  icom_set_rptr_offs,
.get_rptr_offs =  icom_get_rptr_offs,
.set_ctcss_tone =  icom_set_ctcss_tone,
.get_ctcss_tone =  icom_get_ctcss_tone,
.set_ctcss_sql =  icom_set_ctcss_sql,
.get_ctcss_sql =  icom_get_ctcss_sql,
.set_dcs_sql =  icom_set_dcs_code,
.get_dcs_sql =  icom_get_dcs_code,

.set_split_vfo = icom_set_split_vfo,
.get_split_vfo = icom_get_split_vfo,
.set_split_freq = icom_set_split_freq,
.get_split_freq = icom_get_split_freq,
.set_split_mode = icom_set_split_mode,
.get_split_mode = icom_get_split_mode,

};


On Sun, Dec 6, 2020 at 3:59 PM Scott Currie <scott.d.currie@...> wrote:
You need 4 signals from/to the radio:
Ground
PTT
RX audio
TX audio

On the radio, the mic connector provides 3 of these:
Ground - Pin 7
PTT - Pin 4
Mic audio - Pin 6

The last connection, RX audio, comes from the external speaker connector on the back of the radio (also provides ground).

You will be building a custom cable to connect to your sound card interface.

Forget about the "data" connection on the back of the radio. This is for the slow data function of D-Star. It CANNOT be used in any way for Vara FM. The radio does not have an internal sound card.

You need a sound card interface that will connect to these connections. Something like a DRA-30 from Masters Communications. Signalink USB will work too.

CI-V (CAT) on the ID-5100 does not support PTT. Why would you want to anyway? The sound card interface provides PTT, and Vara FM can directly control this for most interface cards. Assuming you will be running Winlink Express, this application (and no others I can think of) will set the frequency for you. It must be done manually. So, forget about CI-V (CAT), it does not apply in this configuration. FM rigs typically do not support CAT, so this has support has not be added to any of the software applications.

Keep in mind that you will be using mic/speaker connections. This is NOT an ideal radio for this operation. You will be limited to Vara FM Narrow mode, half the maximum speed of Vara FM Wide mode. Also, since you are using speaker audio, the volume control will affect your settings. Bump that by accident and your performance will drop or not work at all. 

-Scott, NS7C



--
Andy


Scott Currie
 

You need 4 signals from/to the radio:
Ground
PTT
RX audio
TX audio

On the radio, the mic connector provides 3 of these:
Ground - Pin 7
PTT - Pin 4
Mic audio - Pin 6

The last connection, RX audio, comes from the external speaker connector on the back of the radio (also provides ground).

You will be building a custom cable to connect to your sound card interface.

Forget about the "data" connection on the back of the radio. This is for the slow data function of D-Star. It CANNOT be used in any way for Vara FM. The radio does not have an internal sound card.

You need a sound card interface that will connect to these connections. Something like a DRA-30 from Masters Communications. Signalink USB will work too.

CI-V (CAT) on the ID-5100 does not support PTT. Why would you want to anyway? The sound card interface provides PTT, and Vara FM can directly control this for most interface cards. Assuming you will be running Winlink Express, this application (and no others I can think of) will set the frequency for you. It must be done manually. So, forget about CI-V (CAT), it does not apply in this configuration. FM rigs typically do not support CAT, so this has support has not be added to any of the software applications.

Keep in mind that you will be using mic/speaker connections. This is NOT an ideal radio for this operation. You will be limited to Vara FM Narrow mode, half the maximum speed of Vara FM Wide mode. Also, since you are using speaker audio, the volume control will affect your settings. Bump that by accident and your performance will drop or not work at all. 

-Scott, NS7C


Graham
 

Thanks Andy 

That means , it needed  a  sound card  based  interface to  handle the  tx/rx audio , via mic socket  - ok

PTT ... is there  VOX  ..or  has to  be hard wired ?

Some confusion round the  cat options , CAT is only for  housekeeping  and not , operational as  in frequency/mode/ptt  etc ?

CAT -  PTT is  NOT ? supported via the  cat  function  ?

Ideal  interface  is then  , one with  sound-card  audio in/out
and  ptt that  can be  activated  from vara directly ?

Tnx-Graham


Andrew OBrien
 

Everything goes in and out VIA the mic jack on the 5100 

Andy


On Dec 6, 2020, at 9:37 AM, Graham <g0nbd@...> wrote:

Is there a  definitive answer to  the  data  [audio based] interface  for the  ID-5100  ?

CAT  PTT is supported via the  CV-I link ?    Yes / No ?

Low level  audio  in/out  is  available  via accessory socket   Yes/No ?

PTT  available  via  accessory socket   yes/no ? 

Data  interface  requires  sound  card  tx/rx audio 

PTT via  ...  CAT-PTT  or  VOX ? 

Tnx -Graham
g0nbd


Graham
 

Is there a  definitive answer to  the  data  [audio based] interface  for the  ID-5100  ?

CAT  PTT is supported via the  CV-I link ?    Yes / No ?

Low level  audio  in/out  is  available  via accessory socket   Yes/No ?

PTT  available  via  accessory socket   yes/no ? 

Data  interface  requires  sound  card  tx/rx audio 

PTT via  ...  CAT-PTT  or  VOX ? 

Tnx -Graham
g0nbd


Graham
 
Edited

Pre VARA , the average  data  interface , used transformer  coupling and served to  limit the  bandwidth and  introduce 
various  oddities , fine for psk rtty etc, but conveying a complex signal, probably  was not to  common place , yes the modem can work around the  problem, but it  consumes resources ,  often, deployments, unwittingly,   had narrow b/w selected  , and it still  functioned , during  testing  50% b/w reduction , served only to  reduce the  rate . 

So if  usb  direct  link is available , then , that's  optimum, if the  mode  wider , then its  obviously not ,  the  ic7100 has a  12 KHz b/w  option, described as IF-out  to  enable  DRM signals to  be  monitored , never  used it , assume it  uses the  cal-usb link , there is  also a data  tx bandwidth  setting, that is  not  documented , that  allows to  3.5 Khz b/w  but  for  some  reason, the  filter is centered on 1.5 KHz ..

video  showing  use of the  ic7100  IF feed ,  but ,  may be time  lag issue ..have to  check 
 https://www.youtube.com/watch?v=sgs5XkW--t8

also  >> You don't have to go to this complex level to use DSD with a IC-7100, you can decode direct from the IC-7100 either via USB AF out or the DATA 2 port using the 9600 pin to the Line in or Mic port on a PC. Just remember to select 9600 in the Connectors menu and FM-D as the mode and away you go. Mike G1ZRN.

Two  ways then ... 

Its not  immediately  clear as to the  5100  facilities , the  manual indicates  a  data  in/out  for  accessing the  DV mode, two models , one with and one without ?  and the  cv-i  address is listed , as is the  com port settings , rig control is not too  well  detailed

73-Graham


 

. On the IC-7100 for example, the internal sound card is limited to about 3kHz B/W, not near good enough for Vara FM Wide. I have tested this and it fails miserably,
A month ago, a user was claiming to have good luck receiving 9600 with
the internal interface of the IC-7100. While skeptical, I'm
encouraged to hear that report and look forward to testing it myself
RSN.

Perhaps VARA_FM could have a split mode functionality where it
received at 9600+/high-bandwidth but transmitted at a lower and
narrower speed.

however, using an external device like a DRA, and setting the external rate to "9600", it then performs fine on Vara FM Wide.
For HF digital, the internal card is fine, and it also works OK for Vara FM Narrow mode.
73
Bill


Scott Currie
 

The ID-5100 is a V/UHF dual band FM/D-Star transceiver. It does not have an internal sound card. I'm not even convinced it has much, if any, CAT support. So really not sure why you would need this support from Vara FM.

Also, as to your comment about the internal sound card for other wide B/W modes, this is also not true. On the IC-7100 for example, the internal sound card is limited to about 3kHz B/W, not near good enough for Vara FM Wide. I have tested this and it fails miserably, however, using an external device like a DRA, and setting the external rate to "9600", it then performs fine on Vara FM Wide.

For HF digital, the internal card is fine, and it also works OK for Vara FM Narrow mode.

-Scott, NS7C


Graham
 

I assume  its the  same as the  IC7100  with  CAT 
if so , the  tx/rx audio is  also via the  USB cat port ?

The usb audio  is preferable to  external  sound card 
in any  case , especially  in the  wide  b/w modes 

73-G


Scott Currie
 

What sound card interface are you using that you need CAT PTT for the 5100? Just curious...

-Scott, NS7C


Graham
 

33 mins  later  -)

Will be added  to the next  version  of  VARA-4  FM, to  be  released in  7  days  


Work  around  , using the  existing CAT  listing   

Select IC-7100, for example, and enter  8C in the Icom  CV-I  Address



73-Graham
g0nbd


Graham
 

Just in the  process of  adding the  ID-5100   to vara list 
BRB as they say 

G, 


Andrew OBrien
 

I had the same issue , did not find a solution.
Andy 


Tammy Waggoner
 

I am having trouble setting up VARA FM with my Icom Id-5100. The 5100 is not listed in the radio drop down box. Is there another option?