Classic Rotary Phones Forum

Telephone Identification, Repair & Restoration => Telephone Tools, Workshops, Tool Identification and Other => Topic started by: Sigmaz on February 14, 2018, 09:51:25 PM

Title: BK 1045 DIY substitution
Post by: Sigmaz on February 14, 2018, 09:51:25 PM
The rarity and prices of these test devices have forced me to build my own.

It's still a work in progress but it's coming along.

Right now it'll do ring test, receiver test, Pulse and DTMF decode and will soon also handle TX level test and polarity reversal.

https://youtu.be/TETn2Nm0N3w
Title: Re: BK 1045 DIY substitution
Post by: AE_Collector on February 14, 2018, 10:20:22 PM
Good project!

I don't think the BK1045 analyzes Make/Break ratio or Dial Speed, it just counts pulses. Not certain about the BK1050. These seem like fairly basic things that should be included in a telephone tester for hobbyists and old phone refurbishers.

Terry
Title: Re: BK 1045 DIY substitution
Post by: Sigmaz on February 14, 2018, 10:32:14 PM
That is certainly something that can be analyzed.
The code watches the rise and fall of the switchhook to detect pulse events.
It can certainly report back the values of the timers quite easily
Title: Re: BK 1045 DIY substitution
Post by: Pourme on February 15, 2018, 05:39:22 AM
Nice...Fortunate for you, you can build that device. Enjoyed the video!

Benny
Title: Re: BK 1045 DIY substitution
Post by: twocvbloke on February 15, 2018, 07:05:26 AM
If you want to put it into something to make it look like a piece of test equipment, Banggood have these project boxes with carry handles on sale:

https://www.banggood.com/Electronic-Plastic-Shell-Cartridge-Handle-Project-Case-Desk-Instrument-200x175x70mm-p-1035473.html?cur_warehouse=CN

And with a little more fettling of your code, you could probably integrate a small LCD display in there (whether it's a video display or a basic 20x2 LCD) to display the functions... :)
Title: Re: BK 1045 DIY substitution
Post by: Sigmaz on February 15, 2018, 07:14:05 AM
Quote from: twocvbloke on February 15, 2018, 07:05:26 AM
If you want to put it into something to make it look like a piece of test equipment, Banggood have these project boxes with carry handles on sale:

https://www.banggood.com/Electronic-Plastic-Shell-Cartridge-Handle-Project-Case-Desk-Instrument-200x175x70mm-p-1035473.html?cur_warehouse=CN

And with a little more fettling of your code, you could probably integrate a small LCD display in there (whether it's a video display or a basic 20x2 LCD) to display the functions... :)

Thanks for the link! That's exactly what I was planning on locating for it.

Yeah, it's definetly getting a 4x20 LCD display for showing the data.
I have a graphical LCD and an OLED display too but I don't want to waste them on this project besides the available program space would run short with the size of the support libraries.
I will free a ton of space once I ditch the Dialtone PCM data and just generate a single tone simulation.
TMI, sorry I get all geeky sometimes.
Title: Re: BK 1045 DIY substitution
Post by: twocvbloke on February 15, 2018, 09:05:05 AM
No probs, that box is tempting for me to buy, no idea what I'd use it for, I'm just like a magpie for such things...  ;D
Title: Re: BK 1045 DIY substitution
Post by: dsk on February 15, 2018, 12:29:10 PM
Really nice!

Now you have the possibility to put out real dial data;
the pps rate,
The average, max and min break percentage.
How close the DTMF tones are to ideal. (I have no idea about whats OK or not for DTMF) Some dtmf pads may come out of tuning.
How high the REN load are?   (Impedance at 20, 25, and 50-60 HZ.)

dsk
Title: Re: BK 1045 DIY substitution
Post by: Sigmaz on February 16, 2018, 11:11:39 PM
Quote from: dsk on February 15, 2018, 12:29:10 PM
Really nice!

Now you have the possibility to put out real dial data;
the pps rate,
The average, max and min break percentage.
How close the DTMF tones are to ideal. (I have no idea about whats OK or not for DTMF) Some dtmf pads may come out of tuning.
How high the REN load are?   (Impedance at 20, 25, and 50-60 HZ.)

dsk

I can easily get the pulse rate and make/break ratio data pretty easily because of the way the pulse detect function watches the switchhook.

The DTMF tuning is a little harder.

The device isn't using any external hardware to decode the tones in fact it's sampling the audio stream via analog pin 0 and through the magic of a modified Goertzel algorithm implementation its able to pick out the 8 specific frequencies that make up 0-9,#,*,A-D.

To identify any shift from the expected would require a much more elaborate setup.




Title: Re: BK 1045 DIY substitution
Post by: compubit on February 16, 2018, 11:38:54 PM
Great project! When I started reading this thread (before I went to the video), I was thinking this would be a great RaspberryPi project, especially if you tied it with a touchscreen or LCD display.

Arduino makes perfect sense too - although I'm not as familiar with them (vs, Pi).

I also liked the Rotary to DTMF converted for your 1C1.

Jim
Title: Re: BK 1045 DIY substitution
Post by: Sigmaz on February 17, 2018, 12:05:18 AM
I appreciate the compliments.

Feel free to browse my Github. Perhaps I have done something else you can find useful.

Then again, it's a pretty messy place..
The code for this project is there too but of course it's a work in progress..

https://github.com/SigmazGFX (https://github.com/SigmazGFX)
Title: Re: BK 1045 DIY substitution
Post by: dsk on February 17, 2018, 02:04:48 AM
Great, I do the analyzing of my dials completely manual by studying the graphical presentation of the dial pulses, this may be much faster.  I guess I have to look if I could learn some C++ on my older days. (54)

Keep on the good work! and pleas continue with telling us.
For me the pulse dialing analyses is the most important part of this project. Making the pulse to tone converter is another nice thing to learn. Especially if it is possible to make it as tolerant as the XLink adapter who understands pretty un-tuned dials.
Thank you!
Title: Re: BK 1045 DIY substitution
Post by: Sigmaz on February 19, 2018, 01:32:16 PM
I'm working a little on it today.
Building in the pulse speed reporting now.

Testing with a crap "Curtis" 2 line desk phone and My Harris TS-44 "Butt Set"

Both come in at ~18 PPS. I was a little surprised to see this. I kept checking my code to see where I messed up assuming the max was ~10 PPS

I remembered that I knew that newer switching systems with digit registers accepted faster pulse rates. I wasn't aware that it was this much higher.
(of course I checked the intertubes and now I know... ) lol

Oh.. and yes, I have a new display for the finished project.
This one is a test display that gets kicked around from build to build.
Title: Re: BK 1045 DIY substitution
Post by: AE_Collector on February 19, 2018, 10:39:45 PM
Very scoop Good!! Keep up the good work.

Terry
Title: Re: BK 1045 DIY substitution
Post by: twocvbloke on February 20, 2018, 03:35:15 AM
Looks good, just need the project box to mount it all inside... :)
Title: Re: BK 1045 DIY substitution
Post by: Sigmaz on February 20, 2018, 09:26:37 AM
Quote from: twocvbloke on February 20, 2018, 03:35:15 AM
Looks good, just need the project box to mount it all inside... :)

;D I'm on the mailing list for when they get more in stock.
They are on flea-bay as well but for a bit more.. I may just get one there if I start to get impatient.

I keep having ideas on where to expand on and go with this.. if I change the MCU and the display to OLED I can increase the storage and complexity of the user interface.
I have also been playing with the idea of having it capable of coin relay testing and single slot coin totalizer tone detection as well as making it a handheld device... so many ideas that will definitely require some scratch paper...
The totalizer code is already done I would just need to add 1700/2200hz combo to the list of frequencies the Goertzel algorithm detects and then write some code to tally the instances for display.

Anyway, thanks for the motivation fellas.


Title: Re: BK 1045 DIY substitution
Post by: HarrySmith on February 20, 2018, 12:42:12 PM
Quote from: AE_Collector on February 19, 2018, 10:39:45 PM
Very scoop!

Terry

I am not sure, is that a Canadian thing?
Title: Re: BK 1045 DIY substitution
Post by: AE_Collector on February 20, 2018, 07:55:09 PM
Quote from: HarrySmith on February 20, 2018, 12:42:12 PM
I am not sure, is that a Canadian thing?

Yeah it is....I'd love to tell you more about it but am not permitted to. You will just have to use your imagination! Sorry we can't share. :(

Terry
Title: Re: BK 1045 DIY substitution
Post by: Sigmaz on April 15, 2018, 04:35:25 PM
This project didn't die.

I'm still waiting for my enclosure to arrive from Thailand.

"Next time I'll pay the fifty cents..."
Title: Re: BK 1045 DIY substitution
Post by: twocvbloke on April 15, 2018, 05:37:34 PM
That's one of the pitfalls of ordering from the far east, it always takes its' time, I'm waiting for a simple wall socket cover from china (want to fit a 15 Amp BS546 socket on one of my generators, just cos I can, and need a cover to sit over it for a little protection), and almost 2 months later, erm, still nothing...  :-\