Search found 40 matches

by KenHorse
Oct 26, 2018 15:27
Forum: Hardware Interfaces / Communication
Topic: Delay under Windows 10?
Replies: 5
Views: 1569

Re: Delay under Windows 10?

Well... that did it (I would have never considered that, thanks for the tip!)

I simply excluded my xampp directory from scanning by F-Secure and voila!
by KenHorse
Oct 25, 2018 23:51
Forum: Hardware Interfaces / Communication
Topic: Delay under Windows 10?
Replies: 5
Views: 1569

Re: Delay under Windows 10?

Ahhh.... F-secure

Try disabling it is where you're headed I presume
by KenHorse
Oct 24, 2018 23:49
Forum: Hardware Interfaces / Communication
Topic: Delay under Windows 10?
Replies: 5
Views: 1569

Delay under Windows 10?

Consider the following code (yea I know...) Print "Hello World" Run under Win 10 (64 Home Edition, all the latest updates) Running the compiled file from command line is very slow. It takes approx 500 ms for "Hello World" to appear and another 500 ms to be returned to the command...
by KenHorse
Aug 13, 2017 16:46
Forum: Linux
Topic: Serial Port usage Linux versus Win
Replies: 13
Views: 1262

Re: Serial Port usage Linux versus Win

Where can I report this apparent bug? see http://freebasic.net/wiki/wikka.php?wakka=CompilerReportingBugs I you don't have a sourceforge account and do not want to create one, but already have a github account you can also submit an issue here: https://github.com/freebasic/fbc/issues (the primary b...
by KenHorse
Aug 13, 2017 16:15
Forum: Linux
Topic: Serial Port usage Linux versus Win
Replies: 13
Views: 1262

Re: Serial Port usage Linux versus Win

Actually no. It is hit or miss if the baud rate is correctly set at all (at least for me). For instance, if I set the baud rate manually via stty, Freebasic may or may not change it on the try. So it works occasionally? Or are those just the cases where the baud rate already was configured to the a...
by KenHorse
Aug 13, 2017 15:46
Forum: Linux
Topic: Serial Port usage Linux versus Win
Replies: 13
Views: 1262

Re: Serial Port usage Linux versus Win

No, it means for one reason or another, FreeBasic does not properly set the baud rate of the comport under Linux (well, my particular version of Linux at least) And only when opening the same port for the second time, if I understood that correctly? Probably a bug report with a description and a sh...
by KenHorse
Aug 13, 2017 15:38
Forum: Linux
Topic: Serial Port usage Linux versus Win
Replies: 13
Views: 1262

Re: Serial Port usage Linux versus Win

I do not know anything about serial ports or Linux, but in the documentation on "OPEN COM" , there is written about the differences between platforms: Platform Differences: ⋅ On the Windows platform "COM:" maps to "COM1:" ⋅ On the Linux platform &qu...
by KenHorse
Aug 12, 2017 19:56
Forum: Linux
Topic: Serial Port usage Linux versus Win
Replies: 13
Views: 1262

Re: Serial Port usage Linux versus Win

Well, here's the fix (in my case at least) After each Open command, I call stty to set the baud rate: Open Com Command(1) + ":9600,n,8,1,CS0,DS0,CD0,RS" For Binary As #2 shell "stty -F /dev/ttyS0 9600" Close #2 Open Com Command(1) + ":57600,n,8,1,CS0,DS0,CD0,RS" For Bin...
by KenHorse
Aug 12, 2017 19:42
Forum: Linux
Topic: Serial Port usage Linux versus Win
Replies: 13
Views: 1262

Re: Serial Port usage Linux versus Win

It appears that FB is not properly setting up the comports under Linux (at least the version I'm running).

As I mentioned in my earlier post, it is obvious that FB is not properly configuring ttyS0's baud rate. In fact, once it is set to a baud rate (via stty), FB doesn't change that no matter what.
by KenHorse
Aug 12, 2017 18:50
Forum: Linux
Topic: Serial Port usage Linux versus Win
Replies: 13
Views: 1262

Re: Serial Port usage Linux versus Win

I just made the change you suggested and still no go
by KenHorse
Aug 12, 2017 17:57
Forum: Linux
Topic: Serial Port usage Linux versus Win
Replies: 13
Views: 1262

Serial Port usage Linux versus Win

I have a program that works perfectly when compiled and run under Win10 but no so much when compiled and ran under Linux (specifically Debian 3.16.0-4-amd64). First of all, I'm running the program as root so /dev/ttyS0 permissions isn't the issue. My program first opens the port at 9600 baud in orde...
by KenHorse
Aug 05, 2017 0:44
Forum: Beginners
Topic: Arrays
Replies: 17
Views: 1455

Re: Arrays

Thanks for the input. Yes I see my mistake by not defining Buf() as a UByte What I'm trying to do is send a binary file to an embedded device that uses XMODEM for its transfer protocol (yes I know that's antiquated but it's a legacy device and I'm stuck with it) I read the file in 128 byte groups, l...
by KenHorse
Aug 04, 2017 14:51
Forum: Beginners
Topic: Passing data between executable and calling program?
Replies: 5
Views: 573

Re: Passing data between executable and calling program?

However, your reason to not use PHP for this doesn't really make any sense. PHP being an interpreted language shouldn't have consequences for serial port access in practice at all (and btw there are even JIT compilers for PHP). There are even existing implementations, like this one: https://github....
by KenHorse
Aug 03, 2017 2:54
Forum: Beginners
Topic: Arrays
Replies: 17
Views: 1455

Re: Arrays

Thanks for the comments. I was hoping to simplify the code a bit but your ideas will work (of course)

One more question but I'll start a new thread about it

Go to advanced search