Recent

Author Topic: Android and RS232  (Read 2133 times)

shyub

  • Jr. Member
  • **
  • Posts: 84
Android and RS232
« on: August 10, 2021, 01:01:21 pm »
The LAMW help has some great examples of using Bluetooth to control external devices. I even managed to make a small application that controls the machines. Thanks to the developers!
The other day I saw an interesting device, in which a tablet is used as a monitor, through a USB / RS232 adapter it is connected to the ATMega128 controller, which, in turn, controls the hardware. This topic was discussed on the site https://habr.com/ru/post/163913/ and there is a link to the library https://github.com/yuriykulikov/AndroidSerialPort.
Can this library be used in LAMW and how can I adapt it for Pascal?

garlar27

  • Hero Member
  • *****
  • Posts: 651
Re: Android and RS232
« Reply #1 on: August 10, 2021, 03:56:26 pm »
Why you want to use that external library when you can use synapse or lazSerial? Are those packages not available in LAMW?

jmpessoa

  • Hero Member
  • *****
  • Posts: 1943
Re: Android and RS232
« Reply #2 on: August 11, 2021, 05:36:53 am »
Quote
an this library be used in LAMW and how can I adapt it for Pascal?

What about:
https://github.com/jmpessoa/lazandroidmodulewizard/blob/master/docs/how_to_create_new_components.txt

Quote
Are those packages not available in LAMW

synapse? Yes.

Side note: there is a "jcBluetoothSSP"  component and "demo"  ("Android Bridges jCenter")
« Last Edit: August 11, 2021, 05:41:23 am by jmpessoa »
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

shyub

  • Jr. Member
  • **
  • Posts: 84
Re: Android and RS232
« Reply #3 on: August 11, 2021, 07:03:41 pm »
Thanks.
I did not know about the possibility of using the Synapse component in LAMW.

 

TinyPortal © 2005-2018