Sending more than 8 byte through UART on Raspberry Pi using Android Things

0 votes
I have a Raspberry Pi running on Android Things. I'm trying to send data that is over 8 bytes over a UART connection using the Pin 4 with a TTL through USB2.0. But that didn't work, so, should I be using some other pin like Pin 6? Or what should I be doing if I want to send a 9-byte data or 234212441325454543595674859764 to USB to TTL with pin 4?
Aug 25, 2018 in IoT (Internet of Things) by Bharani
• 4,660 points
1,035 views

1 answer to this question.

0 votes
So, you can send 234212441325454543595674859764 in ASCII, which is the default for UART.

Check this out for examples or tutorials:
https://developer.android.com/things/sdk/pio/uart
https://github.com/androidthings/sample-uartloopback

Since its over 8 bytes, there might be a chance that you don't receive the entire string at once, but even if you get it in parts, just concatenate them.
answered Aug 25, 2018 by nirvana
• 3,130 points

Related Questions In IoT (Internet of Things)

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Accessing Kinect data on the Raspberry Pi

Yes, you can. The Kinect has a ...READ MORE

answered Aug 14, 2018 in IoT (Internet of Things) by nirvana
• 3,130 points
2,958 views
0 votes
1 answer
0 votes
1 answer

Downloading source code of Android Things

No because AndroidThings is still in preview ...READ MORE

answered Jul 5, 2018 in IoT (Internet of Things) by anonymous2
• 4,280 points
1,581 views
0 votes
1 answer

Creating Android Things' bundle and pushing it over OTA

Here are all the steps necessary to ...READ MORE

answered Jul 6, 2018 in IoT (Internet of Things) by anonymous2
• 4,280 points
526 views
0 votes
1 answer

Problem while disconnecting BLE device!

I think that's because of the way ...READ MORE

answered Jul 18, 2018 in IoT (Internet of Things) by nirvana
• 3,130 points
3,428 views
0 votes
1 answer

Connect Android Things based Raspberry Pi 3 to wifi network for the first time!

Hey, I think its alright!  Your Raspberry Pi ...READ MORE

answered Jul 19, 2018 in IoT (Internet of Things) by nirvana
• 3,130 points
976 views
0 votes
1 answer

Setting time on Raspberry Pi using just PowerShell

The Enter-PSSession is for interactive sessions, so ...READ MORE

answered Aug 10, 2018 in IoT (Internet of Things) by nirvana
• 3,130 points
777 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP