NMT-450 real time clock #3

Closed
opened 2022-06-19 05:32:09 +00:00 by shadowcaster3 · 17 comments
Collaborator

NMT phones, like Nokia 550 (THF-10) rely on network to set and show time, as they have no RTC build-in. This functionality is covered by http://download.eversberg.eu/mobilfunk/NMT-Dokus/NMT%20DOC%20450-1%20System%20Description%201997-08-08.pdf section 4.3.3.12.5 Additional information [OPTIONAL]. I'm not quite sure what frame it belongs to, but it doesn't seems to be implemented.

NMT phones, like Nokia 550 (THF-10) rely on network to set and show time, as they have no RTC build-in. This functionality is covered by http://download.eversberg.eu/mobilfunk/NMT-Dokus/NMT%20DOC%20450-1%20System%20Description%201997-08-08.pdf section 4.3.3.12.5 Additional information [OPTIONAL]. I'm not quite sure what frame it belongs to, but it doesn't seems to be implemented.
jolly was assigned by laforge 2022-06-27 06:23:19 +00:00
Collaborator

Yes, it is just not implemented. One would need to implement battery saving information and clock. (At least some dummy information that says that there are no phones or no frames for battery saving.) I have not tried it yet, because I don't have a phone that I know of that supports clock. In line 644 of nmt.c (frame->additional_info) must be set some valid clock frame as described on page 54.

Yes, it is just not implemented. One would need to implement battery saving information and clock. (At least some dummy information that says that there are no phones or no frames for battery saving.) I have not tried it yet, because I don't have a phone that I know of that supports clock. In line 644 of nmt.c (frame->additional_info) must be set some valid clock frame as described on page 54.
Collaborator

frame->additional_info = 0xeb00000c40;

This sould give you 5 o'clock PM. It will not work with combinded TC+CC, so try CC only.

frame->additional_info = 0xeb00000c40; This sould give you 5 o'clock PM. It will not work with combinded TC+CC, so try CC only.
Author
Collaborator

Understood, will do. My limesdr is still being delivered, so for next 2 weeks I'm out of luck testing that. On the other hand, I have quite a lot of NMT phones around, and can send you one that supports clock function. Just send me email with address where to (my email should be visible now) and I will send it to you, considering that you will be able to find 10-12V 3mm nokia charger or equivalent barrel plug and dc power supply.

Understood, will do. My limesdr is still being delivered, so for next 2 weeks I'm out of luck testing that. On the other hand, I have quite a lot of NMT phones around, and can send you one that supports clock function. Just send me email with address where to (my email should be visible now) and I will send it to you, considering that you will be able to find 10-12V 3mm nokia charger or equivalent barrel plug and dc power supply.
Collaborator

Is the phone, that provides clock, NMT 900 or 450? The specs only give hints abount NMT 450 with clock. I guess that also NMT 900 supports that. (Note that many other codings are different between NMT 900 and NMT 450, not just the band.)

Is the phone, that provides clock, NMT 900 or 450? The specs only give hints abount NMT 450 with clock. I guess that also NMT 900 supports that. (Note that many other codings are different between NMT 900 and NMT 450, not just the band.)
Author
Collaborator

Sorry, delivery took longer than expected.
It's NMT-450. Tested with Nokia THF-10 and THF-11, and indeed phone shows "17:00" with the code change you suggested.
image
image

Sorry, delivery took longer than expected. It's NMT-450. Tested with Nokia THF-10 and THF-11, and indeed phone shows "17:00" with the code change you suggested. ![image](/attachments/0d85955c-67b4-464e-adcc-beb20158c567) ![image](/attachments/f975e411-901f-4f0a-8294-08213a7d5276)
2.6 MiB
2.4 MiB
Author
Collaborator

I have spare THF-11, and if your address on your home page is up-to-date I can send it (and some AMPS motorolas) to you.

I have spare THF-11, and if your address on your home page is up-to-date I can send it (and some AMPS motorolas) to you.
Owner

@shadowcaster3 please be careful which website you're getting the contact details from. All the osmocom.org stuff lists me as contact (legal requirement in Germany).

Contact details fo @jolly are at http://eversberg.eu/contact/

@shadowcaster3 please be careful which website you're getting the contact details from. All the osmocom.org stuff lists me as contact (legal requirement in Germany). Contact details fo @jolly are at http://eversberg.eu/contact/
Author
Collaborator

Sure thing, it's strictly osmocom-analog and @jolly I was refering to.

Sure thing, it's strictly osmocom-analog and @jolly I was refering to.
Collaborator

Yes, the address on my homepage is valid.

Yes, the address on my homepage is valid.
Collaborator

Recently I pushd a patch that supports sending clock from machine's local time. You need to add "--clock 1" to your command line to enable it. Check if it works. Still it does not work with combined channel, as the specs say.

Recently I pushd a patch that supports sending clock from machine's local time. You need to add "--clock 1" to your command line to enable it. Check if it works. Still it does not work with combined channel, as the specs say.
Author
Collaborator

Works wonderfully. Thank you.

Works wonderfully. Thank you.
Collaborator

Can you try to change line 663 in nmt.c?

Change
if (nmt->send_clock && frame->mt != NMT_MESSAGE_1b) {
into
if (nmt->send_clock) {
.

It is out of spec, but I just want to know if it works with a combined TC-CC.

Can you try to change line 663 in nmt.c? Change if (nmt->send_clock && frame->mt != NMT_MESSAGE_1b) { into if (nmt->send_clock) { . It is out of spec, but I just want to know if it works with a combined TC-CC.
Author
Collaborator

Phone signal level jumps erraticaly, can't seem to get proper scan of the network. Phone locks up when I try to place a call. No messages from osmocom-analog nmt console.

Phone signal level jumps erraticaly, can't seem to get proper scan of the network. Phone locks up when I try to place a call. No messages from osmocom-analog nmt console.
Collaborator

So you applied the patch, slected "--clock 1" and used CC+TC channel? What if you do not enable clock? Does your phone work then?

So you applied the patch, slected "--clock 1" and used CC+TC channel? What if you do not enable clock? Does your phone work then?
Author
Collaborator

With the patch applied, this one prevents phone from registering:

nmt -k 1 -Y SE,1 --limesdr --sdr-rx-antenna LNAL --sdr-tx-antenna BAND1  --cc "rtp-peer 192.168.168.107" --cc "rtp-ports 5060 5070" --osmocc-sock -I 1 -U 1 -S "+38050000501"

This one works with the patch:

nmt -k 1 -Y SE,1 --limesdr --sdr-rx-antenna LNAL --sdr-tx-antenna BAND1  --cc "rtp-peer 192.168.168.107" --cc "rtp-ports 5060 5070" --osmocc-sock -I 1 -S "+38050000501"
With the patch applied, this one prevents phone from registering: ``` nmt -k 1 -Y SE,1 --limesdr --sdr-rx-antenna LNAL --sdr-tx-antenna BAND1 --cc "rtp-peer 192.168.168.107" --cc "rtp-ports 5060 5070" --osmocc-sock -I 1 -U 1 -S "+38050000501" ``` This one works with the patch: ``` nmt -k 1 -Y SE,1 --limesdr --sdr-rx-antenna LNAL --sdr-tx-antenna BAND1 --cc "rtp-peer 192.168.168.107" --cc "rtp-ports 5060 5070" --osmocc-sock -I 1 -S "+38050000501" ```
Author
Collaborator

So effectively yes, if I use single channel, apply patch and enable clock it prevents phone from registering. Disabling clock fixes the problem.

So effectively yes, if I use single channel, apply patch and enable clock it prevents phone from registering. Disabling clock fixes the problem.
Collaborator

On a combined channel the last three digits are used for area information and not for clock. This is why clock cannot be sent there. The phone rejects it, because it expects a valid area information. So it continues to search for a valid channel.

On a combined channel the last three digits are used for area information and not for clock. This is why clock cannot be sent there. The phone rejects it, because it expects a valid area information. So it continues to search for a valid channel.
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cellular-infrastructure/osmocom-analog#3
No description provided.