Search found 23 matches

by flotul
Fri Apr 17, 2026 8:39 pm
Forum: Liberty BASIC Language
Topic: Serial com - RTS delay to switch ON/OFF transmitter
Replies: 6
Views: 43

Serial com - manually control RTS signal

Full code example NOMAINWIN [GUI_SETUP] WindowWidth = 290 WindowHeight = 80 [INITIALISE] BUTTON #MAIN.BtnRTSOFF, "RTS OFF", [RTS_OFF], UL, 60, 10, 80, 22 BUTTON #MAIN.BtnRTSON, "RTS ON", [RTS_ON], UL, 150, 10, 80, 22 OPEN "kernel32" FOR dll AS #kernel32 ComPort$ = "...
by flotul
Fri Apr 17, 2026 8:02 pm
Forum: Liberty BASIC Language
Topic: Serial com - RTS delay to switch ON/OFF transmitter
Replies: 6
Views: 43

Serial com - RTS delay to switch ON/OFF transmitter

"Claude Ai" helped me ;)

Code: Select all

lpFileName$ = "COM9"
comString$  = lpFileName$ + ": baud=9600 parity=n data=8 stop=1 odsr=off octs=off rts=off idsr=off"
And then:

Code: Select all

OPEN comString$ FOR random AS #ComHandle
by flotul
Fri Apr 17, 2026 7:13 pm
Forum: Liberty BASIC Language
Topic: Serial com - RTS delay to switch ON/OFF transmitter
Replies: 6
Views: 43

Serial com - RTS delay to switch ON/OFF transmitter

Would the correct syntax be something like:

Code: Select all

OPEN lpFileName$;": baud=9600 parity=n data=8 stop=1 odsr=off octs=off rts=off" FOR random AS #ComHandle
Unfortunately, it is not working for now.
by flotul
Fri Apr 17, 2026 5:11 am
Forum: Liberty BASIC Language
Topic: Serial com - RTS delay to switch ON/OFF transmitter
Replies: 6
Views: 43

Re: Serial com - RTS delay to switch ON/OFF transmitter

I found this information; unfortunately, I can't understand how to implement the change - in the case parameters are used, I don't see any ponctuation neither handle and so.

Image
by flotul
Thu Apr 16, 2026 9:04 pm
Forum: Liberty BASIC Language
Topic: Serial com - RTS delay to switch ON/OFF transmitter
Replies: 6
Views: 43

Serial com - RTS delay to switch ON/OFF transmitter

Here is a piece of code for testing. NOMAINWIN [INITIALISE] lpFileName$ = "Com5" dwCreationDistribution = _OPEN_EXISTING hTemplateFile = _NULL CALLDLL #kernel32, "CreateFileA", _ lpFileName$ AS ptr, _ dwDesiredAccess AS ulong, _ dwShareMode AS ulong, _ lpSecurityAttributes AS ulo...
by flotul
Wed Apr 15, 2026 10:52 am
Forum: Liberty BASIC Language
Topic: Serial com - RTS delay to switch ON/OFF transmitter
Replies: 6
Views: 43

Serial com - RTS delay to switch ON/OFF transmitter

Hi, To broadcast some data, I'm using simple serial transceivers. Its a one-way communication, from 1 transmitter to multiples receivers. There is no need for any kind of security - the projet is ultra basic (Kiss). In some cases, especially while testing or checking the system, I use a second trans...
by flotul
Wed Jun 04, 2025 9:12 pm
Forum: Debugger
Topic: "Missing , at line 0"
Replies: 1
Views: 22875

"Missing , at line 0"

Hi, How do I find my mistake in my code when the error message "Missing , at line 0" appears at program launch? Even if I go into my program step by step using the debugger, the error message will popup at a certain time but I don't see what is causing it to appear and stop the program fro...
by flotul
Sun Mar 02, 2025 10:07 am
Forum: Compiler
Topic: LB window not closing on program exit
Replies: 2
Views: 29494

Re: LB window not closing on program exit

Okay, if I first close the temp window, everything closes in one click....
by flotul
Sun Mar 02, 2025 9:21 am
Forum: Compiler
Topic: LB window not closing on program exit
Replies: 2
Views: 29494

LB window not closing on program exit

Hi Richard, I often use ConTEXT to edit my programs. Since I'm willing to stay compatible LB/LBB, I alternatively test my programs with both of them. https://i.postimg.cc/rmhHFG5J/small.jpg Unfortunately, when trying with LBB, I can not get the temp file window closed when exiting while using LB, bo...
by flotul
Thu Feb 13, 2025 8:40 am
Forum: Liberty BASIC Language
Topic: Reading metadata (id3 tag) of *.mp3 files
Replies: 6
Views: 20479

Re: Reading metadata (id3 tag) of *.mp3 files

Thanks a lot, who ever you are 👍 I didn't expect to face that kind of difficulty which is far over my basic knowledge. Maybe I have to make another approach of what I'm aiming to do: a listview of mp3 file, three columns: filename, genre and bpm and sort them. I'll have a look at the API but my inex...