# Read serial com port

**URL:** <https://forum.ionicframework.com/t/read-serial-com-port/33878>\
**Category:** uncategorized\
**Created:** [October 5, 2015, 4:21pm UTC](https://forum.ionicframework.com/t/read-serial-com-port/33878 "2015-10-05T16:21:01Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![NItemanbcn](https://avatars.discourse-cdn.com/v4/letter/n/8c91f0/32.png) [@NItemanbcn](https://forum.ionicframework.com/u/NItemanbcn)\
**Post date:** [October 5, 2015, 4:21pm UTC](https://forum.ionicframework.com/t/read-serial-com-port/33878/1 "2015-10-05T16:21:02Z")

</div>

Hey,

First of all I want to apologize for my basic knowledge. I’m a begginer.  
I want to create an app for a professional device that runs under Android. This device has a barcode reader incorporated which I suppose is using an internal com port. Using an APK that I have found in internet (Android-Serial-Port API) I have detected that uses /dev/ttyMT1 (mtk-uart) port.  
Could you help me how I can read the input data of this port?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![DenverCoder9](https://avatars.discourse-cdn.com/v4/letter/d/b782af/32.png) [@DenverCoder9](https://forum.ionicframework.com/u/DenverCoder9)\
**Post date:** [January 16, 2016, 4:53am UTC](https://forum.ionicframework.com/t/read-serial-com-port/33878/2 "2016-01-16T04:53:01Z")

</div>

Were you able to get this working?

---

<div class="post-metadata">

**Author:** ![whizzkey](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/whizzkey/32/95593_2.png) [@whizzkey](https://forum.ionicframework.com/u/whizzkey)\
**Post date:** [January 16, 2016, 6:39am UTC](https://forum.ionicframework.com/t/read-serial-com-port/33878/3 "2016-01-16T06:39:49Z")

</div>

I think the Ionic forum is not realy the place-to-go to find answers for custom serial communication implementaions.  
Anyways, I think you are looking in the wrong direction…

I’ve never done this particular application, but on a RaspPi I do these things sometimes.

If you would do a google search on “javascript access hardware” you will find

> <https://stackoverflow.com/questions/2926711/hardware-access-through-javascript>

So node.js. is our go-to tool.  
[http://thinkingonthinking.com/serial-communication-with-nodejs/](http://thinkingonthinking.com/serial-communication-with-nodejs/)

You would need to have full control of the device though, to install node.js on your android.  
[http://www.goland.org/nodejsonandroid/](http://www.goland.org/nodejsonandroid/)

Try this approach and see if you can get it going…  
Good luck

---

<div class="post-metadata">

**Author:** ![DenverCoder9](https://avatars.discourse-cdn.com/v4/letter/d/b782af/32.png) [@DenverCoder9](https://forum.ionicframework.com/u/DenverCoder9)\
**Post date:** [January 18, 2016, 3:20am UTC](https://forum.ionicframework.com/t/read-serial-com-port/33878/4 "2016-01-18T03:20:41Z")

</div>

Not OP, but was also looking to implement serial communication on the Ionic Framework. I ended up using an existing Cordova Plugin, Cordovarduino.

---

<div class="post-metadata">

**Author:** ![whizzkey](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/whizzkey/32/95593_2.png) [@whizzkey](https://forum.ionicframework.com/u/whizzkey)\
**Post date:** [January 18, 2016, 5:43am UTC](https://forum.ionicframework.com/t/read-serial-com-port/33878/5 "2016-01-18T05:43:22Z")

</div>

I didn’t know about it’s existence…  
Great though, it may make my life easier to include ionic on my IoT devices.

Thanks for sharing!!

---

<div class="post-metadata">

**Author:** ![ferandro](https://avatars.discourse-cdn.com/v4/letter/f/9fc348/32.png) [@ferandro](https://forum.ionicframework.com/u/ferandro)\
**Post date:** [February 13, 2017, 7:48am UTC](https://forum.ionicframework.com/t/read-serial-com-port/33878/6 "2017-02-13T07:48:05Z")

</div>

I have some problem. I want to read /dev/ttyMT1 (mtk-uart) port. In android device to serial port brodcast barcode data and another.

Thanks
