How send command via "Type C to Rs 232 adatpter"

Hi to all.

I need you help please.

I try create APK with LUA for send commads when i press buttom to device via “Type C to RS 232 adatpter”.

What is a command for this?

Thanks.

Corona doesn’t have any built-in features for that.  

Do you know how you would do this in native Android coding?

If so, you can probably write a plugin to allow you do send signals across the device’s USB-C port.

https://docs.coronalabs.com/native/plugin/index.html

PS - I’m not sure how this works exactly, but I wonder if you can simply write to some special file in the Android filesystem to send signals/data over the USB port.  If so, then all you need to do is determine that path and io.write() it.

You will need to enable ‘android.permission.WRITE_EXTERNAL_STORAGE’ too.

Again, only if this can be done simply by essentially writing to the port.

Ok thanks i will try.

i dont know how i wont do this in native Android coding.

Sorry, but I couldn’t understand what you meant by this:
 

 
  Which of these is closest to what you meant:

  • I don’t know how to do this in native coding.
  • I don’t know if I want to write a plugin.  I don’t want to do any native coding.
  • I don’t know how I won’t (end up) doing native coding.  (It seems unavoidable.)

Capitalization and punctuation go a long ways to being clear.  Please help me (us) to understand what you’re saying by being more clear.

Hi.

Sorry

i mean 

  • I don’t know how to do this in native coding.

Thanks

Corona doesn’t have any built-in features for that.  

Do you know how you would do this in native Android coding?

If so, you can probably write a plugin to allow you do send signals across the device’s USB-C port.

https://docs.coronalabs.com/native/plugin/index.html

PS - I’m not sure how this works exactly, but I wonder if you can simply write to some special file in the Android filesystem to send signals/data over the USB port.  If so, then all you need to do is determine that path and io.write() it.

You will need to enable ‘android.permission.WRITE_EXTERNAL_STORAGE’ too.

Again, only if this can be done simply by essentially writing to the port.

Ok thanks i will try.

i dont know how i wont do this in native Android coding.

Sorry, but I couldn’t understand what you meant by this:
 

 
  Which of these is closest to what you meant:

  • I don’t know how to do this in native coding.
  • I don’t know if I want to write a plugin.  I don’t want to do any native coding.
  • I don’t know how I won’t (end up) doing native coding.  (It seems unavoidable.)

Capitalization and punctuation go a long ways to being clear.  Please help me (us) to understand what you’re saying by being more clear.

Hi.

Sorry

i mean 

  • I don’t know how to do this in native coding.

Thanks