Tagged: serialport
- This topic has 12 replies, 4 voices, and was last updated 3 years, 7 months ago by Droggelbecher.
-
AuthorPosts
-
1. December 2019 at 18:50 #7452sterumParticipant
Hello there,
My question is if the serial port in Magic DOSBox is working as in the “original” dosbox version.
I have a Program (Simatic Step5 if this is known by anyone) that connects to a PLC over the serial port COM1. I have a USB/Serial Adapter and the adapter is attached as /dev/ttyUSB0 on my ASUS Transformer TF300T Tablet.
In Expert Settings (dosbox.conf) i have enabled the serialport1 as followed:[serial] serial1=directserial realport:ttyUSB0
But now when running the program i can’t connect to the PLC.
When i run dosbox with the program on my FreeBSD machine i can connect to the PLC and all is working fine. On a Linux System there are also no problems, only Magic DOSBox version doesn’t work as it should.
The USB/Serial Adapter works well on my android tablet because i can connect my digital multimeter to it an i get output from it. And of course the permissions are set to 666 on /dev/ttyUSB0
So the question is, are there any differences between the original dosbox ant the dosbox version that is used in Magic DOSBox. Is the serial port function disabled in Magic DOSBox and can it then perhaps be enabled?
2. December 2019 at 15:00 #7454Al exKeymasterHi, and welcome! ?
Interesting use case you got there. Unfortunately, I can’t answer your question myself, but I’ll pass it on to Tony, the Magic Dosbox dev. Stay tuned!2. December 2019 at 15:13 #7455adminKeymasterHi,
no, noting was cut of serial port features. However, you are on arm, not on x86, who knows. Serial port was tested and worked with various apps. But you know, android is completely different system and each if it’s versions may work differently. For example, internet connection requires special internet permissions. They should be granted automatically on installation. Did you try paste whole desktop dosbox config in expert settings? Maybe there is something what mdosbox disables by default like pcspeaker
2. December 2019 at 23:08 #7456sterumParticipantI didn’t have tried with the desktop config but i will try tomorrow.
However is there a way to get some debug output from Magic DOSBox, like on the desktop when i start dosbox from the console?And yes, the usecase is a bit unusual 🙂
But it would be really cool when i can connect a android device to a 30 years old Siemens CPU.2. December 2019 at 23:50 #7457Al exKeymasterThere is an “Enable debug” option in Global settings, but I’m not sure if and where debug data is stored. But you can give it a try, and look in the .MagicBox or /Android/data/bruenor.magicbox folders.
Concerning old stuff on modern phones, this one here is also quite neat. ?
3. December 2019 at 16:06 #7458sterumParticipantSo, now i have tried with the dosbox config from the desktop but with no success. I have also tried to enable the svn version but with no success too.
Enabling the debug option gives me no output. I looked in .MagicBox in Android/data/bruenor.magicbox.free (yes, i’m using the free version for now) and also in /data/data/bruenor.magicbox.free including all subdirectorys. But i can’t find any debug relevant files.
Can someone explain what the debug option should do.3. December 2019 at 19:39 #7459adminKeymasterAnd which version do you use on desktop? Official 0.74, svn-3 or some other, modified? You are on windows?
3. December 2019 at 20:37 #7460sterumParticipantNo, i’m on FreeBSD. Im using the recent package from the FreeBSD ports collection, which uses the official dosbox-0.74.3.tar.gz.
3. December 2019 at 21:46 #7461adminKeymasterAnd is there way to try official 0.74 or svn-2. We are not on v3. Best is to use both
Btw what is the value of realport:ttyUSB0? On android I think are ports 2000 and below reserved. I am not sure how it will work if port falls in this range
Maybe you can try yet another dosbox port called ldosbox from store
4. December 2019 at 14:01 #7469adminKeymasterCan you please send me email?
5. December 2019 at 21:16 #7474sterumParticipantSorry for the late answer, but i had not much time the last few days.
I have compiled dosbox-0.74.tar.gz from source but when i run it i get a segfault, so i can not test this.
I also tried Idosbox but this app quits immediately after it starts, so i can’t test this too.And what do you mean with port number 2000? I thought port numbers are for IP communication.
10. December 2019 at 18:23 #7482sterumParticipantWhere can i get the sourcecode. I would like to look into it.
Is there a git repo available.21. May 2021 at 14:41 #8822DroggelbecherParticipantHello there!
Did anybody found a solution meanwhile? I have exactly the same problem as sterum right now.
I also got a TTY-USB-cable. The connection works perfectly via DosBox on the computer. However, it doesn´t work with the Magic DosBox on the Android phone. -
AuthorPosts
- You must be logged in to reply to this topic.