Wednesday, 27 April 2016

Saleae Logic Analyzer - analyze Manchester code (decode Manchester)



Hi,

This post I gonna show you how to decode and visualize 10 Mb/s ethernet by Saleae Logic Analyzer. I have simple and very chip module analyzer. But for test and for fun its enought. I was seeking materials about how to decode manchester by this tool but nothing I recieve. Therefore I had to do something. OK Les't go with it.
Because many people need to see and do something to understand therfore I tried to add and share necessary materials for you.
First of all this is what I need to have:

UTP Cat5e 100Mbps cable and Saleae Login Analyzer 24MHz 16 channels.
UTP is important because if you have STP cable It will be quite difficoult to slit cable.
Next we have to choose channel number (I choose channen 0). All channels are connected with colours. For example channel 0 its yellow. Its important to connect GND wire also. In this example one cable yellow is connected to Green/White wire and second is connected to Green wire. Obviously I can connect both pairs but for test I choose only 1 pair (G/W, G). My G/W and G wires are on 3 and 6 position so there are responsible for receive datas from my side.
Here below is ready setup:
  

If we have phisical environment ready we can go further. We have to modify our settings.
First you must change your NIC speed for 10Mbps. Menchester is using this speed normally:




 Next open Saleae Software. My version is Logic 1.2.7 (beta)
 Before you press "START" change logic setup. First change is how many Mega Sample per second you want to probe and how long time you need to catch it.

 
 

 Now you can start sample. One important thing. Do not add any prococols before you sample.
OK. We have some data. Show in this figure below (Use your mouse scoll to zoom in your data):

Now we must add protocol for decode so I found Manchester and I set my parameters and click Save:


And I recieve decoded data by HEX but you can also choose decode by Binary. It is not professional tool which show you all decoded ethernet frames with many groups like "preamble" or "CRC" field but for amateurs usage is good and enought I think.


This is the end of this project. I hope that this post can be helpful.
 

Network programming - Client and Server communication C#

Hi dear Guest!
This year I started playing with C#. I'm interested in networking therefore I was wondering how to connect my currently knowledge with programming. So I decided that I need to find programming language - must be flexible, quite simple and must be type RAD. I choose Visual Studio Express 2010 (free edition) with C#.
I have some experience with programming because previously sometimes I had to write some scripts and small program during my study and during my daily routine.
OK. Something about my project.
It is very simple idea. I need client applcation where I can choose host for connection (eg. localhost, remote host), must have progress bar during sending data. I must send different values from 1 to 100.
All messages must be visable. Can close connection. All data should be visable on the server side especially should be visable on the screen of Arduino.
In this figure I show you scenario:


In this fugure I show you how to looks both interfaces:


All messages will be visable on listBox1, all errors also. Checkbox localhost allows you test locally.
Turbo loader generates numbers in loop and sending to Arduino LCD.  Progress bar it is only feature.
Server has simple interface. I share my all solution (client & server) ASAP. Because in this blogger I can add only videos, images, and links no other files. I must find solution how to add my  all files.
Be patient. And I invite you to comment.

Klient: Client
Server: Server




Friday, 22 April 2016

Two project will be released next week

Hi,

Next week I want to release and describe my 2 projects.
This two project are connected with network communication.

Firs project is made of Arduino Due, LCD Display, Serial connection USB, C# network applications.
Generally I've wrote 2 programs in C#. It's client & server.

Server listening on PC which is connected with Arduino with display LCD sheeld. Between PC and arduino I using USB connectio (by COM).
Client has been done for sending data which should be display (visable) on Adruino LCD. There therefore Client should be connect by the network to server and send data. This is shor about first project.

Second project is about decode Manchester code which is used in 10BaseT Ethernet standard.
In this project I've used Saleae Logic Analyzer 24MHz with 8 channels. I've establish connection between switch and PC via ethernet cable CAT5e. Network device will be configured at 10Mb/s band. All communication will catched by Saleae Logic Analyzer and decoded by it. Manchester protocol is embeded in Saleae Sofware. Sound's good.


So, see you soon!

Contact with me

Name

Email *

Message *