Skip to content

Logic Analyzer Says: I dunno

February 8, 2015

I ran the simple server example with a logic analyzer trace and it looks fine. I see the olduino polling the status register. When it changes from 14 to 17 it checks the dead data size to make sure there was data. It retrieves the write data pointer and writes the ougoing stream to the correct spot. when it’s done it updates the buffer address and issues a ‘send’ command. it checks that the send is done then closes the socket and goes back to polling.

I would do the equivalent on the arduino but it means installing a current version of arduino software which i’m not keen on doing on this machine. I may be back home in the next few days and i’ll look at it there.

Time [s]	Packet ID	MOSI	MISO											
8.686319833	192	'0' (0x00)	'1' (0x01)		0	3	8	2						
8.686335833	192	'3' (0x03)	'2' (0x02)		s0	status	read							
8.686527167	192	'8' (0x08)	'3' (0x03)											
8.686730667	192	'2' (0x02)	'20' (0x14)					14	waiting					
8.731481583	193	'0' (0x00)	'1' (0x01)											
8.731497417	193	'3' (0x03)	'2' (0x02)											
8.731688917	193	'8' (0x08)	'3' (0x03)											
8.731892417	193	'2' (0x02)	'23' (0x17)					17	established					
8.733350333	194	'0' (0x00)	'1' (0x01)		0	26	8	2	1					
8.733366333	194	& (0x26)	'2' (0x02)		s0	rsize	read							
8.733557667	194	'8' (0x08)	'3' (0x03)											
8.733761167	194	'2' (0x02)	'1' (0x01)					1						
8.733781083	194	'1' (0x01)	[ (0x5B)					5b	347	data size				
8.735280833	195	'0' (0x00)	'1' (0x01)		0	20	8	2	8					
8.735296833	195	' ' (0x20)	'2' (0x02)			txfree?								
8.735488333	195	'8' (0x08)	'3' (0x03)											
8.73569175	195	'2' (0x02)	'8' (0x08)					8						
8.735711667	195	'8' (0x08)	'0' (0x00)					0	2048	free tx buffer				
8.736796667	196	'0' (0x00)	'1' (0x01)		0	24	8	2						
8.736812667	196	$ (0x24)	'2' (0x02)			write pointer								
8.737004167	196	'8' (0x08)	'3' (0x03)											
8.7372075	196	'2' (0x02)	'199' (0xC7)					c7						
8.737227417	196	'199' (0xC7)	'236' (0xEC)					ed						
														
8.738065167	197	'199' (0xC7)	'1' (0x01)		c7	ec	14	48		.				
8.738081	197	'236' (0xEC)	'2' (0x02)				write tx							
8.7382725	197	'20' (0x14)	'3' (0x03)											
8.738472	197	H (0x48)	'0' (0x00)					H		text begins line 29				
8.738488	197	T (0x54)	'0' (0x00)					T						
8.738503833	197	T (0x54)	'0' (0x00)					T						
8.738519833	197	P (0x50)	'0' (0x00)					P						
8.738535917	197	/ (0x2F)	'0' (0x00)											
8.73855175	197	1 (0x31)	'0' (0x00)					1						
8.73856775	197	. (0x2E)	'0' (0x00)					.						
8.738583583	197	0 (0x30)	'0' (0x00)					0						
8.738599667	197	' ' (0x20)	'0' (0x00)											
8.738615667	197	2 (0x32)	'0' (0x00)					2						
8.7386315	197	0 (0x30)	'0' (0x00)					0						
8.7386475	197	0 (0x30)	'0' (0x00)					0						
8.7386635	197	' ' (0x20)	'0' (0x00)											
8.738679417	197	O (0x4F)	'0' (0x00)					O						
8.738695417	197	K (0x4B)	'0' (0x00)					K						
8.73871125	197	\r (0x0D)	'0' (0x00)											
8.73872725	197	\n (0x0A)	'0' (0x00)											
8.73874325	197	C (0x43)	'0' (0x00)					C						
8.738759167	197	o (0x6F)	'0' (0x00)					o						
8.738775167	197	n (0x6E)	'0' (0x00)					n						
8.738791167	197	t (0x74)	'0' (0x00)					t						
8.738807	197	e (0x65)	'0' (0x00)					e						
8.738823083	197	n (0x6E)	'0' (0x00)					n						
8.738838917	197	t (0x74)	'0' (0x00)					t						
8.738854917	197	- (0x2D)	'0' (0x00)											
8.738870917	197	T (0x54)	'0' (0x00)					T						
8.738886833	197	y (0x79)	'0' (0x00)					y						
8.738902833	197	p (0x70)	'0' (0x00)					p						
8.738918667	197	e (0x65)	'0' (0x00)					e						
8.738934667	197	: (0x3A)	'0' (0x00)											
8.738950667	197	' ' (0x20)	'0' (0x00)											
8.738966583	197	t (0x74)	'0' (0x00)					t						
8.738982583	197	e (0x65)	'0' (0x00)					e						
8.738998583	197	x (0x78)	'0' (0x00)					x						
8.739014417	197	t (0x74)	'0' (0x00)					t						
8.7390305	197	/ (0x2F)	'0' (0x00)											
8.739046333	197	h (0x68)	'0' (0x00)					h						
8.739062333	197	t (0x74)	'0' (0x00)					t						
8.739078333	197	m (0x6D)	'0' (0x00)					m						
8.73909425	197	l (0x6C)	'0' (0x00)					l						
8.73911025	197	\r (0x0D)	'0' (0x00)											
8.73912625	197	\n (0x0A)	'0' (0x00)											
8.739142083	197	\r (0x0D)	'0' (0x00)											
8.739158083	197	\n (0x0A)	'0' (0x00)											
8.739174	197	< (0x3C)	'0' (0x00)					 (0x3E)	'0' (0x00)											
8.73926975	197	 (0x3E)	'0' (0x00)											
8.739716583	197	\r (0x0D)	'0' (0x00)											
8.739732417	197	\n (0x0A)	'0' (0x00)											
8.7397485	197	 (0x3E)	'0' (0x00)											
8.739876083	197	 (0x3E)	'0' (0x00)											
8.739939833	197	S (0x53)	'0' (0x00)											
8.739955917	197	i (0x69)	'0' (0x00)											
8.73997175	197	m (0x6D)	'0' (0x00)											
8.73998775	197	p (0x70)	'0' (0x00)											
8.74000375	197	l (0x6C)	'0' (0x00)											
8.740019667	197	e (0x65)	'0' (0x00)											
8.740035667	197	s (0x73)	'0' (0x00)											
8.740051667	197	t (0x74)	'0' (0x00)											
8.7400675	197	' ' (0x20)	'0' (0x00)											
8.7400835	197	S (0x53)	'0' (0x00)											
8.740099417	197	e (0x65)	'0' (0x00)											
8.740115417	197	r (0x72)	'0' (0x00)											
8.740131417	197	v (0x76)	'0' (0x00)											
8.74014725	197	e (0x65)	'0' (0x00)											
8.740163333	197	r (0x72)	'0' (0x00)											
8.740179333	197	' ' (0x20)	'0' (0x00)											
8.740195167	197	o (0x6F)	'0' (0x00)											
8.740211167	197	n (0x6E)	'0' (0x00)											
8.740227	197	' ' (0x20)	'0' (0x00)											
8.740243083	197	W (0x57)	'0' (0x00)											
8.740259083	197	i (0x69)	'0' (0x00)											
8.740274917	197	z (0x7A)	'0' (0x00)											
8.740290917	197	n (0x6E)	'0' (0x00)											
8.740306833	197	e (0x65)	'0' (0x00)											
8.740322833	197	t (0x74)	'0' (0x00)											
8.740338833	197	' ' (0x20)	'0' (0x00)											
8.740354667	197	W (0x57)	'0' (0x00)											
8.740370667	197	5 (0x35)	'0' (0x00)											
8.74038675	197	5 (0x35)	'0' (0x00)											
8.740402583	197	0 (0x30)	'0' (0x00)											
8.740418583	197	0 (0x30)	'0' (0x00)											
8.740434417	197	 (0x3E)	'0' (0x00)											
8.740498333	197	( (0x28)	'0' (0x00)											
8.740514333	197	H (0x48)	'0' (0x00)											
8.74053025	197	e (0x65)	'0' (0x00)											
8.74054625	197	l (0x6C)	'0' (0x00)											
8.740562083	197	l (0x6C)	'0' (0x00)											
8.740578083	197	o (0x6F)	'0' (0x00)											
8.740594167	197	' ' (0x20)	'0' (0x00)											
8.74061	197	W (0x57)	'0' (0x00)											
8.740626	197	o (0x6F)	'0' (0x00)											
8.740641833	197	r (0x72)	'0' (0x00)											
8.740657917	197	l (0x6C)	'0' (0x00)											
8.740673917	197	d (0x64)	'0' (0x00)											
8.74068975	197	! (0x21)	'0' (0x00)											
8.74070575	197	) (0x29)	'0' (0x00)											
8.74072175	197	 (0x3E)	'0' (0x00)											
8.7408015	197	< (0x3C)	'0' (0x00)											
8.740817417	197	/ (0x2F)	'0' (0x00)											
8.740833417	197	c (0x63)	'0' (0x00)											
8.740849417	197	e (0x65)	'0' (0x00)											
8.74086525	197	n (0x6E)	'0' (0x00)											
8.740881333	197	t (0x74)	'0' (0x00)											
8.740897167	197	e (0x65)	'0' (0x00)											
8.740913167	197	r (0x72)	'0' (0x00)	text begins line 29		ends line 197, 		143 lines						
														
8.741882417	198	'0' (0x00)	'1' (0x01)		0	24	0C	c8	86		was C7ED	C886-C7ED=		0x99=153
8.741898417	198	$ (0x24)	'2' (0x02)			write ptr	write							
8.742089917	198	'12' (0x0C)	'3' (0x03)											
8.742289417	198	'200' (0xC8)	'0' (0x00)											
8.74230525	198	'134' (0x86)	'0' (0x00)											
8.743322417	199	'0' (0x00)	'1' (0x01)		0	1	0c	20						
8.743338417	199	'1' (0x01)	'2' (0x02)			cmd reg	write	send						
8.743529917	199	'12' (0x0C)	'3' (0x03)											
8.743729333	199	' ' (0x20)	'0' (0x00)											
8.744439333	200	'0' (0x00)	'1' (0x01)		0	1	8	0						
8.74445525	200	'1' (0x01)	'2' (0x02)			cmd reg	read							
8.74464675	200	'8' (0x08)	'3' (0x03)											
8.74485025	200	'0' (0x00)	'0' (0x00)					0	means command complete					
8.746354083	201	'0' (0x00)	'1' (0x01)		0	20	8	2	8					
8.746369917	201	' ' (0x20)	'2' (0x02)			tx free	read							
8.746561417	201	'8' (0x08)	'3' (0x03)											
8.74676475	201	'2' (0x02)	'8' (0x08)					8	0	2048 free				
8.746784833	201	'8' (0x08)	'0' (0x00)											
8.747869667	202	'0' (0x00)	'1' (0x01)		0	24	8	2	200					
8.747885667	202	$ (0x24)	'2' (0x02)											
8.748077167	202	'8' (0x08)	'3' (0x03)											
8.748280583	202	'2' (0x02)	'200' (0xC8)					c8	86					
8.748300583	202	'200' (0xC8)	'134' (0x86)											
8.749138167	203	'200' (0xC8)	'1' (0x01)											
8.74915425	203	'134' (0x86)	'2' (0x02)											
8.749345583	203	'20' (0x14)	'3' (0x03)											
8.749545	203	 (0x3E)	'0' (0x00)											
8.749656833	203	 (0x3E)	'0' (0x00)											
8.749768417	203	\r (0x0D)	'0' (0x00)											
8.7497845	203	\n (0x0A)	'0' (0x00)											
8.749800333	203	\r (0x0D)	'0' (0x00)											
8.749816333	203	\n (0x0A)	'0' (0x00)											
8.750785583	204	'0' (0x00)	'1' (0x01)											
8.750801583	204	$ (0x24)	'2' (0x02)											
8.750992917	204	'12' (0x0C)	'3' (0x03)											
8.751192417	204	'200' (0xC8)	'0' (0x00)											
8.751208417	204	'152' (0x98)	'0' (0x00)											
8.752225583	205	'0' (0x00)	'1' (0x01)	0	1	0c	20							
8.752241583	205	'1' (0x01)	'2' (0x02)				send							
8.752433083	205	'12' (0x0C)	'3' (0x03)											
8.752632333	205	' ' (0x20)	'0' (0x00)											
8.7533425	206	'0' (0x00)	'1' (0x01)	0	1	8	0							
8.753358417	206	'1' (0x01)	'2' (0x02)											
8.753549917	206	'8' (0x08)	'3' (0x03)											
8.75375325	206	'0' (0x00)	'0' (0x00)				0	cmd done						
8.75522525	207	'0' (0x00)	'1' (0x01)	0	28	8	2	0						
8.755241083	207	( (0x28)	'2' (0x02)		read ptr									
8.755432583	207	'8' (0x08)	'3' (0x03)											
8.755636083	207	'2' (0x02)	'0' (0x00)				0	0						
8.755656	207	'0' (0x00)	'0' (0x00)											
8.756860667	208	'0' (0x00)	'1' (0x01)	0	28	12	1	5b	flushes the data					
8.7568765	208	( (0x28)	'2' (0x02)											
8.757068	208	'12' (0x0C)	'3' (0x03)											
8.7572675	208	'1' (0x01)	'0' (0x00)											
8.7572835	208	[ (0x5B)	'0' (0x00)											
8.758300583	209	'0' (0x00)	'1' (0x01)	0	1	0c	40		receive command					
8.758316667	209	'1' (0x01)	'2' (0x02)											
8.758508	209	'12' (0x0C)	'3' (0x03)											
8.758707417	209	@ (0x40)	'0' (0x00)											
8.759417417	210	'0' (0x00)	'1' (0x01)	0	1	8	27							
8.759433417	210	'1' (0x01)	'2' (0x02)											
8.759624917	210	'8' (0x08)	'3' (0x03)											
8.759828333	210	'27' (0x1B)	'0' (0x00)				0	ok						
8.76095925	211	'0' (0x00)	'1' (0x01)	0	1	0c	8		disconnect command					
8.760975083	211	'1' (0x01)	'2' (0x02)											
8.761166583	211	'12' (0x0C)	'3' (0x03)											
8.761366083	211	'8' (0x08)	'0' (0x00)											
														
8.762076083	212	'0' (0x00)	'1' (0x01)	0	1	8	3	read CR						
8.762092083	212	'1' (0x01)	'2' (0x02)											
8.762283417	212	'8' (0x08)	'3' (0x03)											
8.762486917	212	'3' (0x03)	'0' (0x00)				0	cmd is complete						
														
8.807148	213	'0' (0x00)	'1' (0x01)	0	3	8	2	read status						
8.807164083	213	'3' (0x03)	'2' (0x02)											
8.8073555	213	'8' (0x08)	'3' (0x03)											
8.807558917	213	'2' (0x02)	'0' (0x00)				0	status is closed						
8.808767583	214	'0' (0x00)	'1' (0x01)	0	1	0c	10							
8.808783417	214	'1' (0x01)	'2' (0x02)		cmd	write	close							
8.808974917	214	'12' (0x0C)	'3' (0x03)											
8.809174417	214	'16' (0x10)	'0' (0x00)											
8.809884417	215	'0' (0x00)	'1' (0x01)	0	1	8	fd	read command reg						
8.809900417	215	'1' (0x01)	'2' (0x02)											
8.810091917	215	'8' (0x08)	'3' (0x03)											
8.81029525	215	'253' (0xFD)	'0' (0x00)				0	complete						
8.811426083	216	'0' (0x00)	'1' (0x01)	0	2	0c	FF							
8.811442083	216	'2' (0x02)	'2' (0x02)		int reg	write								
8.811633583	216	'12' (0x0C)	'3' (0x03)											
8.811833	216	'255' (0xFF)	'0' (0x00)											
8.812913917	217	'0' (0x00)	'1' (0x01)	0	0	0C	1							
8.81293	217	'0' (0x00)	'2' (0x02)		modr	write	TCP							
8.813121333	217	'12' (0x0C)	'3' (0x03)											
8.81332075	217	'1' (0x01)	'0' (0x00)											
8.814334	218	'0' (0x00)	'1' (0x01)	0	4	0c	0	50						
8.81435	218	'4' (0x04)	'2' (0x02)											
8.814541333	218	'12' (0x0C)	'3' (0x03)											
8.814740833	218	'0' (0x00)	'0' (0x00)											
8.814756833	218	P (0x50)	'0' (0x00)											
8.815774	219	'0' (0x00)	'1' (0x01)	0	1	12	1							
8.81579	219	'1' (0x01)	'2' (0x02)		cmd	write	initialize							
8.815981333	219	'12' (0x0C)	'3' (0x03)											
8.81618075	219	'1' (0x01)	'0' (0x00)											
8.81689075	220	'0' (0x00)	'1' (0x01)											
8.816906833	220	'1' (0x01)	'2' (0x02)											
8.817098333	220	'8' (0x08)	'3' (0x03)											
8.817301667	220	'253' (0xFD)	'0' (0x00)											
8.81836475	221	'0' (0x00)	'1' (0x01)											
8.81838075	221	'1' (0x01)	'2' (0x02)											
8.818572083	221	'12' (0x0C)	'3' (0x03)											
8.818771583	221	'2' (0x02)	'0' (0x00)											
8.819481583	222	'0' (0x00)	'1' (0x01)											
8.819497583	222	'1' (0x01)	'2' (0x02)											
8.819689083	222	'8' (0x08)	'3' (0x03)											
8.819892417	222	'253' (0xFD)	'0' (0x00)											
8.86454575	223	'0' (0x00)	'1' (0x01)											
8.864561583	223	'3' (0x03)	'2' (0x02)											
8.864753083	223	'8' (0x08)	'3' (0x03)											
8.864956417	223	'2' (0x02)	'20' (0x14)											
8.909707333	224	'0' (0x00)	'1' (0x01)											
8.909723333	224	'3' (0x03)	'2' (0x02)											
8.909914833	224	'8' (0x08)	'3' (0x03)											
Advertisements

From → Uncategorized

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: