nokia 8210

Hi,

I have old nokia 8210. Serail datacables (com port, not usb) for my nokia are available. I can make audio cable using the schema from http://www.celliax.org/howtobuildcelliaxadapter

Have someone any experience with this model? Will it work with celliax?

Thanks

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

I think it will probably

I think it will probably work, but not sure. Test it first without audiocable, just to see if it works "serial control" wise.

If it works, build the audiocable.

Please pay attention to build the "nokia" audiocable

Please, let us know how your experiments goes

Giovanni

Just found that com-port of

Just found that com-port of my nokia is under the battery. A bit strange location. Looks like "for engineering purposes only". Now I have some doubts... Anyway - serial datacable is ordered, I am going to give it a try.

There is also an IR port. Long time ago I connected my laptop to Internet with help of this IR. But I do not have IR port attached to my PC anymore. Will it work with celliax? To try it myself I need to buy IR adapter for my PC.

Ciao Kazakh, the FBUS2 port

Ciao Kazakh,

the FBUS2 port in most part of old Nokia models is "for engineering purposes only", and often is under the battery. But it works! ;-)

Let's hope that your model (8210) has commands compatible with celliax.

I don't know about the IR interfacing, but do not bother with it. If it do not works with serial, will not work for sure with IR (they have the same command set).

Let us know!

Giovanni

Dead cable?

Hi,

got my cable today. I removed battary, connected cable and ac adapter. no reaction. pushed power button on my nokai. no reaction at all. should it be like this?

just to be shure I also started hyperterminat and tryed at command. no reaction again.

is it dead cable?


old Nokias no AT

If you mean for "no reaction" that the phone do not come up, do not "light on", there is something wrong in the way you re-assempled the phone-cable-battery.

Other than this, if you mean "the phone do not signal that there is a cable attached to it and do not react to AT commands":

Old Nokias do not have AT commands. They use a proprietary binary protocol called FBUS.

So, basically you can do nothing with a terminal program.

The old Nokia models that I knows do not show anything when connected to the FBUS cable.

Your better bet to verify that it is working is to use the celliax livecd (you can have it from the "download" section) editing the celliax.conf file to use FBUS2 instead of AT or NO_SERIAL.

Other programs useful to check it out are gammu or gnokii.

Ciao Kazakh


thanx for reply,

thanx for reply, Gmaruzz

problem with datacable solved, I hope. Gmaruzz is right - my way to assemble the phone-cable-battery was wrong.

So now everything connected together, livecd started, celliax.conf file changed to use FBUS2 and ttyS0 / ttyS1.

After I start celliax I have error messages like "error 3965 chan_celliax.c:3871seral_init:[b7c656c0] [ERROR 3871] [nicephone ] [-1,0,0,0] serial error: no such file or directory"

What is wrong?

BTW how can I copy text from celliax window to paste it here?


serial port not found

It means that celliax do not find the serial port you put in config.

This has nothing to do with celliax, or with the cable of the phone. It is the serial port itself that is not found by the operating system.

Do you have serial ports activated in BIOS? (probably yes)
Do you wrote /dev/ttyS0 or /dev/ttyS1 in celliax.conf (I mean, with the "/dev" prefix)?

You can copy from celliax windows simply highlighting with the mouse, then go in the window you want to paste and click the middle button of the mouse (if you do not have middle button, press the right and left buttons at the same time)

by the way, type "dmesg|grep tty" in a terminal, maybe you can get some clue about your serial ports


another error message

Thanks for your fast and detailed replays.

> Do you have serial ports activated in BIOS? (probably yes)

yes

> Do you wrote /dev/ttyS0 or /dev/ttyS1 in celliax.conf (I mean, with the "/dev" prefix)?

yes

So it looks like the serial port is not recognized by OS

I tried it on my another PC. com ports are OK there:

vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
knoppix@3[knoppix]$ dmesg|grep tty
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a NS16550A
00:08: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:09: ttyS1 at I/O 0x2f8 (irq = 3) is a NS16550A
^^^^^^^^^^^^^^^^^^^^^^

Again celliax.conf file changed to use FBUS2 and ttyS0. After starting celliax I have a bit another error message:

vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv

Asterisk SVN-branch-test1-r408, Copyright (C) 1999 - 2006 Digium, Inc. and others.
Created by Mark Spencer
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'show license' for details.
=========================================================================
[ Booting...Aug 24 17:29:19 NOTICE[3625]: cdr.c:1193 do_reload: CDR simple logging enabled.
...............Aug 24 17:29:20 NOTICE[3625]: chan_celliax.c:2052 mkif: [b7c506c0][NOTICE 2052 ][nicephone ][-1, 0, 0, 0] at_dial_post_number=|S"|
Aug 24 17:29:21 ERROR[3625]: chan_celliax.c:5201 serial_config_FBUS2: [b7c506c0][ERROR 5201 ][nicephone ][-1, 0, 0, 0] no expected results in 11 serial_read_FBUS2
Aug 24 17:29:21 ERROR[3625]: chan_celliax.c:2263 mkif: [b7c506c0][ERROR 2263 ][nicephone ][-1, 0, 0, 0] serial_config failed
Aug 24 17:29:21 ERROR[3625]: chan_celliax.c:1712 load_module: [b7c506c0][ERROR 1712 ][none ][-1,-1,-1,-1] Unable to create channel Celliax from celliax.conf category '[nicephone]'
Aug 24 17:29:21 WARNING[3625]: loader.c:414 __load_resource: chan_celliax.so: load_module failed, returning -1
Aug 24 17:29:21 NOTICE[3625]: chan_celliax.c:1847 unload_module: [b7c506c0][NOTICE 1847 ][none ][-1,-1,-1,-1] Unloaded Celliax Module
Aug 24 17:29:21 WARNING[3625]: loader.c:554 load_modules: Loading module chan_celliax.so failed!

press q to quit

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

What is wrong now? Should I play with speed of serial port?


enable debug_fbus2

Ciao Kazakh,

please enable the debugging in this way:

1) edit logger.conf to have debug into console. To do this you have to modify toward the end of file to have:

;console => notice,warning,error
console => notice,warning,error,debug

2) edit celliax.conf toward the beginning to have (note that debug_fbus2 and debug_serial are the only lines that do not begin with a semicolon):
;debug_all=yes
;debug_at=yes
debug_fbus2=yes
debug_serial=yes
;debug_pbx=yes
;debug_sound=yes
;debug_locks=yes
;debug_skype=yes
;debug_call=yes

3) edit modules.conf toward the end in a way to have:

noload => chan_celliax.so

4) then start a terminal and type into it:

/usr/local/asterisk/usr/sbin/asterisk -c

5) then, from the CLI prompt of asterisk type:

set debug 100

6) then, from the same CLI prompt type:

load chan_celliax.so

7) paste the results here ;-)

Please remember that using the livecd each time you reboot you will have to start again from point 1. No changes are permanently saved on your hard disk.


try also the other serial port

Maybe you have not connected the datacable to the right physical port. Or maybe one of the port is not fast enough.

Try both:

with /dev/ttyS0 in config, try attaching the datacable first to one port, start asterisk. If it do not works, attach the datacable to the other port

with /dev/ttyS1 in config, try attaching the datacable first to one port, start asterisk. If it do not works, attach the datacable to the other port


fbus2 needs 115200

Oh, please remember to set celliax.conf to have a speed of 115200 for FBUS2:

control_device_speed=115200


I can see some progress %)

Hi Giovanni,

I just played with all the stuff you recommended. The following changes are done:

- datacable connected to com port 2.
- celliax.conf file - ttys0 changed to ttys1, control_device_speed=115200, control_device_protocol= FBUS2,
- datacable-phone-battery disassembled and assembled again to be sure all the contacts are in order.

After that I start celliax and see the following messages:

vvvvvvvvvvvvvvvvvvvvvvvvvv
[ Booting...Aug 24 23:15:59 NOTICE[3779]: cdr.c:1193 do_reload: CDR simple loggi
ng enabled.
...............Aug 24 23:15:59 NOTICE[3779]: chan_celliax.c:2052 mkif: [b7bb06c0
][NOTICE 2052 ][nicephone ][-1, 0, 0, 0] at_dial_post_number=|S"|
Aug 24 23:15:59 ERROR[3779]: chan_celliax.c:2082 mkif: [b7bb06c0][ERROR 2
082 ][nicephone ][-1, 0, 0, 0] DEBUG_FBUS2 activated, but option_debug is 0. You
have to set debug level higher than zero to see some debugging output. Please u
se the command "set debug 10" or start Asterisk with "-dddddddddd" option for fu
ll DEBUG_FBUS2 debugging output.
Aug 24 23:15:59 ERROR[3779]: chan_celliax.c:2093 mkif: [b7bb06c0][ERROR 2
093 ][nicephone ][-1, 0, 0, 0] DEBUG_SERIAL activated, but option_debug is 0. Yo
u have to set debug level higher than zero to see some debugging output. Please
use the command "set debug 10" or start Asterisk with "-dddddddddd" option for f
ull DEBUG_SERIAL debugging output.
Aug 24 23:16:00 NOTICE[3779]: chan_celliax.c:1701 load_module: [b7bb06c0][NOTICE
1701 ][none ][-1,-1,-1,-1] Created channel Celliax: celliax.conf cate
gory '[nicephone]', channel name 'nicephone' control_device_name '/dev/ttyS1'
................................................................................
........................ ]
Asterisk Ready.
*CLI>
^^^^^^^^^^^^^^^^^^^^^^^

Looks much better! :)

I tried to call to my phone connected to celliax. Celliax answers the call. Connection stays 12 seconds, than celliax hangs up the connection. Is it normal?

During that call I can see the following messages in the asterisk window:

vvvvvvvvvvvvvvvvvvvvvvvvv
*CLI> Aug 24 23:18:37 NOTICE[3787]: chan_celliax.c:2470 do_monitor: [b77a4bb0][NOTICE 2470 ][nicephone ][-1, 4, 4, 0] INCOMING RING
Aug 24 23:18:38 NOTICE[3797]: chan_celliax.c:1379 celliax_answer: [b722abb0][NOTICE 1379 ][nicephone ][ 6, 6, 6, 0] call answered
Aug 24 23:18:39 WARNING[3798]: chan_celliax.c:6036 serial_read_FBUS2: [b71eabb0][WARNING 6036 ][nicephone ][ 6, 6, 6, 0] FBUS2 MSG UNKNOWN, inseqnum 44
Aug 24 23:18:50 WARNING[3797]: chan_celliax.c:3190 alsa_write: [b722abb0][WARNING 3190 ][nicephone ][ 6, 6, 6, 0] You've got an ALSA write XRUN (celliax can't fill the soundcard buffer fast enough). If this happens often, consider to increase the alsa_periods_in_buffer (now is set to 4) for this interface in the config file.
Aug 24 23:18:50 ERROR[3797]: chan_celliax.c:3194 alsa_write: [b722abb0][ERROR 3194 ][nicephone ][ 6, 6, 6, 0] Write error: Unknown error 128
Aug 24 23:18:50 WARNING[3797]: file.c:587 ast_readaudio_callback: Failed to write frame
Aug 24 23:18:52 NOTICE[3797]: chan_celliax.c:1332 celliax_hangup: [b722abb0][NOTICE 1332 ][nicephone ][-1, 0, 0, 0] Hanged Up
Aug 24 23:18:52 WARNING[3787]: chan_celliax.c:6036 serial_read_FBUS2: [b77a4bb0][WARNING 6036 ][nicephone ][-1, 0, 0, 0] FBUS2 MSG UNKNOWN, inseqnum 40
Aug 24 23:18:52 WARNING[3787]: chan_celliax.c:6036 serial_read_FBUS2: [b77a4bb0][WARNING 6036 ][nicephone ][-1, 0, 0, 0] FBUS2 MSG UNKNOWN, inseqnum 41
^^^^^^^^^^^^^^^^^^^^^^
Do all these messages mean that my nokia 8210 supported by celliax? I can see some "MSG UNKNOWN" lines... Does not look good.


SUCCESS!

Yo Kazakh,

your celliax installation is working!!!!

No problem with those messages, are OK.

I think that the phone call simply goes in timeout because it has not received keypress (because you have not connected the audio from the cell to the soundcard). That is the way it is supposed to work.

It works, man!


Thanks for your help! I am

Thanks for your help!

I am glad that it works! My next task is audio cable - I still have to find headset to make it.

And my final goal is to make a small 4 lines system to terminate GSM calls. Can someone recommend a good manual for such a task?

Thanks again!


multiply by 4

You will need:
4 soundcards
4 serial cables
4 audiocables
4 cellphones
neither of them need to be the same model
then you repeat 4 times the channel definition in celliax.com

you can also have them in more than a computer, all of them connecting to the "main" asterisk box


What kind of PC do I need

What kind of PC do I need for 4 lines? Is pentium-500 enough for Linux (cli, no X)?
And is pentum 2000 enough for WinXP? How much RAM?
Is there minimum sytem requirments and recommended?


best is test

test with one call on the 500 pc.
Use top or w command to see the load.
Maybe a 500 pentium is enough for 4 lines.
Please tell us of your results.
As for RAM, I think 256MB will be more than enough. Actually I'm sure 128MB would be enough. (on Linux)

XP in itself require much much more RAM just to start. Memory requirement for celliax-asterisk are more or less the same in Linux and XP.


astlinux is very light

Soon will be available here a version of astlinux (www.astlinux.org) with celliax support.
That will probably be what you would prefere to install for a production server.


Audio adapter for Nokia 3310 and compatibles

Hi,

I showed the schema for Nokia from this site to our pcb designers. They teld me:"No way! This will newer work!" :)

I followed the schema anyway - I do not have another one to follow. :) The only change - 6K5 resistors replaced by 6K8.

So now I can tell you that cable works for my nokia 8210. Tested by connecting to a PC and making a call. When I play sound on PC remote phone plays it also. And I can record voice from remote phone with soundrecorder on my PC. So both ways (mic and spk) are fine. Sorry, still not tested with celliax.

this may be mentioned in the future celliax HCL (hardware compatibility list) :)


;-)!

;-)!


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.