< HCI Command: Create Connection(0x01|0x0005) plen 13			-	Page 568
01	05 04 		0D 		04 00 00 00 00 00 	18 00 		00 		00 		  00 00 	01
cmd	ogf/ocf	 	plen=13 	bdaddr= 		pkt type=	page scan 	page scan	  clock 	allow_role_switch
	opcode 				00:00:00:00:00:04	0x0018	(acl)   rep mode R0 	scan mode= mand	  offset	master may switch to slave

> HCI Event: Command Status(0x0f) plen 4				-	Page 745
04	0F 	04 	00 		07 					05 04
evt	code	plen=4  pending		num hci cmds allowed to pass to rok	opcode of pending cmd		

> HCI Event: Connect Complete(0x03) plen 11				-	Page 730
04 	03 		0B 		00 		01 00		 04 00 00 00 00 00 	01 		00
evt	code	 	plen=11		status		12 bits 	 bdaddr		 	link type=ACL	encryption mode =disabled
					success		connection

> HCI Event: Command Status(0x0f) plen 4				-	Page 745
04	0F 	04 	00 		08 					00 00
evt	code 	plen=4  pending(=ok)	we can sent up to 8 cmds to rok		cmd that is pending (none)

< ACL data: handle 0x0001 flags 0x02 dlen 12				-	Page 555 / 286
  L2CAP(s): Connect req: psm 10 scid 0x0040
02	 01 20 			0C 00 		08 00   01 00     02	01	04 00	0A 00	40 00
acl	 handle/flags		dlen		12 acl data bytes...				l2cap cmd data (Page 286)
	 			0x000c = 12	L2CAP:
	 						08 00	0x0008  Lenght (of cmd)
							01 00	0x0001  CID of all signalling cmds
							   02     0x02  Cmd code (Connection request)
	 					           01     0x01  Identifier (helps to match requests/replys see Page 284) 	
							04 00   0x0004  length of data field in cmd
							0A 00   0x000A  10 (PSM)
							40 00   0x0040  64 (Source CID)

> ACL data: handle 0x0001 flags 0x02 dlen 16				-	Page 555 / 287
  L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 0 status 0
02	01 20 			10 00 		0C 00	01 00	  03	01	08 00	40 00	40 00	00 00	00 00
acl	handle/flags		dlen		the 16 acl data bytes 			l2cap cmd data (Page 287)
				0x0010 = 16	L2CAP:
							0C 00   0x000C  Length of cmd 12
							01 00   0x0001  CID of all signalling cmds
							   03     0x03  Code (connection response)
						           01     0x01  Identifier (like a sequence number)
							08 00   0x0008  Lenght
							40 00   0x0040  Destination CID
							40 00   0x0040  Source CID
							00 00   0x0000  Result
							00 00   0x0000  Status

< ACL data: handle 0x0001 flags 0x02 dlen 12				-	Page 555 / 288
  L2CAP(s): Config req: dcid 0x0040 flags 0x0000 clen 0
02	 01 20			0C 00		08 00	01 00	04	02	04 00	40 00 00 00
acl	 handle/flags		dlen		12 acl data bytes...			l2cap cmd data (Page 288)
				0x0010 = 16	L2CAP:
							08 00   0x0008  Length
							01 00   0x0001  CID of all signalling cmds
							   04     0x04  Code (Configuration Request)
							   02     0x02  Identifier
							04 00   0x0004  Length 4
							40 00   0x0040  Dest CID  
							00 00   0x0000  Flags

> ACL data: handle 0x0001 flags 0x02 dlen 14				-	Page 555 / 291
  L2CAP(s): Config rsp: scid 0x0040 flags 0x0000 result 0 clen 0
02	01 20		0E 00		0A 00	01 00	05	02	06 00	40 00	00 00	00 00
acl	handle/flags	dlen		14 acl data bytes			6 data bytes (Page 291)
			0x000e = 14	L2CAP:
							0A 00   0x000A (length=10)
							01 00   0x0001 as above
							   05     0x05 code (configure response)
							   02     0x02 Identifier
							06 00   0x0006 lenght
							40 00   0x0004 Source CID
							00 00   0x0000 Flags
							00 00   0x0000 Result

< ACL data: handle 0x0001 flags 0x02 dlen 14				-	Page 555 / 281
    L2CAP(d): cid 0x40 len 10 [psm 10]
02	01 20		0E 00		0A 00	40 00	25 00 00 00 0A 00 7F 7F 7F 7F
acl	handle/flags	dlen		14 acl data bytes
			0x000E = 14	L2CAP:
							0A 00   0x000A Lenght
							40 00   0x0040 Channel ID (not signalling !!!)
							25 00 00 00 0A 00 7F 7F 7F 7F 7F is Info	
							^^
* the next data packets that get sent look all the same... but the count field
  (first data byte is incremented each time -> pseudo sequence number)
  like ...

02 	01 20 		0E 00 		0A 00	40 00	26 00 00 00 0A 00 7F 7F 7F 7F
			   				^^
* from time to time, the rok sends back an...

> HCI Event: Number of Completed Packets(0x13) plen 5			-	Page 749
04	13		05	01 			01 00				04 00
evt	code 		plen	Number of handles	Conn Handle			HC num of completed packets	
	number of					Number of handles * 2 bytes	2 bytes * number of handles
	completed					handle=0x0001 (12 bits)		so 0x004 = 4 packets have completed
	packets

* saying, that 4 data packets have been flushed (=sent out)

* or say, if rok answers this twice... the host sends 8 packets afterwards...
  you have to check that and compare always to the maximum number of acl 
  packets on can sent to the rok (read at the beginning - read_buffer_size...)

* pressing ctrl+c results then in a abort of the packets beeing sent..

< ACL data: handle 0x0001 flags 0x02 dlen 12				-	Page 555 / 293
  L2CAP(s): Disconn req: dcid 0x0040 scid 0x0040
02	 01 20		0C 00 		08 00	01 00	06	03	04 00	40 00	40 00
acl	 as above	dlen  		12 acl data bytes...
			0x000c = 12	L2CAP:
							08 00   0x0008 Length 8 bytes data
							01 00   0x0001 Signalling
							   06     0x06 Cmd code (Disconnection Request)
							   03     0x03 Identifier 3	
							04 00   0x0004 Length 
							40 00   0x0040 DCID 
							40 00   0x0040 SCID

> ACL data: handle 0x0001 flags 0x02 dlen 12				-	Page 555 / 294
  L2CAP(s): Disconn rsp: dcid 0x0040 scid 0x0040
02 	01 20		0C 00		08 00	01 00	07	03	04 00	40 00	40 00
acl	as above	dlen=12 	12 acl data bytes
					L2CAP:
							08 00   0x0008 Length 8
							01 00   0x0001 Singalling cid
							   07     0x07 Cmd Code = Disconnection Response
							   03     0x03 Identifier
							04 00   0x0040 Length = 4 bytes
							40 00   0x0040 DCID
							40 00   0x0040 SCID

< HCI Command: Disconnect(0x01|0x0006) plen 3				-	Page 571
01	 06 04		 03 		01 00			 13
cmd	 Opcode		 plen		Connection handle	 Reason see P 571 = Other End Terminated Connection Error Codes
	 ogf/ocf			12 bits meaningfull
					out of 0x0001
	 
> HCI Event: Command Status(0x0f) plen 4				-	Page 745
04	0F 		04 		00 		07 			06 04
evt	code		plen=4		command 	no of packets		opcode of command that
					currently	one can still		caused event and is pending
					pending		send to rok

> HCI Event: Disconn Complete(0x05) plen 4				-	Page 733
04	05		04		00 		01 00			16
evt	code		plen		disc has	connection		Reason See p 766 Table 6.1
					occured		handle 12 bits		=Connection terminated by local host
						out of (0x0001)

> HCI Event: Command Status(0x0f) plen 4				-	Page 745
04 	0F		04 		00 		08 			00 00
evt	code		plen		cmd pending	no of pkt		opcode dummy
							rok accepts