# How use the ionic-native/serial plugin

**URL:** <https://forum.ionicframework.com/t/how-use-the-ionic-native-serial-plugin/157845>\
**Category:** Ionic Native\
**Created:** [February 28, 2019, 3:57pm UTC](https://forum.ionicframework.com/t/how-use-the-ionic-native-serial-plugin/157845 "2019-02-28T15:57:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chris389](https://avatars.discourse-cdn.com/v4/letter/c/4da419/32.png) [@chris389](https://forum.ionicframework.com/u/chris389)\
**Post date:** [February 28, 2019, 3:57pm UTC](https://forum.ionicframework.com/t/how-use-the-ionic-native-serial-plugin/157845/1 "2019-02-28T15:57:48Z")

</div>

Hello,

I need to communicate with a device connected to OTG on a phone.

In the documentation( ionic 3) of the plugins there is an example for the part on the permission and the opening port bu nothing on the other function usable as read or registerReadCallback.

I tried to use read function like this :

```auto
readOnce(){
   this.serial.read()
     .then((response) => {
        console.log('response',response);
     }).catch((err) => {
       console.log('err',err);
     });
}

```

After use function write call function readOnce and response is each time an empty arrayBuffer whereas this should be ‘Cnx OK’.

Thank you in advance for you help.

Chris.

---

<div class="post-metadata">

**Author:** ![dapidodev](https://avatars.discourse-cdn.com/v4/letter/d/6f9a4e/32.png) [@dapidodev](https://forum.ionicframework.com/u/dapidodev)\
**Post date:** [October 4, 2022, 6:45am UTC](https://forum.ionicframework.com/t/how-use-the-ionic-native-serial-plugin/157845/2 "2022-10-04T06:45:57Z")

</div>

Hi, do you have any update ?  
and seems like i can’t use this.serial… because its throw err “device not found”
