'2016/01'에 해당되는 글 7건

2.4.1 LMP Response Timeout

(pairing sequence) : fixed on spec


The time between receiving a baseband packet carrying an LMP PDU and

sending a baseband packet carrying a valid response PDU, according to the

procedure rules in Section 4 on page 249, shall be less than the LMP

Response Timeout. The value of this timeout is 30 seconds.



2.4 PAGE TIMEOUT (0x04)

(acl connection)

The Page Timeout error code indicates that a page timed out because of the

Page Timeout configuration parameter. This error code may occur only with the

Remote_Name_Request and Create_Connection commands.


Range: 0x0001 to 0xFFFF

Default: 0x2000 (8192)

Mandatory Range: 0x0016 to 0xFFFF

Time = N * 0.625 msec

Time Range: 0.625 msec to 40.9 sec

Time Default: 5.12 sec


6.7 CONNECTION ACCEPT TIMEOUT

The Connection_Accept_Timeout configuration parameter allows the BR/EDR

Controller to automatically deny a connection request after a specified time

period has occurred and the new connection is not accepted. The parameter

defines the time duration from when the BR/EDR Controller sends a

Connection Request event until the BR/EDR Controller will automatically reject

an incoming connection.


Range: 0x0001 to 0xB540

Default: 0x1F40 (8000)

Mandatory Range: 0x00A0 to 0xB540

Time = N * 0.625 msec

Time Range: 0.625 msec to 29 sec

Time Default:

BR/EDR 5 sec

AMP type dependent


6.8 PAGE SCAN INTERVAL

The Page_Scan_Interval configuration parameter defines the amount of time

between consecutive page scans. This time interval is defined from when the

Controller started its last page scan until it begins the next page scan.


Range: 0x0012 to 0x1000; only even values are valid

Default: 0x0800

Mandatory Range: 0x0012 to 0x1000

Time = N * 0.625 msec

Time Range: 11.25 msec to 2560 msec

Time Default: 1.28 sec



6.9 PAGE SCAN WINDOW

The Page_Scan_Window configuration parameter defines the amount of time

for the duration of the page scan. The Page_Scan_Window can only be less

than or equal to the Page_Scan_Interval.


Range: 0x0011 to 0x1000

Default: 0x0012

Mandatory Range: 0x0011 to Page Scan Interval

Time = N * 0.625 msec

Time Range: 10.625 msec to Page Scan Interval

Time Default: 11.25 msec


2.8 CONNECTION TIMEOUT (0x08)

(check link loss)

The Connection Timeout error code indicates that the link supervision timeout

has expired for a given connection.



6.21 LINK SUPERVISION TIMEOUT

The Link_Supervision_Timeout parameter is used by the Controller to monitor

link loss.

Range: 0x0001 to 0xFFFF

Default: 0x7D00

Mandatory Range: 0x0190 to 0xFFFF

Time = N * 0.625 msec

Time Range: 0.625 msec to 40.9 sec

Time Default:

BR/EDR 20 sec

AMP 10 sec


usually set to 0x1F40 (8000) : 5 sec



6.28 LOGICAL LINK ACCEPT TIMEOUT

The Logical_Link_Accept_Timeout configuration parameter allows the AMP

Controller to automatically deny a logical link request after a specified time period

has elapsed and the new logical link has not completed.

Range: 0x0001 to 0xB540

Default: 0x1F40

Mandatory Range: 0x00A0 to 0xB540

Time = N * 0.625 msec

Time Range: 0.625 msec to 29 sec

Time Default: AMP Type dependent : 5 sec



6.36 SYNCHRONIZATION TRAIN INTERVAL (for LE)

The Sync_Train_Interval configuration parameter defines the time between

Synchronization Train transmit events on a single transmit RF channel.

Default: 0x0080

Mandatory Range: 0x0020 to 0x1000

Time = N * 0.625 msec

Time Range: 20 msec to 40.9 sec

Time Default: 80 msec


6.37 SYNCHRONIZATION TRAIN TIMEOUT (for LE)

The synchronization_trainTO configuration parameter is used by the controller

to terminate the Synchronization Train after it has been started via the

HC_Start_Synchronization_Train command.

Default: 0x0002EE00

Mandatory Range: 0x00000002 to 0x07FFFFFE

Time = N * 0.625 msec

Time Range: 1.25 msec to 23.3 hours

Time Default: 120 msec


6.2 INQUIRY SCAN INTERVAL

The Inquiry_Scan_Interval configuration parameter defines the amount of time

between consecutive inquiry scans. This is defined as the time interval from

when the BR/EDR Controller started its last inquiry scan until it begins the next

inquiry scan.

Range: 0x0012 to 0x1000; only even values are valid

Default: 0x1000

Mandatory Range: 0x0012 to 0x1000

Time = N * 0.625 msec

Time Range: 11.25 to 2560 msec

Time Default: 2.56 sec

usually try 2 times = 5.12 sec







저작자 표시 비영리 동일 조건 변경 허락
신고

'BlueTooth > 기본기' 카테고리의 다른 글

"블루투스의 혁신" 블루투스 메시 네트워크 표준 발표로 IoT 확산  (0) 2017.10.16
Mesh Profile  (0) 2017.10.16
Air packet에서 Bluetooth clock 확인  (0) 2017.09.08
baseband ack nack concept  (0) 2017.09.08
bluetooth timeout spec  (1) 2016.01.28
RFComm  (0) 2016.01.07
GPP(Generic PIM Profile)  (0) 2015.12.15
Paging and Inquiry  (0) 2015.11.26
AVDTP signaling/Media  (0) 2014.10.23
kitkat install 다시 시작  (9) 2014.07.19
BLE 4.1  (0) 2014.06.25
Posted by bluelimn

 HOSTLD  scripts/kconfig/mconf

scripts/kconfig/mconf.o: In function `show_help':

mconf.c:(.text+0x7e1): undefined reference to `stdscr'

scripts/kconfig/mconf.o: In function `main':

mconf.c:(.text+0x1256): undefined reference to `initscr'

mconf.c:(.text+0x125d): undefined reference to `stdscr'

scripts/kconfig/lxdialog/checklist.o: In function `print_arrows':

checklist.c:(.text+0x41): undefined reference to `wmove'

checklist.c:(.text+0x61): undefined reference to `acs_map'

checklist.c:(.text+0x69): undefined reference to `waddch'

checklist.c:(.text+0x7b): undefined reference to `waddnstr'

...




Solution

sudo apt-get install libncurses5-dev

저작자 표시 비영리 동일 조건 변경 허락
신고

'Programming > linux왕초보' 카테고리의 다른 글

pthread min, max priority on linux  (0) 2017.06.12
use vim like as source insight  (0) 2016.04.06
[ubuntu] change default shell  (0) 2016.03.22
GDB를 사용한 CORE 파일의 분석  (0) 2016.02.05
kernel make menuconfig error  (0) 2016.01.21
Caching your GitHub password in Git  (0) 2016.01.08
Serial ports usage on Linux  (0) 2016.01.08
process 종료  (0) 2015.05.28
fork  (0) 2015.05.26
Linux SSD 최적화  (0) 2015.04.17
fflush, fileno  (0) 2015.04.07
Posted by bluelimn
대만(Tiwan)의 독립을 지지합니다.

아울러 티벳(Tibet)의 독립을 기원합니다.


폭력적인 업악이 아니라 다양성이 존중되는 세상이 되었으면 좋겠다.



저작자 표시 비영리 동일 조건 변경 허락
신고

'bluelimn's > 일상과이상' 카테고리의 다른 글

Tiwan and Tibet  (0) 2016.01.18
후배  (0) 2015.05.07
이건 뭐지...스팸 경로에 등록된건가?  (0) 2011.12.14
바쁜 와중에 게으름  (0) 2011.02.02
2010 사자성어 ‘장두노미(藏頭露尾)’  (0) 2010.12.19
단풍  (0) 2010.11.14
일상  (1) 2010.09.19
잊어버린다.  (0) 2010.07.23
이건 뭐지?  (1) 2010.05.25
할게 너무 많다  (0) 2010.05.24
웹 공유 디스크 다운로드 이용권 무료 배포  (14) 2010.02.05
Posted by bluelimn

int가 사용 word size를 사용하기 때문에 32bit에서는 4byte, 64bit에서는 8byte를 사용한다.

이것은 상당히 유명한 내용이기 때문에 많이들 안다.

그런데 놓치기 쉬운 것은 long 이다.

linux에서 기본적으로 long이 unsigned int 로 되어 있기 때문에 마찬가지로 int와 동일한 크기를 가진다.


좀 더 깊이 들어가면 data model에 따라 조금씩 다르다고 하는데 자세히는 모르겠다


64-bit data models

Data model

short (integer)

int

long (integer)

long long

pointers/
size_t

Sample operating systems

LLP64/
IL32P64

16

32

32

64

64

Microsoft Windows(x86-64 and IA-64)

LP64/
I32LP64

16

32

64

64

64

Most Unixand Unix-likesystems, e.g. Solaris,LinuxBSD, and OS X;z/OS

ILP64

16

64

64

64

64

HAL Computer Systems port of Solaris toSPARC64

SILP64

64

64

64

64

64

"Classic"UNICOS[35](as opposed to UNICOS/mp, etc.)

 

<wikipedia : https://en.wikipedia.org/wiki/64-bit_computing>


간단한 test로 sizeof를 확인해봤다


printf("long: %d\n", sizeof(long));

printf("int : %d\n", sizeof(int));


32bit 
long: 4
int : 4

64bit

long: 8

int : 4


예상과 다르게 int가 4로 나왔다. 역시나 wiki는 똑똑한 사람들이 편집하는구나.

저작자 표시 비영리 동일 조건 변경 허락
신고
Posted by bluelimn

원문링크 : https://help.github.com/articles/caching-your-github-password-in-git/


If you're cloning GitHub repositories using HTTPS, you can use a credential helper to tell Git to remember your GitHub username and password every time it talks to GitHub.

If you clone GitHub repositories using SSH, then you authenticate using SSH keys instead of a username and password. For help setting up an SSH connection, see Generating SSH Keys.

Tip: You need Git 1.7.10 or newer to use the credential helper.

The credential helper is included with GitHub Desktop. The app also provides a Git shell so you won't ever need to install and configure Git manually. For more information, see "Getting Started with GitHub Desktop."

If you prefer working with the command line, you can also install a native Git shell, such as msysgit. With msysgit, running the following in the command line will store your credentials:

git config --global credential.helper wincred


저작자 표시 비영리 동일 조건 변경 허락
신고

'Programming > linux왕초보' 카테고리의 다른 글

pthread min, max priority on linux  (0) 2017.06.12
use vim like as source insight  (0) 2016.04.06
[ubuntu] change default shell  (0) 2016.03.22
GDB를 사용한 CORE 파일의 분석  (0) 2016.02.05
kernel make menuconfig error  (0) 2016.01.21
Caching your GitHub password in Git  (0) 2016.01.08
Serial ports usage on Linux  (0) 2016.01.08
process 종료  (0) 2015.05.28
fork  (0) 2015.05.26
Linux SSD 최적화  (0) 2015.04.17
fflush, fileno  (0) 2015.04.07
Posted by bluelimn

원문 링크 : http://www.armadeus.com/wiki/index.php?title=Serial_ports_usage_on_Linux


http://unix.stackexchange.com/questions/117037/how-to-send-data-to-a-serial-port-and-see-any-answer


Changing port parameters


To get current parameters

# stty -F /dev/ttyUSB0

speed 115200 baud;

intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = ^J;

eol2 = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W;

lnext = ^V; flush = ^O; min = 1; time = 0;

-brkint ixoff -imaxbel

-iexten -echoctl


To only get actual speed:

# stty -F /dev/ttySMX0 speed

115200


By default serial ports are configured as terminal emulator. If you want to use them as "raw" serial port you will have to do first (example for port 1):

# stty -F /dev/ttyUSB1 raw

# stty -F /dev/ttyUSB1 -echo -echoe -echok


To change baudrate of port 2 to 115200 :

# stty -F /dev/ttyUSB2 115200

stty -speed 19200 < /dev/ttyS1
stty -speed 19200 -f /dev/ttyS1


Sending/Receiving data

Send

# echo "HELLO" > /dev/ttyUSB0

echo -e "\x7E\x03\xD0\xAF und normaler Text" > /dev/ttyS0

The echo -e command enables the interpretation of backslash escapes.


To receive data (ASCII in that case):

# cat /dev/ttyUSB0



저작자 표시 비영리 동일 조건 변경 허락
신고

'Programming > linux왕초보' 카테고리의 다른 글

use vim like as source insight  (0) 2016.04.06
[ubuntu] change default shell  (0) 2016.03.22
GDB를 사용한 CORE 파일의 분석  (0) 2016.02.05
kernel make menuconfig error  (0) 2016.01.21
Caching your GitHub password in Git  (0) 2016.01.08
Serial ports usage on Linux  (0) 2016.01.08
process 종료  (0) 2015.05.28
fork  (0) 2015.05.26
Linux SSD 최적화  (0) 2015.04.17
fflush, fileno  (0) 2015.04.07
[Linux] stream write  (0) 2015.03.26
Posted by bluelimn

RFComm

BlueTooth/기본기 2016.01.07 16:51

RFCOMM


frame types

  - SABM (Set Asynchronous Balanced Mode command)

    : connect with remote server channel

  - UA (Unnumbered Acknowledgement response)

    : response for SABM/DISC

  - DM (Disconnected Mode response)

    : when RFCOMM is disconnected

  - DISC (Disconnect command)

    : disconnect with remote device

  - UIH (Unnumbered information with header check command and response)

    : send and receive data with remote device.


SCN(Server Channel Number)

Server applications registering with an RFCOMM service interface are assigned a 

Server Channel number in the range 1…30. [0 and 31 should not be used since 

the corresponding DLCIs are reserved in TS 07.10] It is this value that should be 

registered in the Service Discovery Database.

  - MAP, PBAP, HFP can obtain SCN from  SDP.

  - SCN 0 means  control channel.


Supported Control Channel Commands

 - DLC parameter negotiation (PN)


DLCI (Data Link Connection Identifier) 

  - DLCI 0 : control 

  - DLCI even : initializing connection

  - DLCI odd : non-initializing connection


DISC (Disconnect command) 

The DISC command shall be used to terminate an operational or initialization mode previously set by a command. It

shall be used to inform one station that the other station is suspending operation and that the station should assume a

logically disconnected mode. Prior to actioning the command, the receiving station shall confirm the acceptance of the

DISC command by the transmission of a UA response.


UA (Unnumbered Acknowledgement) response

The UA response shall be used by the station to acknowledge the receipt and acceptance of SABM and DISC commands.


C/R (Command/Response)

The C/R (command/response) bit identifies the frame as either a command or a response.


P/F (Poll/Final)

The poll (P) bit set to 1 shall be used by a station to solicit (poll) a response or sequence of responses from the other station.

The final (F) bit set to 1 shall be used by a station to indicate the response frame transmitted as the result of a soliciting (poll) command.


저작자 표시 비영리 동일 조건 변경 허락
신고

'BlueTooth > 기본기' 카테고리의 다른 글

"블루투스의 혁신" 블루투스 메시 네트워크 표준 발표로 IoT 확산  (0) 2017.10.16
Mesh Profile  (0) 2017.10.16
Air packet에서 Bluetooth clock 확인  (0) 2017.09.08
baseband ack nack concept  (0) 2017.09.08
bluetooth timeout spec  (1) 2016.01.28
RFComm  (0) 2016.01.07
GPP(Generic PIM Profile)  (0) 2015.12.15
Paging and Inquiry  (0) 2015.11.26
AVDTP signaling/Media  (0) 2014.10.23
kitkat install 다시 시작  (9) 2014.07.19
BLE 4.1  (0) 2014.06.25
Posted by bluelimn
1

bluelimn

달력

최근에 달린 댓글

최근에 받은 트래백

글보관함


티스토리 툴바