On my Edge 830, I am trying to connect to the Shimano Di2 groupset. Since the complete interface hasn't been officially published, I am using the channel configuration found here and the code I am using to connect to the ANT device is the following:
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)
While I am able to open the channel and establish a connection when using the Connect IQ simulator, running the same code on the device results in an error about the ANT private network key.
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: ...
Does anyone have any experience with establishing a connection with the Shimano Di2 groupset and possibly suggestions for how to resolve the issue with the private network key?