# Advantech Serial Driver

## Advantech UNO IDoor Module PCM-24D2R4-BE

Here are the commands to download and compile the Serial Port drivers for an Advantech device.&#x20;

{% hint style="warning" %}
**Please note:** you **MUST** rebuild the driver any time you update the kernel
{% endhint %}

```
sudo apt update
sudo apt install -y linux-headers-$(uname -r)
wget -O adv950.tar.gz http://downloadt.advantech.com/download/downloadsr.aspx?File_Id=1-1AHV7AI
tar xf adv950.tar.gz
cd adv950_source*/3.x_and_later/
make && sudo make install
echo adv950 > /etc/modules-load.d/adv950.conf
sudo reboot
```

To check that the driver has been correctly loaded, please check for the relevant devices using the following command:

```
ls /dev/ttyAP*
```
