Skip to main content

GPRS with ibook and nokia 6600

Its been a while since I've setup my ibook to use the GPRS connection. It has come in really handy before in the sunshine coast hinterland town of malany where there weren't any telephones in the luxury chalets and to get to the nearest phone line, would mean a trek to the hut at the entrance where one phone might be available.

I believe anyone who owns a mobile and bluetooth capable notebook should at least set up their GPRS to the notebook. Its good to know that in cases of emergency, when there isn't any power and the lines are cut, you can at least check your mail or surf the net at slow speeds. In my case, one of things I must have is SSH. SSH actually works fine on GPRS. Its a bit laggy, but usable. This means youre never too far from your server.

Each GPRS connection for mobile providers are different. The differences are in the APN. I've included some in this post.

There are 3 steps to this process:


Step 1: Add/Pair your mobile as a device your computer can recognise. This shouldn't be too difficult with bluetooth assistant.


Step 2: Download your modem scripts/driver files. I've lost the links I've managed to download the Nokia modem scripts from, but I'm still glad I have the files. I'm using the "Nokia GPRS CID 1" script. Just download and copy these files to /Library/Modem Scripts. After you copy the files there, you can specify which file to use in system preferences.

System Preferences > Network > Bluetooth > Bluetooth Modem > Nokia GPRS CID 1


Step 3: Setup your network connection. Remember to add the DNS servers in the TCP/IP Tab. No comma required for DNS, just put each ip on a new line.

For APN

System Preferences > Network > Bluetooth > PPP > Account Name:

Leave everything else blank. It does look weird, but you have to remember that your mobile is already authenticated to its GPRS connection.

Caution: I see a posibility for hackers to search nearby mobile and try to use their GPRS connection for net access. Bluetooth security does require a pin to pair, so thats one barrier, but if a hacker pairs your mobile when youre not looking, you can be a potential victim. So that means if your mobile device beeps and says accept connection from blah. Say no and look at your pairing to make sure nothing extra is there. Its still good practice if this hack sounds a little far fetched.


Operator: - Optus
GPRS APN: - internet
Username: - {blank}
Password: - {blank}
DNS: - 202.139.83.3, 192.65.91.129

Operator: - Telstra
GPRS APN: - telstra.internet
Username: - {blank}
Password: - {blank}
DNS: - 139.130.4.4, 203.50.170.2

Operator: - M1
GPRS APN: - mobilenet
Username: - {blank}
Password: - {blank}
DNS: - 202.79.64.21, 202.79.64.26

Operator: - SingTel
GPRS APN: - internet
Username: - {blank}
Password: - {blank}
DNS: - 165.21.100.88, 165.21.83.88

Operator: - Starhub
GPRS APN: - shwapint
Username: - {blank}
Password: - {blank}
DNS: - 203.116.1.78, 203.116.254.150

Comments

Popular posts from this blog

Multiple Broadlink RM mini 3 integration using MQTT

Broadlink now has quite a lot of integration options almost out of the box. If you enable Broadlink IHC, you can directly link it to Alexa by giving the device a unique name.

There is a homebridge plug in for homekit integration but I haven't tried or tested this. https://lprhodes.github.io/slate/

I wanted to put the device in domoticz so I can have more control over what can trigger my broadlink. I decided to use broadlink-mqtt for this, which is a fairly easy method to trigger from any source.

Setup Instructions for broadlink-mqtt

1. git clone https://github.com/eschava/broadlink-mqtt

2. vi /home/pi/broadlink-mqtt/mqtt.conf

3. Update the mqtt.conf file with the device type set as multiple_lookup

device_type = 'multiple_lookup'
mqtt_multiple_subprefix_format = '{type}_{mac_nic}/'
4. Start the python script and check that it started and detected all the RM devices.
Check the log file to see what the IP / MAC addresses are. DEBUG Connected to RM2 Broadlink device at …

Fibaro HCL Virtual Device Slider

How to setup Fibaro home center lite (HCL) slider for virtual devices.

As the Fibaro HCL does not support LUA. The question was how to update the number value of the slider to send to the HTTP string. Thanks to this site which is a really good reference https://www.vesternet.com/resources/application-notes/apnt-88/

The 2 use cases here are;

Sonos HTTP API Volume

To allow for volume control for all Sonos devices, add a virtual device with the IP address for SONOS HTTP API and specify the default port to 5005. Create Slider and put the following text into the string.

GET /volume/_sliderValue_ HTTP/1.10x0D0x0A0x0D0x0A


Domotiz Virtual Devices

GET /json.htm?type=command&param=switchlight&idx=XX&switchcmd=Set%20Level&level=_sliderValue_ HTTP/1.10x0D0x0A0x0D0x0A

Replace XX with the device ID.

Restart Fibaro HCL when it stops working automatically

It seems that the Fibaro HCL seems to hang every now and then. Instead of trying to restart it regularly, which doesn't really work, as it's almost impossible to predict when this will happen.

This method checks that the HCL is actually running and in the event it stops working, trigger a script that will restart it.


1. Get a non Fibaro controlled power plug and scripts to control it.

I used a wifi smart plug, TP-link HS100 and downloaded the scripts from

https://blog.georgovassilis.com/2016/05/07/controlling-the-tp-link-hs100-wi-fi-smart-plug/

2. Create a bash script to restart the Fibaro, e.g. restart_fibaro.sh

#!/bin/bash

ip_addr=
scripts=

$scripts/tplink-smartplug.py -t $ip_addr -c off
sleep 10
$scripts/tplink-smartplug.py -t $ip_addr -c on


3. Create a test global variable in the Fibaro HCL

Go to the variables panel and create a test variable, e.g. Test


4. Add a cron entry to test that the Fibaro API is still working and restart if it's not.

The cron script is scheduled ev…