Giter Club home page Giter Club logo

appinventor-serialotg's People

Contributors

rkl099 avatar

Stargazers

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

Watchers

 avatar  avatar

appinventor-serialotg's Issues

Slow Data Transmission with FTDI USB to Serial Adapter in SerialOTG V1.5

Hi @rkl099,
Firstly, I want to express my gratitude for your work on this extension; it's been instrumental in the development of my application.

Issue Description:
I'm encountering a performance issue in my application where data transmission to an end device is significantly slower than expected.
When sending a large text file (6100 lines, ~40 characters per line), the transmission is unusually slow.
It took about 20 minutes for the entire file to be sent.
I've observed a consistent delay of approximately 3ms between each byte of data, as shown in the attached capture.

Setup:

  • FTDI USB to serial convertor (Chipset is FT232RQ)
  • Communication settings: 38400bps, 1-Stop bit
  • Test device: Pixel 7a running Android 14
  • SerialOTG V1.5

Expected Behavior:
The data should transmit at a regular pace without such delays, especially given the baud rate and setup.

Actual Behavior:
Experiencing significant delays between each byte, leading to an overall slow transmission.

Attachments:
Transmission waveform
Screenshot 2023-11-14 032004

Could this issue be related to the driver? Any assistance or guidance you can provide would be greatly appreciated.

Connection lost after 5seconds

hi. I am using to connect to a arduino nano ch340,
it connects at firt but disconnects after 5 seconds and i can´t reconnect.
Any idea whatit can be?

micro:bit and Adafruit CLUE support

Hi rkl099,
Thank you for a great addition to the AI2.

Two questions:

I am using the extension with micro:bit connected to the Android phone over an OTG & USB cables.
Below incidents are while in Companion op mode.
It works the first time AI2 Companion is started, pops up Serial Permission screen and all is fine.

On subsequent disconnect and connects, the Serial permission is never displayed, and the program does not open the USB, even though it is initialized.

Do you know why that is?

Even if I reset the APP defaults, it still does not work more than one connection attempt.

I understand this might be something in the Android, but still would like to know how to overcome it.
I am testing with various Androids, all with the same result:
NOTE4 & S5 with A6.0.1, NOTE@ with A4.4.2

NOTE: I tested it after creating an APK, and it works OK everytime. So it is only problematic in the Companion mode.

Another device, Adafruit CLUE, does not work at all with this extension. What can I do to help, so this device serial will also be supported ?

Thanks

Mistakes while using read New line

Hi,
My Arduino is sending messages with a baudrate >100000 (3d lidar scanner). In appinventor, using serialOTG read Line fonction inside a timer, it got several "mistakes": sometimes lines are 'skipped' , sometimes 2 lines are merged, ...
IS it due to baudrate or internal buffet size or ?
I don't understand why those mistakes appears.

Fyi: it works perfectly with Android app : Serial USB Terminal.

RX buffer flush

Hi,
I seem to have a problem that I can't find a solution to.

i have a simple GUI with two button.
One send a command and take the response and display it
and the second one does the same.

When I push either button it does not display anything ( I can see in my serial monitor the response)
If i push it a second time it works.

Restart the app:

if I push button one it does not display anything.
if I push button two it displays the data from the button 1 push
if I push a second time button two it display the correct data.
it seems like the RX buffer is a button press late.

if I put flush anywhere (at the start or end) it does not works anymore or I have only part or the precedent RX buffer.

here is the block view.:
Serial Read Write test

Thanks for your help.

Bluetooth SPP support

Hi. Would love to get Bluetooth SPP support. The serial port of my Arduino is connected to a HC-05 Bluetooth module. In windows I can pair with the HC-05 and it looks like a normal serial port. I can even upload my HEX code from the Arduino IDE to my Arduino over Bluetooth. With AI2 I can use the Bluetooth blocks to access my Arduino, but it would be nice to integrate it with the HEX upload feature in your addon. Will this be a possibility for future releases?

Upload firmware to esp32

Hi, I want to use this extension to upload firmware to esp32 via ch340, what file format is supported,ino or bin? It possible please add .bin support, great extension none the less.

BT upload - Getting .hex file from different source

Hello,
at first, thank you for your work. I'd like to use SerialOTG_BT_WIFI.aia for uploading to my Nano 328pb + HC06 setup. However, I would like to download the .hex file from the Internet. The .Upload() method only accepts a board type + filepath. Would it be possible to add a method to accept board type + the content of a .hex file?

Also, I know that the Atmel328pb uses different signature bytes (0x1e 0x95 0x16) for identification, I don't know if it matters during the upload as I don't see your code (of course I compile the Arduino code for the PB board so my hex file is OK).

Thank you,

Bluepill STM32F103 support

I didn't get it working with STM32 Bluepill (STM32F103), it would be nice.
VID : 0483 STMicroele
PID : 5740 STM32 Virtual Com Port
On my phone (Samsuns Galaxy S7) Bluepill works with Serial USB Terminal.

Using the USB port while in Genymotion Emulator

Hi RKL999,
I was wondering if the SerialOTG would work while I run my generated APK in the Genymotion Emulator?
It has USB support, and VirtualBox that it runs , is able to filter the PC Host USB ports.
When I run the APP it comes up fine, and the VirtualBox is set to select microBit USB connection.
However, I cannot open the port.
The reason I am asking this is, I would like to demo the AI2 software running on the PC in emulator, so I can share the display.
Would appreciate your assessment of the attempt.
Thx.

Support for FTDI 4232HL (multiple ports)

Hi, first thank you for this addition to AI! I can verify that it works great on my FTDI 232RL, but I can't get it working on my 4232HL chip, which is a 4-port chip. When this chip connects to Android, it creates 4 ports (eg. 0-3). I believe your extension is only set up to use Port 0. If I use the FTDI terminal app (https://play.google.com/store/apps/details?id=com.ftdi.j2xx.hyperterm), I can select a port other than 0. Would it be possible to add FTDI Port selection in your extension?

Impossible to connect and driver name is empty

Hello, i am trying to use your SerialOTG module to connect to an USB device and connect does not work.
Initialize is ok but driver name is empty.
Connexion parameters looks ok.

If i try with your demo app it does not work too but if i try with basic USB Serial Console app from app store i have no issue.

Do you have any idea ?
Thanks for your help.

New Error FLAG_IMMUTABLE or FLAG_MUTABLE

Hello, I reopened an old application and now it gives me an error when I try to initialize the serial port.

edu.mit.appinventor.aicompanion3: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent. Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles.
Note: You will not see another error reported for 5 seconds.

(Android 12)

Any Idea... Thanks

Issues with Serial Wifi connection

Hi

I am using your serialOTG.aix in my APP, and it works pretty well.
The setup consists of a Tablet (Client) connected to a Wifi Gateway (Server), which provides the serial tunnel for a single serial device.

Now, I have to change the architecture of the Hardware; instead of connecting the Tablet to the gateway hotspot, I have to connect the Gateway to the Tablet hotspot because of a multi-serial device solution.

With the new constellation, I can not Initialize the Wifi anymore. Do I have to apply a different Initialisation method since we act as a TCP server instead of a TCP client?
image

Have you got any idea what could be wrong?

Best regards,
Roger

ESP32C3 Support?

Are there any plans to support the ESP32C3 or could it be supported? As a $2 arduino compatible microcontroller with built-in USB, WiFi and BLE, it's on track to become incredibly popular in the arduino and DIY electronics world very soon. I tried to use it with this extension though and it isn't supported. I'm just wondering if it could be.

Ability to use more than one USB port/adapter

Hi!

First of all, thanks for your great project!

I want to know if it is possible to add the ability to select more than one USB adapter. I am using a board (an Android TV Box) with 4 USB ports, so I need to comunicate with one serial port (USB adapter 1) a thermal printer, and in another serial port (USB adapter 2) a FT232 board adapter. Can you take in consideration this feature to use more than one serial adapter? I am using Kodular and MIT AppInventor.

Best regards,

Sebastián

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.