728x90

원문링크 : 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


728x90

'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
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
728x90

원문 링크 : 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



728x90

'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
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
728x90

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.


728x90

'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
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

+ Recent posts