Yealink USB B2K and USB B3G Driver for Unix
These devices are also known as Yamamoto, USB Telbox , USB Skype Diverter, Freshtel FT-102 VoIP USB Phone , etc
Yealink has many different products, but all of them have the same product code: 6993:b001 Freshtel FT-102 VoIP USB Phone.
Please do not use this driver with other products from Yealink. It will not break them, but might not work.
Since I do not own other products, I can not assure nor test the results.
The Yealink adapters this driver works are a "little black or gray boxes", in which one can connect
- RJ11 phone line
- RJ11 an analog telephone
- USB PC
The driver itself does not help much without an application connector.
The only one I know is kb2kskype, although many more may come in the future!
In order to compile it, just go to the src folder and type `make`. You will need libusb ( http://libusb.sf.net ).
to install it, just run `usbb2k_api`. It must be suid, since it does talk to a USB device.
$cd src
$make
$sudo ./usbb2k_api -f
#to test it
$python ../tools/test_usbb2k.py
# Test the API using the following commands
1. in a Consol:
usbb2k_api
2. in a other Consol:
api_connect /tmp/usbb2k.sock
#Command for api_connect:
SWITCH USB/PSTN
RING 0 (stop ringing)
RING 1 (ring mode 1)
RING 2 (ring mode 2)
#Msg from api_connect:
HANDSET ON/OFF (pickup/off handset)
USB OK (confirm successful switch to USB mode)
KEY 01..09 (keyphone pressed)
The daemon will create a socket in /tmp/usbb2k.sock and sleep untill some program connects to the socket.
The protocol of the daemon is quite simple and one can have an idea out of it looking at src/fifoApi.h
The best way to test it is to run tools/test_usbb2k.py ( yes, you will need python for that ).
====================
HAL mode ( hardware abstraction layer )
====================
HAL mode has several advantages over normal mode
- multiple devices are supported at the same time
- HAL launches and kills the daemon automatically whenever a device is plugged in/out. ( just like a normal driver )
HAL mode is new and has not been as tested as the normal daemon mode. Nevertheless seens quite stable.
More documentation and intructions on how to install it are avaliable on the hal/ directory.
Marcos Diez marcos_at_unitron.com.br
20-01-2008
======================
B3G dialing features
======================
I have sucessifully implemented B3G dialig features. In order
to have B3G picking up the phone line, just type:
PICKUP_PSTN
JOIN_USB_AND_PSTN
To hang up, just use:
DETACH_USB_AND_PSTN
HANGUP_PSTN
Although B3G can still detect dialtones sent by the user, it can not generate dialtones.
That means you must play them userself using the audio channel.