EDGE devices can't connect to private ANT channels, because they are not accepting ANT network key.
deviceConfig = new Ant.DeviceConfig({ :networkKey64Bit => [0xXX, 0xXX, 0xXX, 0xXX, 0xXX, 0xXX, 0xXX, 0xXX], :deviceNumber => 0, :deviceType => 1, :transmissionType => 5, :messagePeriod => 8198, :radioFrequency => 57, :searchTimeoutLowPriority => 10, :searchThreshold => 0 }); GenericChannel.initialize(method(:onMessage), new Ant.ChannelAssignment(Ant.CHANNEL_TYPE_RX_ONLY, Ant.NETWORK_PRIVATE)); GenericChannel.setDeviceConfig(deviceConfig)
I deleted private key on purpose from the code above and sent it via mail as I don't think it should be communicate publicly. This ANT deviceConfig (with the right key) run fine on Garmin watch devices or even on simulator of EDGE devices (win 10 +eclipse 2021-06 + CIQ SDK 4.0.3), but not on actual EDGE devices (tested 1000, 830), where it throws this error.
Error: System Error Details: 'No network key given, the ANT Private network requires a valid network key' Time: 2021-03-14T13:21:10Z Part-Number: 006-B3122-00 Firmware-Version: '7.10' Language-Code: deu ConnectIQ-Version: 3.2.5 Filename: Ant Appname: Generic ANT Stack: ...
Strangely on Edge 830 it force app to crash, while on Edge 1000, the app will remain to run, but do not open channel.
Original thread: https://forums.garmin.com/developer/connect-iq/f/discussion/257390/establishing-an-ant-connection-with-the-shimano-di2-groupset/1278137