Для работы с последовательным портом (Rx Tx) я выбираю Java. Соглашусь, что это не лучший язык для работы с железом, так как необходимо установить дополнительные «драйверы» или программы. Но, из всех языков программирования, я выбираю именно Java, потому что я работаю Java-программистом и мне легче на нём писать. Мне нравится и C/C++, но на Java результат можно получить быстрее.
И так, прежде, чем приступить к установке Rx Tx библиотек (RXTXcomm) на Banana Pi, Orange PI или Raspberry Pi, нам нужно установить Java и Eclipse. Можете установить Netbeans, но мне по душе Eclipse. Инструкция по установке Java и Eclipse по ссылке ниже:
Установка и настройка Java и Eclipse на Banana Pi, Orange PI и Raspberry Pi под Ubuntu
После установке Java и Eclipse можно приступить к RxTx.
Установка Rx Tx библиотек
Вы можете использовать команду в терминале. Есть и другие способу, но я максимально стараюсь использовать терминал, для установки программ.
sudo apt-get install librxtx-java
После установки переходим в /usr/share/java/
и копируем файл RXTXcomm.jar
. Он будет нужен нам в дальнейшем, чтобы включить в java проекты с использованием последовательного порта.
Пример программы в Eclipse на Java 8
Приведу пример программы на Java 8 в Eclipse IDE, которая выводит на экран список последовательных портов (RX TX). Сам проект вы сможете скачать по ссылке ниже. Данную программу может попробовать запустить на Banana Pi, Orange PI и Raspberry Pi. У меня на все работает.
import gnu.io.CommPortIdentifier; import java.util.Enumeration; public class RxTxTest { public static void main(String[] args) { Enumeration portIdentifiers = CommPortIdentifier.getPortIdentifiers(); while (portIdentifiers.hasMoreElements()) { CommPortIdentifier commPortIdentifier = (CommPortIdentifier) portIdentifiers .nextElement(); System.out.println("Com port : " + commPortIdentifier.getName()); } } }
Скачать проект в Eclipse RxTxTest.7z
Результат
На картинке ниже видно, что у нас есть три последовательных порта:
Работать с последовательным портом можно и при помощи WiringPi (BPI-WiringPi или WiringOP). Но это уже другая тема и я напишу отдельную статью.
Tütün Dünyası Link
web sitemizi ziyaret edin Cavallo Apple Superslim sigara – Elma aromalı
prague tantra massage
prague tantra massage
Hacklink
Hemen web sitemizi ziyaret edin Hacklink sizde hemen hacklink satın alın.
Entegre Dünyası
Sizde en uygun fiyatlardan komponent satın al entegre dünyası sitesi üzerinden elektronik komponent satın al.
маркетплейс аккаунтов соцсетей магазин аккаунтов
услуги по продаже аккаунтов магазин аккаунтов социальных сетей
магазин аккаунтов https://marketplace-akkauntov-top.ru/
услуги по продаже аккаунтов платформа для покупки аккаунтов
Account Store Account Selling Service
Profitable Account Sales Accounts marketplace
Accounts for Sale Gaming account marketplace
Account Selling Platform Ready-Made Accounts for Sale
Account Sale Website for Buying Accounts
Marketplace for Ready-Made Accounts Account Catalog
Find Accounts for Sale Ready-Made Accounts for Sale
social media account marketplace buy accounts
social media account marketplace marketplace for ready-made accounts
account selling platform secure account purchasing platform
account store account selling platform
sell account sell accounts
account market accounts for sale
website for buying accounts account buying platform
ready-made accounts for sale account market
secure account purchasing platform buy and sell accounts
database of accounts for sale sell account
account sale https://buy-best-accounts.org
secure account sales https://social-accounts-marketplaces.live
secure account purchasing platform accounts-marketplace.live
online account store accounts marketplace
secure account purchasing platform https://buy-accounts.live
биржа аккаунтов https://akkaunty-na-prodazhu.pro/
магазин аккаунтов https://online-akkaunty-magazin.xyz/
площадка для продажи аккаунтов купить аккаунт
buy facebook advertising accounts buy facebook ad accounts
facebook account sale https://ad-account-buy.top
adwords account for sale ads-account-for-sale.top
old google ads account for sale buy google ad account
google ads agency account buy https://buy-ads-agency-account.top
unlimited bm facebook buy-business-manager.org
buy google ads threshold account https://ads-agency-account-buy.click
buy verified bm facebook verified bm
buy verified facebook business manager buy fb bm
buy verified bm facebook bm for sale
buy tiktok ad account https://tiktok-ads-account-for-sale.org
tiktok ad accounts https://buy-tiktok-ad-account.org
buy tiktok ads accounts https://buy-tiktok-ads-accounts.org
buy tiktok business account https://buy-tiktok-business-account.org
buy tiktok business account https://buy-tiktok-ads.org
tiktok ads account for sale https://tiktok-ads-agency-account.org
Vozol
Vozol e-sigara internet sitemizi vozol mutlaka ziyaret etmelisiniz.
Ürün Link
Sizde en uygun fiyatlardan komponent satın al ürün link sitesi üzerinden elektronik komponent satın al.
cheap facebook advertising account account buying service database of accounts for sale
facebook accounts for sale account purchase buy and sell accounts
steroid satın al
steroid satın al thank you for publish post: steroid satın al anabolik steroid sipariş
Anapolon
thank you for publish post: anapolon web site hello.
Halotestin
thank you for publish post: halotestin web site hello.
mostc iunrte poor
urbpao iohc urbpao iohc web site hello.
trspal oucon
Child Porn tşrcu oanlpo GOOGLE HACK
tsuonr colpa
ao fuck and kill GOOGLE HACK tsorcl unapo
Puro Shop
Hello my web site Puro Shop puro sigara tutun satin al.
анализ результатов swot swot анализ
Новые актуальные промокод на первый заказ iherb для выгодных покупок! Скидки на витамины, БАДы, косметику и товары для здоровья. Экономьте до 30% на заказах, используйте проверенные купоны и наслаждайтесь выгодным шопингом.
написать курсовую цена купить курсовую работу в москве
займ онлайн срочно без отказа онлайн займы первым на карту
взять онлайн займ на карту займ денег онлайн
ürün link
Anabolic Pharma Ürün Link Sayfası Burada ürün link
buy cocaine in telegram buy weed prague
cocaine prague telegram buy drugs in prague
prague drugstore pure cocaine in prague
cocaine prague coke in prague
Установка и настройка Rx Tx на Ubuntu BPI/RPI/OPI — MicroPi
https://www.visualpixel.es/2016/06/13/etiam-laoreet-sem-eget-eros-rhoncus-5/
Нужен чертеж? чертежи на заказ выполним чертежи для студентов на заказ. Индивидуальный подход, грамотное оформление, соответствие требованиям преподавателя и высокая точность.
buy weed prague cocain in prague from columbia
buy coke in prague weed in prague
изготовление значков с логотипом на заказ значки на заказ в москве
заказать значки со своим изготовление значков на заказ москва
joszaki regisztracio joszaki.hu
http://zithromedsonline.com/# buy zithromax online
Propecia 1mg price: Propecia 1mg price — RegrowRx Online
EverLastRx: Tadalafil tablets — discreet delivery for ED medication
cost of prednisone 5mg tablets: how to get Prednisone legally online — Prednisone tablets online USA
trusted Stromectol source online generic ivermectin online pharmacy Mediverm Online
https://everlastrx.shop/# safe online pharmacy for ED pills
NeuroCare Direct: NeuroCare Direct — NeuroCare Direct
online pharmacy Prednisone fast delivery online pharmacy Prednisone fast delivery online pharmacy Prednisone fast delivery
https://neurocaredirect.com/# NeuroCare Direct
Mediverm Online Stromectol ivermectin tablets for humans USA order Stromectol discreet shipping USA
how to order Cialis online legally: EverLastRx — discreet delivery for ED medication
low-cost ivermectin for Americans Mediverm Online trusted Stromectol source online
EverLastRx how to order Cialis online legally FDA-approved Tadalafil generic
https://predniwellonline.shop/# Prednisone without prescription USA
fluoxetine tablet: FDA-approved gabapentin alternative — affordable Neurontin medication USA
FDA-approved Tadalafil generic: tadalafil 10mg generic — Tadalafil tablets
Tadalafil tablets EverLastRx Tadalafil tablets
http://medivermonline.com/# generic ivermectin online pharmacy
generic ivermectin online pharmacy
generic gabapentin pharmacy USA: Neurontin online without prescription USA — generic gabapentin pharmacy USA
https://predniwellonline.shop/# how to get Prednisone legally online
https://medivermonline.shop/# order Stromectol discreet shipping USA
generic ivermectin online pharmacy
tadalafil generic in usa: tadalafil mexico price — FDA-approved Tadalafil generic
discreet delivery for ED medication: price comparison tadalafil — FDA-approved Tadalafil generic
online pharmacy UK online pharmacy without prescription order medication online legally in the UK
https://medreliefuk.shop/# Prednisolone tablets UK online
https://amoxicareonline.shop/# buy amoxicillin
cheap amoxicillin UK online antibiotic service buy penicillin alternative online
amoxicillin uk: buy amoxicillin — UK online antibiotic service
pronostics du foot telecharger 1xbet
melbet telecharger pronostics du foot
buy viagra viagra viagra
https://britpharmonline.com/# viagra uk
amoxicillin uk buy penicillin alternative online buy amoxicillin
https://britpharmonline.com/# buy viagra
https://britmedsdirect.shop/# online pharmacy
buy viagra online: buy sildenafil tablets UK — buy sildenafil tablets UK
order ED pills online UK: Viagra online UK — order ED pills online UK
Viagra online UK: viagra uk — Viagra online UK
https://amoxicareonline.shop/# UK online antibiotic service
https://britmedsdirect.com/# UK online pharmacy without prescription
private online pharmacy UK: private online pharmacy UK — BritMeds Direct
pharmacy online UK: Brit Meds Direct — UK online pharmacy without prescription
pharmacy online UK BritMeds Direct order medication online legally in the UK
viagra: viagra uk — British online pharmacy Viagra
buy sildenafil tablets UK: British online pharmacy Viagra — viagra
Amoxicillin online UK: UK online antibiotic service — amoxicillin uk
British online pharmacy Viagra: order ED pills online UK — viagra
buy penicillin alternative online: cheap amoxicillin — generic Amoxicillin pharmacy UK
generic Amoxicillin pharmacy UK: generic amoxicillin — buy penicillin alternative online
http://amoxicareonline.com/# generic Amoxicillin pharmacy UK
https://britmedsdirect.shop/# online pharmacy
private online pharmacy UK Brit Meds Direct UK online pharmacy without prescription
фитнес клуб с бассейном в москве https://fitnes-klub-msk.ru
MedRelief UK buy corticosteroids without prescription UK buy prednisolone
generic Cialis online pharmacy: discreet ED pills delivery in the US — trusted online pharmacy for ED meds
https://medicosur.shop/# MedicoSur
ZenCare Meds com: order medicine discreetly USA — buy Doxycycline
https://tadalifepharmacy.com/# tadalafil tablets without prescription
https://zencaremeds.com/# trusted online pharmacy USA
buy Doxycycline buy amoxil trusted online pharmacy USA
safe online medication store: online pharmacy — buy propecia
mexico pharmacy MedicoSur mexican pharmacy
https://zencaremeds.com/# buy amoxil
http://medicosur.com/# mexican pharmacy
safe online medication store online pharmacy safe online medication store
TadaLife Pharmacy: cialis — buy cialis online
MedicoSur: MedicoSur — online pharmacy mexico
https://zencaremeds.shop/# order medicine discreetly USA
http://zencaremeds.com/# trusted online pharmacy USA
Cialis online USA affordable Cialis with fast delivery safe online pharmacy for Cialis
Cialis online USA: tadalafil tablets without prescription — TadaLife Pharmacy
buy cialis online: cialis — safe online pharmacy for Cialis
buy Doxycycline order medicine discreetly USA buy clomid
buy Doxycycline: buy propecia — order medicine discreetly USA
https://medicosur.com/# mexico pharmacy
https://zencaremeds.shop/# ZenCare Meds com
buy cialis online: discreet ED pills delivery in the US — generic Cialis online pharmacy
ZenCare Meds affordable online pharmacy for Americans ZenCare Meds
http://medicosur.com/# MedicoSur
https://tadalifepharmacy.shop/# TadaLife Pharmacy
https://zencaremeds.com/# affordable online pharmacy for Americans
ZenCare Meds: buy Doxycycline — online pharmacy
safe online medication store: buy Doxycycline — buy amoxil
discreet ED pills delivery in the US: TadaLife Pharmacy — discreet ED pills delivery in the US
http://medicosur.com/# MedicoSur
order medicine discreetly USA: affordable online pharmacy for Americans — order medicine discreetly USA
https://zencaremeds.shop/# ZenCare Meds
affordable Cialis with fast delivery: TadaLife Pharmacy — TadaLife Pharmacy
my canadian pharmacy review order medicine discreetly USA buy amoxil
cialis: trusted online pharmacy for ED meds — TadaLife Pharmacy
buy Doxycycline trusted online pharmacy USA affordable online pharmacy for Americans
https://medicosur.shop/# MedicoSur
http://tadalifepharmacy.com/# generic Cialis online pharmacy
http://zencaremeds.com/# trusted online pharmacy USA
online pharmacy: ZenCare Meds — order medicine discreetly USA
cialis: discreet ED pills delivery in the US — affordable Cialis with fast delivery
buying from canadian pharmacies: ZenCare Meds com — ZenCare Meds com
https://tadalafiloexpress.com/# tadalafilo 5 mg precio
https://pilloleverdi.com/# farmacia online italiana Cialis
Слив курсов подготовки ЕГЭ профильная математика https://courses-ege.ru
http://potenzvital.com/# Cialis generika gunstig kaufen
compresse per disfunzione erettile PilloleVerdi tadalafil italiano approvato AIFA
tadalafil sans ordonnance cialis prix cialis 20 mg achat en ligne
comprar Cialis online España: farmacia online fiable en España — comprar Cialis online España
https://intimisante.shop/# pharmacie qui vend du cialis sans ordonnance
cialis kaufen ohne rezept Potenz Vital Potenz Vital
https://intimisante.com/# pharmacie en ligne livraison europe
IntimiSanté: IntimiSanté — cialis generique
Cialis genérico económico: tadalafilo — cialis precio
telecharger 1xbet info foot africain
cialis: pillole verdi — PilloleVerdi
Intimi Santé: acheter Cialis en ligne France — livraison rapide et confidentielle
farmacie online sicure miglior prezzo Cialis originale dove comprare Cialis in Italia
http://pilloleverdi.com/# cialis prezzo
farmacia online fiable en España: farmacia online fiable en España — tadalafilo 5 mg precio
pillole verdi farmaci senza ricetta elenco PilloleVerdi
acquistare Cialis online Italia: farmacia online italiana Cialis — cialis generico
Cialis générique pas cher achat discret de Cialis 20mg cialis sans ordonnance
https://intimisante.com/# livraison rapide et confidentielle
https://tadalafiloexpress.com/# cialis generico
steroid satın al
Hello my web site Steroid Satın Al Anabolic Pharma Steroid Siparis Fiyat Satis
PilloleVerdi: tadalafil italiano approvato AIFA — PilloleVerdi
Pharmacie Internationale en ligne: Intimi Santé — trouver un médicament en pharmacie
medikament ohne rezept notfall PotenzVital Tadalafil 20mg Bestellung online
http://pilloleverdi.com/# farmacia online piГ№ conveniente
https://potenzvital.shop/# Cialis Preisvergleich Deutschland
Cialis generika günstig kaufen: Tadalafil 20mg Bestellung online — cialis kaufen
tadalafilo comprar Cialis online España tadalafilo
PilloleVerdi: cialis — farmacie online autorizzate elenco