The instructions work . My ISP only needs the HWTC4102ef51 serial number to connect.
ONTUSER@SFP:~# ritool set MfrID HWTC
ONTUSER@SFP:~# ritool set G984Serial 4102ef51
If someone was wondering, this data is stored on an mtd8 "ri" partition, obviously.
It is good that many commands are shared by the Lantiq family. I could easily verify the connection: desired O5 state.
ONTUSER@SFP:~# onu ploamsg
errorcode=0 curr_state=5 previous_state=4 elapsed_msec=4294857976
What about the serial number? onu gtc_serial_number_get
ONTUSER@SFP:~# onu gtcsng
errorcode=0 serial_number="72 87 84 67 65 2 239 81"
Converting from decimal to hex 0x48 0x57 0x54 0x43 0x41 0x02 0xEF 0x51
So far so good. So that you don't think that everything went so smoothly, my Mikrotik router's SFP status page still displays the original serial number. Soft EEPROM's A0 is stored on the mtd9 partition. I will deal with it later.
[admin@MikroTik] > interface ethernet monitor sfp1
name: sfp1
status: link-ok
auto-negotiation: done
rate: 1Gbps
full-duplex: yes
tx-flow-control: no
rx-flow-control: no
advertising:
link-partner-advertising:
sfp-module-present: yes
sfp-rx-loss: no
sfp-type: SFP-or-SFP+
sfp-connector-type: SC
sfp-link-length-9um: 40000m
sfp-vendor-name: ALCATELLUCENT
sfp-vendor-part-number: 3FE46541AA
sfp-vendor-revision: 0001
sfp-vendor-serial: ALCLF85xxxD8pro
sfp-wavelength: 1312.55nm
sfp-dwdm-channel-spacing: 32Ghz
sfp-temperature: 39C
sfp-supply-voltage: 3.299V
sfp-tx-bias-current: 9mA
sfp-tx-power: 1.315dBm
sfp-rx-power: -17.915dBm
eeprom-checksum: good
The main reason for my interest in this module is the ability to switch LAN port from 1Gbps used by Ethernet to HSGMII 2.5Gbps. An increasing number of ISPs offer speeds above 1Gb using conventional GPON technology. If someone has any advice on how to achieve this, I am eager to hear it.
If I do on the SFP stick LAN_port_status_get
ONTUSER@SFP:~# onu lanpsg 0
errorcode=0 pport=0 mode=15 enable=1 link_status=4 phy_duplex=1
it confirms that my LAN port is 1000Mb mode
Long Form: lan_port_status_get
Short Form: lanpsg
Input Parameter
- uint32_t pport
Output Parameter
- enum onu_errorcode errorcode
- uint32_t pport
- enum lan_mode_interface mode
LAN_MODE_OFF = 0
LAN_MODE_GPHY = 1
LAN_MODE_EPHY = 2
LAN_MODE_SGMII = 3
LAN_MODE_SGMII_FAST = 4
LAN_MODE_RGMII_MAC = 5
LAN_MODE_RMII_MAC = 6
LAN_MODE_RMII_PHY = 7
LAN_MODE_GMII_MAC = 8
LAN_MODE_GMII_PHY = 9
LAN_MODE_MII_MAC = 10
LAN_MODE_MII_PHY = 11
LAN_MODE_TMII_MAC = 12
LAN_MODE_TMII_PHY = 13
LAN_MODE_TBI_SERDES = 14
LAN_MODE_TBI_AUTODETECT = 15
- uint32_t enable
- enum lan_phy_status link_status
LAN_PHY_STATUS_OFF = 0
LAN_PHY_STATUS_DOWN = 1
LAN_PHY_STATUS_10_UP = 2
LAN_PHY_STATUS_100_UP = 3
LAN_PHY_STATUS_1000_UP = 4
LAN_PHY_STATUS_2500_UP = 5
LAN_PHY_STATUS_NONE = 6
LAN_PHY_STATUS_UNKNOWN = 255
- enum lan_mode_duplex phy_duplex
LAN_PHY_MODE_DUPLEX_AUTO = 0
LAN_PHY_MODE_DUPLEX_FULL = 1
LAN_PHY_MODE_DUPLEX_HALF = 2
LAN_PHY_MODE_DUPLEX_UNKNOWN = 3