For a project I need to make communicate in a CANBus network, ethernet network and with RS-232. I want to use one single MCU that will act as the main unit of CANBus start topology, Ethernet start topology and that MCU also will be transfering the RS232 data that comes to it to another device. Now I want to use high speed CAN which can be up to 1 Mbits per second. However,RS-232 is max 20 k baud. I wonder if it is doable with 1 MCU to handle 3 different communications ( CANBus, ethernet and RS-232). I am afraid of to get overrun with data at some point. I can buffer data short term if data comes in bursts that can be averaged out. For continuous data where I'll never be able to keep up, I'll need to discard messages, perhaps in a managed way. But I do not want to discard any data. So my question is: Would using 1 MCU for this case work? And are there any software tricks that would help me with this case? (Like giving CANBus a higher priority etc.)
Using 3 different communication protocols in the same MCU
136 Views Asked by Raxian At
1
There are 1 best solutions below
Related Questions in SERIAL-PORT
- Nonin Oximeter 3231
- How would I go about filtering non-standardly formatted serial data which contains some junk binary between data entries?
- SerialPort timeouts in ReadChar() method, WPF, "The operation has timed out."
- Rust tokio_serial: async fn readable does not block execution. Runs with 100% CPU load
- Why is there a large ploting delay/lag in my real-time serial port ploting app after more than 10000 datapoints reading?
- I get "DevTools was disconnected from the page" error when connecting Arduino to the computer and switching between tabs
- RS422 communication using PySerial (Raspberry PI)
- Python script becomes unresponsive at 100% CPU usage (single core)
- Redirecting stdin and stdout to the same device in shell
- C# System.IO.Ports throws System.IO.Ports is currently only supported on Windows, but i'm currently using windows
- C# COM Port slowing down to read one byte a second after sending message
- What are the differences between a windows serial port and a macos serial port using NodeJS?
- How to increase baudrate on Device Manager Windows?
- Nextion with Arduino change text
- no console after using :wq in vim
Related Questions in ETHERNET
- How to use WiFi and Ethernet at same time?
- What is the correct way to setup and use the Ethernet library in Arduino in order to send and receive UDP broadcast messages between LAN devices?
- Arduino IDE: The IP address was not printing in serial monitor
- I don't know where to start with ethernet communication with Automation Direct P1AM-200 ETH module communication
- How do I know when the dsa_loop and dsa_loop_bdinfo linux kernel modules are working?
- How can I upload data from Arduino uno ethernet shield to mongodb Atlas
- Access flask server hosted on Raspberry Pi on Android phone connected via ethernet
- Python code for read/write binary file and convert it to .pcap
- Should my PC recognize my Arty A7-100T FPGA?
- How to get to send the current network's server using nodejs
- How can I get a Python socket object to read a continuous stream of raw TCP/IP data over ethernet connection?
- Need CAPL script to find fin or RST messages over TCP connection - DOIP
- Socket implementation with micropython and WIZNET5500
- UDSonIP vehicle announcement
- Packet Sniffing on Mirrored Port - Missing Packets when UDP Message > 50kb (Python, Scapy)
Related Questions in CAN-BUS
- Automotive: Can we design a secured PDU which is beyond 8 bytes and send it using CAN TP?
- I am trying to write bare metal programming for STM32F407, How to configure registers the steps to initialize the CAN1 to transmit the message
- STM32F103 & TJA1050 CAN Read 500kpbs
- Receive UDS message use peak can. python
- QtSerialBus virtualcan connect using socket and python
- Multiprocessing/ Threading / asyncio for PyQt6 and python-can
- ESP32 Cant receive any message in CAN bus line with any different device
- Can I analyze XCP Variables using my CANalyzer Version 10
- How can I read from a serial port in Android app?
- Can STM32 Blue Pill work with JTA 1050 CAN Transceiver?
- CANbus formula for BRP, Stage1, and stage1
- Problem when creating arduino library with dependencies
- CAN bus HW testing (STM32MP157CAA)
- Canbus communication with Teensy 4.0
- Canopen SdoCommunicationError when trying to read RPDO config
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Yes, this can be done with a single MCU. Even a simple MCU should easily be able to handle data rates of 1 Mbps. Most likely you want to use DMA enabled transfer so the CPU core will only need to act when the transmission of a chunk of data has completed.
The problem of being overrun by data due to the mismatch in data rate is a separate topic:
So if the worst case you want to handle is 10s of incoming data at 1 Mbps (with an outgoing rate of 20kbps), then you will need 10s x (1Mbps - 20kps) = 9.8 Mbit = 1.225 MByte of buffer memory.