Tecnologia do Blogger.
RSS

Re: [androidbrasil-dev] Acesso à porta serial do aparelho android

Nunca trabalhei com esta api. Mas vi que ela tem uma app de teste na Play Store.

Testa se essa app funciona no seu Aparelho. Pelo menos descarta a possibilidade de incompatibilidade! ;)

Att,

Guilherme Sjlender
------------------------------------------------------------
Desenvolvedor Web - Flex3.6/Flex4.5/JavaEE
Desenvolvedor Desktop - AIR/JavaSE
Desenvolvedor Mobile - Android/JavaME/Flex4.5
------------------------------------------------------------


2013/6/5 Rodolfo Coelho <rodolfopc@gmail.com>
Galera, 

eu estou tentando fazer uma conexão via porta rs232 que eu possuo no meu aparelho Android(2.1).

Eu estou usando o:

Mas, infelizmente não estou conseguindo encontrar o meu aparelho.
Quando uso o "SerialPortFinder" ele me retorna o seguinte log:

02-28 08:56:52.394: I/global(2237): Default buffer size used in BufferedReader constructor. It would be better to be explicit if an 8k-char buffer is required.
02-28 08:56:52.394: D/SerialPort(2237): Found new driver rfcomm on /dev/rfcomm
02-28 08:56:52.399: D/SerialPort(2237): Found new driver usbserial on /dev/ttyUSB
02-28 08:56:52.399: D/SerialPort(2237): Found new driver acm on /dev/ttyACM
02-28 08:56:52.399: D/SerialPort(2237): Found new driver ttySAC on /dev/s3c2410_serial
02-28 08:56:52.399: D/SerialPort(2237): Found new driver serial on /dev/ttyS
02-28 08:56:53.074: D/SerialPort(2237): Found new device: /dev/s3c2410_serial3
02-28 08:56:53.074: D/SerialPort(2237): Found new device: /dev/s3c2410_serial2
02-28 08:56:53.074: D/SerialPort(2237): Found new device: /dev/s3c2410_serial1
02-28 08:56:53.074: D/SerialPort(2237): Found new device: /dev/s3c2410_serial0
02-28 08:56:53.204: D/SerialPort(2237): Found new device: /dev/ttyS3
02-28 08:56:53.204: D/SerialPort(2237): Found new device: /dev/ttyS2
02-28 08:56:53.204: D/SerialPort(2237): Found new device: /dev/ttyS1
02-28 08:56:53.204: D/SerialPort(2237): Found new device: /dev/ttyS0

E quando tento conecta à serial a única porta que conecta é a "/dev/s3c2410_serial0".

Alguém já teve experiência de usar essa biblioteca?
Sabe como eu encontro a porta correta?

Valeu.
 

--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

0 comentários:

Postar um comentário