
BAADF00D = cauliflower

DEADBEEF <> BAADF00D !
I was trying to have Q-emuLator attach to my laptops COM port. I have a USB to serial device and have my Simulant WiFi modem hooked up to that (COM1 with 8N1 at 2400 baud). If I use a simple Windows terminal program, I can access my Simulant WiFi modem just fine. But with a terminal program within Q-emuLator, it seems to either give part garbage (i.e. it recognizes some letters but not others, so when I type AT it it echos back AD) or occasionally, if I hit enter a bunch of times I start seeing AT and OK and also the Simulant menu saying it connected to my local WiFi. So it seems to be out of sync (buffering?). Curious if there is some specific setting I need to configure the COM port to before attaching Q-emuLator to it.M68008 wrote: Wed Aug 13, 2025 11:39 pm No, had to try it![]()
Reminds me of the 0xbaadf00d value sometimes used in old (32 bit!) projects for uninitialized pointers.
What serial adapter do you have? From memory, there is no buffering in Q-emuLator serial driver, but it could be somewhere else (e.g. if you use INPUT instead of INKEY$(0), it will wait for the line feed character).bwinkel67 wrote: Thu Aug 14, 2025 1:17 pm I was trying to have Q-emuLator attach to my laptops COM port. I have a USB to serial device and have my Simulant WiFi modem hooked up to that (COM1 with 8N1 at 2400 baud). If I use a simple Windows terminal program, I can access my Simulant WiFi modem just fine. But with a terminal program within Q-emuLator, it seems to either give part garbage (i.e. it recognizes some letters but not others, so when I type AT it it echos back AD) or occasionally, if I hit enter a bunch of times I start seeing AT and OK and also the Simulant menu saying it connected to my local WiFi. So it seems to be out of sync (buffering?). Curious if there is some specific setting I need to configure the COM port to before attaching Q-emuLator to it.
So I got it to work, sort of. Basically, even with hardware flow control it loses characters. If you set it to 300 bauds it works pretty well. That should be fine for testing purposes.M68008 wrote: Thu Aug 14, 2025 7:55 pm What serial adapter do you have? From memory, there is no buffering in Q-emuLator serial driver, but it could be somewhere else (e.g. if you use INPUT instead of INKEY$(0), it will wait for the line feed character).
I wonder if the corruption is on transmission or reception.
Does it have an option to use the software settings (through the standard COM calls) instead of overriding them?bwinkel67 wrote: Fri Aug 15, 2025 9:50 am Below are the settings of my generic USB-2-Serial converter. The key seems to be setting the buffer to 1 byte. If I have at at 2 or bigger, it starts substituting characters, i.e. at 1 byte if I type "a" and "t" it accepts it as "at", but at 2 bytes or higher if I type "a" and "t" it sees it as "ad" -- and many other characters are substituted as well, like for "ate1" it sees "adeA" so it gets some characters correct and some wrong.
Yup, it does change settings with software commands on the QL side. For instance, I can set the BAUD rate on both the modem (via atb300) and then the baud rate of the port via a software call to match up. The configuration on the COM port is only the initial setting.M68008 wrote: Fri Aug 15, 2025 6:12 pm Does it have an option to use the software settings (through the standard COM calls) instead of overriding them?
EDIT: never mind, I found many drivers have similar UI. They should still respond to software changes (e.g. BAUD command on QL side), although I've seen some of them not liking those calls.