hwti / G-010S-A

All about Nokia G-010S-A GPON SFP
186 stars 34 forks source link

Clarification on entering serial number #37

Open damienbutt opened 1 year ago

damienbutt commented 1 year ago

Hi all,

I am trying to get one of these modules working with my router. I haven't had any luck thus far and just wanted to ask for a little clarification if possible.

Setup

The ONT details above are what is written on the bottom of the device.

The UDM-Pro recognises the G-010S and I have got SSH access to it. Using SCP I have flashed firmware 3FE46398BGCB22 to the device.

ONTUSER@SFP:~# upgradestatus
***** get current running image *****
current running image is  image0 !
***** get upgrade status ***********
image0_is_valid=1
image1_is_valid=1
next_active=0
commit=0
boot_fail=0
image0_version=3FE46398BGCB22
image1_version=3FE46398BFIB36

ONTUSER@SFP:~# cat /usr/etc/buildinfo
ONT_TYPE=g010sa
PON_MODE=GPON
SOFTWAREVERSION=BGC.B22
PRODUCTCLASS=g010sa
RELEASE=0.0.0
BUILDSTAMP=
BUILDDATE=20210125_1451
COPYRIGHT=ASB
WHOBUILD=buildmgr
IMAGEVERSION=3FE46398BGCB22
NODE=c3c64830aebf583aafe21b23718fb3509bd1c3b4
REPO=HD_R6201
SIGN=n
VOIP=
CONFIG_VOIP_SW=

Following the docs I have input the MfrID and SerialNum using:

ONTUSER@SFP:~# ritool set MfrID 3720
ONTUSER@SFP:~# ritool set G984Serial 10010470
ONTUSER@SFP:~# ritool set YPSerialNum 10010470

Running ritool dump shows the correct details:

ONTUSER@SFP:~# ritool dump
the Format:01
the MfrID:3720
the Factorycode:08
the HardwareVersion:3FE46541AADA
the ICS:01
the YPSerialNum:        10010470
the CleiCode:BVL3A8JNAA
the Mnemonic:G-010S-A
the ProgDate:200805
the MACAddress:34:b5:a3:7d:9a:26
the DeviceIDPref:0000
the SWImage:3030
the OnuMode:0001
the Mnemonic2:
the Password:00000000000123456789
the G984Serial:10010470
the HWConfiguration:0000000000000000
the PartNumber:3FE46542AADA
the Variant:DA
the Spare4:303030303030303030303030
the Checksum:83e8
the InserviceReg:3030
the UserName:        usradmin
the UserPassword:   12345
the MgntUserName:      adminadmin
the MgntUserPassword: ALC#FGU
the SSID-1Name:0000000000000000
the SSID-1Password:00000000
the SSID-2Name:0000000000000000
the SSID-2Password:00000000
the OperatorID:0000
the SLID:30303030303030303030303030303030
the CountryID:01
the GroupID:30303030
the Checksum1:36e5
the Spare6:3030
the RollbackFlag:0000
ONTUSER@SFP:~# onu gtcsng
errorcode=0 serial_number="51 55 50 48 16 1 4 112"

I understand these are decimal values. So this does seem correct for the serial number 372010010470 in a sense. Little confusing that it seems to be reading the last 8 digits as 4 hex bytes while treating the first 4 digits as 4 ASCII bytes.

Is this correct? Should I have entered the serial exactly as shown on the device or enter each number as a 2-byte hex value?

If I tail -f /tmp/omci.log when I plug in the fiber connection I see this:

[01-01 00:14:18]==================Load:pidstat -r:==============
[01-01 00:14:18]==================Load:bs /b/e gem/index=0==============
[01-01 00:14:18]==================Load:OMCI packets tx/rx stat==============
[01-01 00:14:18][E]OMCI pkt stat**********
[01-01 00:14:18][E]OMCI rx pkt:0.
[01-01 00:14:18][E]OMCI tx pkt:0.
[01-01 00:14:18][E]OMCI alarm pkt:0.
[01-01 00:14:18][E]Do re-ranging!
[01-01 00:14:18][C]read_sn_from_RI sn is: 3720101470
[01-01 00:14:18]SendMsgToSlid msgsnd ok. slidMsg.onuState=1
[01-01 00:14:18]Enter notify_sipw_pon_status, onustate=1
[01-01 00:14:18]notify_sipw_pon_status: get SIPW queue failed, err = 2, No such file or directory
[01-01 00:14:18]>>>>configLptPort: onu state is ONU_LOS_LOF
[01-01 00:14:18]actionProcess: process actionType=116,messageInQueue=-1,totalMsgCounter=14,time=14m:18s:980ms
[01-01 00:14:18]actionProcess: processAction: result is: SUCCESS, end @ 14m:18s 986ms
[01-01 00:14:18]actionProcess: sendMsgToActionProcess, actionType=116
[01-01 00:14:19][E]checkPonLEDStatus:Fiber disconnected
[01-01 00:14:20]SendMsgToSlid msgsnd ok. slidMsg.onuState=2
[01-01 00:14:20]Enter notify_sipw_pon_status, onustate=2

It seems to be reading the serial as 3720101470 which isn't correct.

I am also not sure what I must do with the SLID in the web interface, if anything. It is currently set to 0000000000.

Any help would be greatly appreciated.

Thanks, D

ToTheCLI commented 8 months ago
  • FSAN: CXNK0096EBFC

This is the SN

Should be: ONTUSER@SFP:~# ritool set MfrID CXNK ONTUSER@SFP:~# ritool set G984Serial 0096EBFC ONTUSER@SFP:~# ritool set YPSerialNum 0096EBFC