Hayling Island

Hayling Island

Monday, March 7, 2016

Asterisk and stuff

One of the other fascinations I have is with telephone systems. I have a Cisco 7940, and a 7970 in the house, and I have a Sipgate account for VoIP. It was working fine with one phone, but then I thought I wanted both phones working. SIP is a strange protocol, and is hugely flexible so you can spend happy hours playing with all kinds of things to get it going. The phones are different as well; Cisco rely on having a TFTP server in the network for the phone to boot from, which contains most of the phone configuration. Each phone has a SIP<macaddress>.cnf file in the tftpboot directory that it looks for, to bring up the phone. I had some happy times with Wireshark to find out what was going wrong. Having fixed the 7940, the 7970 uses a similar approach, but a completely different format for the configuration file - now in XML! The phones also have their own web services built in ..

So having the phones working individually, I needed something so I can use them both. There is a lovely bit of Open Source software - Asterisk - that can run on Linux to provide a local PBX solution. So, downloaded that, and it now functions to manage calls coming in and going out on the SIP line.

I then installed Zoiper on all of the mobiles and tablets in the house, and that works well - so I can now call Trish from the office to her mobile, without the call going out over the air - and therefore is free. So far so good.

What I want to do next is to receive incoming calls on the house phone, and send them out to the SIP phones. So, how to solve this?

I did the usual, searched with Google and decided from a ten minute bit of research that the SPA-3000 device, available for pennies from eBay would be a good bet. Ah. Now the real fun begins.

I found the manual online, and there is a very comprehensive Asterisk book for download. I am still struggling though - this is a key part of the home phone strategy, so I can use the existing analogue handsets over DECT to ring them (assuming the phone call is from someone I like - telemarketers will get a very long message advising them that we don't accept unsolicited marketing blah blah on the phone). I will post more as I find out more, but this is a nightmare so far. There are literally hundreds of settings for the SPA-3000.

I may have to sell the little darling and buy a better interface.


Friday, October 23, 2015

Bargain!

I can't help showing off a bargain from that auction site again. This time I found an HP 16500A logic analyser for very few pennies. It didn't have any software with it, but eventually I found that on a site linked from Agilent.

I later found a blogger who had put up details on how to write the software onto diskette, and it went something like;

1) find some 720K 3.5 inch diskettes
2) find a machine that can run DOS and has a diskette drive
3) run the LIFUTIL program
4) format the diskettes to a very strange HP-UX compatible format
5) write the system code to a diskette
6) write the correct code for the options you have on a second diskette
7) enjoy

720k diskettes? Pah! a mere bagatelle. Remember when we used to get boxes of diskettes in perspex holders? I do, and I have a couple of boxes still.

A machine that can run DOS? Well I have an old Toshiba Satellite 110CT, which boots into Windows 98. Close enough. And here it is. Unfortunately the little pigtail cable for the Xircom ethernet PCMCIA is missing. I have two other PCMCIA network adapters, but they are both cardbus and won't fit.

But we do have a USB diskette drive for the Linux machine, so I can download the software and move it over with diskettes! 3.9MB at 720K is five bites. Actually because of the way the files are split up, it takes seven.

And THEN, we get to the point of writing the diskettes with the correct format (77 tracks, not 80, 1024 byte sectors, no interleave).

Wow. Don't diskettes take a huge amount of time to write and read?


Ta da.                                 




Tuesday, October 20, 2015

New MacBook, old data card

So anyway, I have a brand new (to me) MacBook for my playtime. And work, and stuff. It was a brilliant purchase from eBay (except when it arrived, it seemed to be missing a key) and I am delighted with it.

It took a little sorting out when I upgraded to El Capitan a couple of weeks ago, but I am very pleased.

Then, a couple of days ago I decided to log in when I was at a show in London, with my Virgin Media data card plugged in to the USB. Ah, no device. Tried again. Still no device. Now the USB port knows something is plugged in, and the package to install pops up on the screen, so its not a low level problem. Must be the software, I thought. I go Googling at home, can't find anything sensible, so I decided to phone Virgin Media.

I phoned the number on the web site for mobile data, and got through after a few minutes. I described my problem to the nice person on the phone. Hmm, let me transfer you to the technical department.

Oh, sorry they are busy. I'll just put you on hold, as I want to make sure I pass you over properly (la,l a, music, la, la) Sorry about the delay. To make sure I can pass you over, I need to take some details from you first.

(Go through process of saying no, I can't give you the phone number of the card as when I plug it in, it DOESN'T WORK - followed by my postcode, house number, Nicholas Sargeant - yes, you may call me Nick, the first two characters of my password etc).

Transfer to technical department. Describe problem again.

" I need to take some details from you first. " (Go through process of saying no, I can't give you the phone number of the card as when I plug it in, it DOESN'T WORK - followed by my postcode, house number, Nicholas Sargeant - yes, you may call me Nick, the first two characters of my password etc).

Technical department tell me that it's not a known problem, but it's usually an issue with Windows 7 migrating to Windows 10. I tell him I am using Mac OS X and I am on El Capitan now.  Ah, ok. Well, it's the same thing. The manufacturers can't keep updating device drivers, so we encourage customers to look at Mifi products now. Really? I ask .. having been Googling in the background. Well, I don't need Mifi, and it seems to be a little more expensive, but would be a lot easier than having a special launcher on the machine, so I say Please tell me more. Ah, yes sir, I'll just pass you over to our sales department.

Welcome to Virgin Media. So we can serve you better, please listen carefully to the following ...

Get through to another person. Lovely girl.

" I need to take some details from you first. " (My postcode, house number, Nicholas Sargeant - yes, you may call me Nick, the first two characters of my password etc). I'm interested in your Mifi products, and wondered if you would tell me something about them.

Yes sir. I will need to transfer you to Mobile Data to deal with your query though. Just let me pop you on hold ..

Get through to another person. Lovely girl.

" I need to take some details from you first. " (My postcode, house number, Nicholas Sargeant - yes, you may call me Nick, the first two characters of my password etc). I'm interested in your Mifi products, and wondered if you would tell me something about them.

Yes sir. I am a little new to Mobile Data products, but I will do my best to help you.

Long conversation ensues, followed by me choosing a product I wanted, giving my credit card details and so on. Oh, sorry sir, that one is out of stock. We do have the 3GB per month model available for only 15 quid a month ..

Not convinced, I explained I would need to do some research and come back. Meanwhile would it be possible to cancel the contract on my USB stick, that DOESN'T WORK?

Yes sir, of course. I will just transfer you to Cancellations ..

Oh, sorry they are busy. I'll just put you on hold, as I want to make sure I pass you over properly (la,l a, music, la, la)

Get through to another person. Lovely girl.

Blah, blah,  Go through process of saying no, I can't give you the phone number of the card as when I plug it in, it DOESN'T WORK - followed by my postcode, house number, Nicholas Sargeant - yes, you may call me Nick, the first two characters of my password blah blah ...

My new USB stick comes from O2. Works fine out of the box, even on El Capitan on my Mac. They thoughtfully send me an email when I cross 80% of my data usage, so I can either squeeze my usage until month end, or I can buy an additional GB of data to tide me over. So far, I have managed to keep within the allowance. My only gripe is that while the contract comes with mobile wifi hotspots, they aren't all that prevalent, with one huge exception. The hospital where I spend most of my time at work ;-)




Monday, July 6, 2015

BLM ideas ..

I thought it would be a good idea to try to build a BLM, with at least 16 x 16 matrix of full colour LEDs and push buttons.

For very few pennies, of course.

So, ideas are flooding in and some experimental prototypes are starting up now, and I will be posting some bits and pieces as they assemble.

That is all. I didn't want the blog to get lonely.

Thursday, May 7, 2015

When last time you have election?

My prediction for the outcome of today's election is ....



.. and that is why I am going to stick to Electronics, Music, Motorcycles and computers. A man's gotta know his limitations, and mine clearly include forecasting outcomes of elections.

Thursday, November 6, 2014

OK, I am playing around now. I've thought of a new MIDI gizmo to add in - a cross between a real-time sampler, sequencer and arpeggiator. I am also thinking it will be a MIDI master clock as well. I am using one of my boards from the Hakked! soldering iron, with ATMega328 processor and the flourescent display interface. I added a small daughter board to accept a MIDI interface (the five pin DIN style, not a USB one) and to wire the rotary encoder to.

Works so far ..
.. now off to write some code to update internal variables based on the encoder and the VFD display, and then I'll borrow some code from very clever people on t'Internet to make it all work.