Code Monkey home page Code Monkey logo

android-serialport-api's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

android-serialport-api's Issues

I get a null list of files from the /dev directory

from SerialPortFinder.java line 41

File dev = new File("/dev");

I always get null as result of dev

my log show:

type=1400 audit(0.0:49408): avc: denied { read } for name="/" dev="tmpfs" ino=4097 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:device:s0 tclass=dir permissive=0

What should I do?

Is this still maintained?

I am trying to build app using this code, I have already built an app using this but it is not receiving feedback from device. If anyone has written new code can someone share the link.

Received data is encrypted

Hi,
I have implemented this in my app , but when I was reading , the received data was different from what is sent.
There is no encryption done on sender end , it is just sending as it is ( verified it with windows terminal program )

Here is the response details
Sent : 954605E6
Received : ceٲVVM

More conversions I tried:
Sent:
Hex: 57 53 52 54 48 53 69 54
Decimal: 39 35 34 36 30 35 45 36
Binary : 00111001 00110101 00110100 00110110 00110000 00110101 01000101 00110110

Received:
Hex: 99 101 217 178 86 86 77 3
Decimal: 63 65 d9 b2 56 56 4d 03
Binary : 01100011 01100101 11011001 10110010 01010110 01010110 01001101 00000011

I don't have experience with this kind of communications

NOTE : Communication is via UART cable , app running in a custom device (HOwen , Hero)

Thank you

Class 'FileDescriptor' has no field named 'descriptor'.

jclass cFileDescriptor = env->FindClass("java/io/FileDescriptor");
jmethodID iFileDescriptor = env->GetMethodID(cFileDescriptor,"","()V");
jfieldID descriptorID = env->GetFieldID( cFileDescriptor, "descriptor", "I");
mFileDescription = env->NewObject(cFileDescriptor,iFileDescriptor);
env->SetIntField(mFileDescription,descriptorID,(jint)fd);

Android Studio 4.1.1 says "Class 'FileDescriptor' has no field named 'descriptor'. "

64bit version

Could you generate a 64bit version of the .so ?

our application gets build with

abiFilters "armeabi", "armeabi-v7a", "arm64-v8a", "x86", "mips", "x86_64"

therefore for we need to have a 64 bit version.

How can I use flowcontrol?

I am trying to do serial communication using this code,
but is flow control impossible using sercd? I would like to know how to connect.

I want to do serial communication with cts/rts flowcontrol.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.