Skip to main content
sumit kale
Associate III
December 6, 2016
Question

Is it possible to develop Packet analyzer or Network tap using STM32F2xxx?? Application is analysis of serial data. Suggestions

  • December 6, 2016
  • 11 replies
  • 4951 views
Posted on December 06, 2016 at 10:29

I want to analyze the Serial data (UART) through STM32F2 series board (Nucleo 144). How one can develop Network Tap or Packet analyzer using Nucleo 144 Board. Any rough idea is most welcomed. Thanks in advance

#stm32f207zgt6
This topic has been closed for replies.

11 replies

AVI-crak
Senior
December 6, 2016
Posted on December 06, 2016 at 14:20

The flow parameters are known? - Use UART.

The unknown parameters of the flow - use a timer.

Analysis for flow control commands and data.

First, you need to accumulate a base character fused data (separated by zero) and so as to fix the amount of data after the command word. The second option: the control word - variable length data -Individual -Team word. By repeating the conditions - be considered a successful design, and used for analysis.

On the fat stream much memory you need, about 128-512mbit.

�?ŸÑ€�?¾�?µ�?ºÑ‚ �?½�?µ тр�?µ�?±Ñƒ�?µÑ‚ �?±�?¾�?»ÑŒÑˆ�?¾�?³�?¾ �?º�?¾�?»�?¸Ñ‡�?µÑ�Ñ‚�?²�?° �?º�?¾�?´�?°, �?¼�?¾�?¶�?½�?¾ �?½�?°�?¿�?¸Ñ��?°Ñ‚ÑŒ �?·�?° �?²�?µÑ‡�?µÑ€. �?˜�?»�?¸ �?½�?°�?¹Ñ‚�?¸ �?³�?° �?³�?¸Ñ‚�?µ.

ST Renegade
Associate
December 6, 2016
Posted on December 06, 2016 at 15:06

Hey there,

just to add. In the next step you would need to transfer the acquired data/frames etc. into the PC. For this you can use Ethernet (not sure it's present on F2) or USB. The protocol can be user defined, not sure there is a suitable USB class for this.

Have a nice day,

Renegade

Tesla DeLorean
Guru
December 6, 2016
Posted on December 06, 2016 at 16:50

One can certainly connect an USART RX pin and monitor traffic on the wire non-invasively.

The bigger question is how you plan to analyze the data, and where you are going to output or store the analysis? I'd expect the analysis output to be much more verbose than the data being monitored, but you should perhaps explain more completely the system expectations.

The Nucleo-64/144 don't have a MicroSD socket, or a screen, there are Disco boards that do. For serial data logging applications I like the GHI FEZ Lemur boards (Arduino shield connector), or cheap VCCGND/TAOBAO

http://www.ebay.com/itm/STM32F407VET6-Mini-version-of-the-core-board-STM32-minimum-system-version-/291791335845

.
Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
sumit kale
Associate III
December 7, 2016
Posted on December 07, 2016 at 10:53

Hello,

Thank you for Reply.

Currently i am planning to Output the Analysis on PC (Not fixed yet but may be using Ethernet connectivity of Board can be Option). I want to Monitor the data going from bus (Most imp is address of the communication devices) & if a device Fails or an error occurs track a device which is failed (Mostly for Troubelshooting). I have to develop a System from raw idea so ist open (Provided that at the end i can get all info on pc Esp. Address of the devices). You can suggest if anything more feasible in design or idea.

ST Renegade
Associate
December 7, 2016
Posted on December 07, 2016 at 13:08

I was doing something similar. A SENT analyzer, so I had to use a timer to acquire data on the bus and transfer it to PC. Unfortunately the project was stopped for now, but I was able to prepare a demo to Tx/Rx SENT frames + I created a WinUSB driver on STM32 so it can communicate as a CDC class.

Good luck with your development!

Renegade