
ptp

DJ/Jeremie
EZB4 v2 (MXCHIP) UART 0 is not working please advise ?
Connection Information:
Wiring:
EZB4 v2
TX - Orange
RX - Yellow
GND - Green
SparkFun FTDI Basic Breakout - 3.3V
https://www.sparkfun.com/products/9873
EZ-Builder screen:
I can connect to EZB, but it crashes when i try to access the UART #0
SAME SETUP WITH EZB4 V1 (Blue Giga)
EZ-Builder / Desktop Communication App (Putty) OK:
Notes:
1) Is not clear but only 3 UART pins are connected (GND, RX, TX)
2) The problem is not the FTDI board, i tried two more with different chipsets.
3) IT's not working with 3 x EZB4 V2 (MxChip)
4) IT's working with 3 x EZB4 V1 (Blue Giga)
I believe what you're saying is the test works work the /1 but not the /2?
I use the uart #0 daily, more so in the last few months while we're finalizing development of the ezrobot lidar. I haven't experienced any issues. So let's start by getting a details of what's going on...
1) Can you expand on what your test entails regarding data, baudrate and project configuration? The ezb has an input buffer - which is defined in the datasheet and I can't remember the size offhand, but it is pretty big.
2) crashing? If ARC is crashing, what is the error?
3) telnet into the /2 and report the firmware version to me please
Offhand I can't think of a possible correlation between the uart and /1 and /2 wifi antennas.
Correct (I mentioned mxchip to point to a EZB /2)
The setup/test steps to reproduce the problem:
1) Connect FTDI board to then EZB UART #0 (GND, TX, RX) Picture
2) Connect FTDI board to USB port/USB cable/Desktop
3) Power on EZB (12 v power source)
4) EZB successful connects to the WIFI network (client mode) / green light
5) Start ARC
6) Successful connected to the EZB
7) Add Terminal EZB control to an empty/new project
EZB disconnects automatically.
debug window content:
Code:
8) Connect again (success), focus on the Terminal EZB and again:
Code:
Sometimes ARCs freezes for a few seconds before/after the error/disconnect
Run this separately in a script...
Code:
Drops Mic
Alan
DJ/Richard R, I'm away from my "batcave" so no EZB, I'll back soon to more tests.
DJ:
I want an office / Batcave with a view like that
More feedback...
Richard R Suggestion helped but long term does not fix the issue:
I added the initialization statement:
Then i added the Terminal EZB and i start sending and receiving some chars between Putty and ARC, it was working until i run a program to send random latin text to ARC @ 57600
after 2 seconds disconnected.
Error:
Code:
I tested again with EZB4 v1 and no issues, i flooded the EZB with 100K of serial data, then i opened ARC, successful connect (no prev uart init), i run the terminal, flood again @57600 bps and the serial content was visible in the terminal. Disconnect & Connect no issues so far.
The only difference is the top part (Wifi chip / firmware).
2) the terminal control is causing the experience, not ezscript uart commands
3) in the meantime you can write an ezscript to read the uart buffer and display it
The overflow is not intentional.
I have a second micro-controller sending/receiving data from EZB.
Both are switched on at same time, the second micro-controller starts sending information (telemetry) to the EZB.
The overflow will occur between opening ARC or a custom Application , connect and start polling the UART buffer.
This can be fixed if i send a serial command to start before sending the information.
BUT if the ARC/Custom App gets disconnected before sending a stop command the problem is the same (flood).
I noticed similar disconnects when using the SDK UART method.
To avoid FUD... I minimized the scenario to a simple FTDI + EZB + EZ Terminal + Putty.
I replaced the /2 with /1 and I'm immune to random disconnects.
It's a specific setup and so far no one complain, you found the problem although from a rational point of view i would love to understand why /1 is working.
you have a lot on your plate, so let's move on (close the thread).
Regarding the Lidar solution can be used with the IPS ?
or the Lidar will replace the IPS ?
which one will be released first ?