MatVo1992 / Simulink-XInput-Controller

Simulink Block / S-Function for Windows XInput API (XBOX Controller)
GNU General Public License v3.0
7 stars 1 forks source link

AX88772 Simulink Real-time #2

Open omiksave opened 4 years ago

omiksave commented 4 years ago

I am building a PC/104 based target computer that runs on DOS. I am looking to establish communication between target Pc and development Pc via TCP/IP. Given the constraints of supported drivers by Simulink, I am choosing ASIX AX88772 based USB to Ethernet adapter. My problem is I am not able to install suitable driver on the target computer that runs DOS.

Since you have successfully used AX88772 in the past with Simulink real time, I have questions about your target PC. Did it run on DOS?

How did you install drivers for AX88772 on your target hardware?

If I boot XP/98 on target hardware and install drivers can I still Network boot Simulink tea time?

MatVo1992 commented 4 years ago

Hi,

you might have a misconception about Simulink Real-Time. It is a stand alone Operating System, thus you dont need DOS (Microsoft Disk Operating System), Win XP or Win 98. You can install Simulink Real-Time with Simulink Real-Time Explorer. (run 'slrtexplr' in your Matlab command line) https://de.mathworks.com/help/xpc/api/slrtexplr.html

There are different ways to install Simulink Real-Time. You can use an USB-Stick as boot drive. We use compact flash drive as boot drives. You also can use Network Boot (to use Network boot, you need to setup you target machines BIOS). All the configurations are done in slrteplr. With the installation (only about 100MB) come all drivers, including USB and etehrnet. Your Simulnk Models are distributed to the target via Ethernet when the machine is running.

I was able to install Simulink Real-Time R2017b with the AX88772 USB-Ethernet adapter. The following versions are not officially supporting custom hardware (you are encouraged to buy Speedgoat computers). I was still able to run R2019b Real-Time Systems with different Intel PCI Ethernet Cards, but not AX88772. The driver was probably removed.

If you are determined to use the USB-Ethernet Controller, you will need Matlab/Simulink R2017b (or earlier) Tip: you can switch documentation to "other releases" on the main documentation page (https://de.mathworks.com/help/index.html) in the top left corner. The R2017b documentation has more info on how to install on custom hardware.

omiksave commented 4 years ago

Thank you for this reply,

Here’s another question I have. How do I find the IP address, MAC address and port number of the target machine without any OS running on it?

Regards, Omik M Save

On Jan 28, 2020, at 3:09 PM, MatVo1992 notifications@github.com wrote:

 Hi,

you might have a misconception about Simulink Real-Time. It is a stand alone Operating System, thus you dont need DOS (Microsoft Disk Operating System), Win XP or Win 98. You can install Simulink Real-Time with Simulink Real-Time Explorer. (run 'slrtexplr' in your Matlab command line) https://de.mathworks.com/help/xpc/api/slrtexplr.html

There are different ways to install Simulink Real-Time. You can use an USB-Stick as boot drive. We use compact flash drive as boot drives. You also can use Network Boot (to use Network boot, you need to setup you target machines BIOS). All the configurations are done in slrteplr. With the installation (only about 100MB) come all drivers, including USB and etehrnet. Your Simulnk Models are distributed to the target via Ethernet when the machine is running.

I was able to install Simulink Real-Time R2017b with the AX88772 USB-Ethernet adapter. The following versions are not officially supporting custom hardware (you are encouraged to buy Speedgoat computers). I was still able to run R2019b Real-Time Systems with different Intel PCI Ethernet Cards, but not AX88772. The driver was probably removed.

If you are determined to use the USB-Ethernet Controller, you will need Matlab/Simulink R2017b (or earlier) Tip: you can switch documentation to "other releases" on the main documentation page (https://de.mathworks.com/help/index.html) in the top left corner. The R2017b documentation has more info on how to install on custom hardware.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

MatVo1992 commented 4 years ago

Hi Omik,

you need to assign an IP Adress and Port in Simulink Real-Time Explorer. Just chose a known free IP Adress and stay with the default Port. You dont need to deal with MAC adrass as far as i know. These settings will be aplied with installation of Simulink Real-Time, when you 'create boot disk' on your USB Stick for example. These settings will also be saved on your development PC. Once you boot up your target system, you can connect your development and target computers, since the connection settings are known to both.

If you have a display connected to your Real-Time computer, you can see if the network connection is established on the default screen. Since you are using USB-Ethernet its maybe better to disable all other Ethernet devices in the BIOS of your motherboard.

One more thing: The fundamental principle of Simulink Real-Time ist the permanent Link between development and target PC via Network, to control the Real-Time machine, load and execute models and get the results back. The first Ethernet Connection of the Real-Time Computer will be blocked for this reason. If you want to use any Ethernet functions (send and receive data while running) in your Simulink Model/Application you might need a second Ethernet-Interface.

Regards, Mathias

omiksave commented 4 years ago

Hey Mathias,

Thanks for your assistance. I figured out a solution. It works well. Thank you once again.

Regards, Omik M Save

On Jan 29, 2020, at 5:18 AM, MatVo1992 notifications@github.com wrote:

 Hi Omik,

you need to assign an IP Adress and Port in Simulink Real-Time Explorer. Just chose a known free IP Adress and stay with the default Port. You dont need to deal with MAC adrass as far as i know. These settings will be aplied with installation of Simulink Real-Time, when you 'create boot disk' on your USB Stick for example. These settings will also be saved on your development PC. Once you boot up your target system, you can connect your development and target computers, since the connection settings are known to both.

If you have a display connected to your Real-Time computer, you can see if the network connection is established on the default screen. Since you are using USB-Ethernet its maybe better to disable all other Ethernet devices in the BIOS of your motherboard.

One more thing: The fundamental principle of Simulink Real-Time ist the permanent Link between development and target PC via Network, to control the Real-Time machine, load and execute models and get the results back. The first Ethernet Connection of the Real-Time Computer will be blocked for this reason. If you want to use any Ethernet functions (send and receive data while running) in your Simulink Model/Application you might need a second Ethernet-Interface.

Regards, Mathias

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.