B4X FEED bluetooth and microcontroller (STM32)

اطلاعات موضوع

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن practicalsoftمی باشد و موضوع آن: bluetooth and microcontroller (STM32) است. این موضوع تا کنون 48 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع bluetooth and microcontroller (STM32)
آغاز کننده موضوع practicalsoft
تاریخ شروع
پاسخ‌ها
0
بازدیدها
48
پسندها
0
آخرین ارسال توسط PracticalSoft
Jun 6, 2020
11,559
4,422
Situation
- existing microcontroller with bluetooth interface and running program
- running Windows program for communication with the microcontroller (in over 100 versions in productive use), as reference
- must transfer the Windows program to an Android tablet

So far
- basics for B4A
- study of various forum contributions
- simple program in B4A for receiving bluetooth messages from the microcontroller
- using AsyncStreams; NOT in prefix mode, Detection of a complete message by scanning for LF (line feed), works.
- display of received message in stream New_Data event, works

Question
I am looking for a way from the stream New_Data event to "distribute" the received messages further to various displays, etc. Of course I can create a "case" in the
Stream New_Data event a "case" and then call various SUBs. But the problem is, that sometimes I have to wait for the answers of the microcontroller. It can take 100 ... 200 mSec until the answer arrives. Attempts with wait for ... were...



 

عقب
بالا