프로그램 사용/iperf2023. 7. 28. 11:52

iperf/iperf2/ipef3 간에는 서로 호환성이 없는 듯. 기본 포트도 다르게 잡힌다.

 

크로스 컴파일

/configure --build=i686-linux --host=arm-linux CC={크로스 컴파일러GCC 경로} CXX={크로스 컴파일러G++ 경로}

[링크 : http://forum.falinux.com/zbxe/index.php?document_srl=869098&mid=lecture_tip]

 

대역폭 설정은 초당 얼마나 많은 데이터를 보내냐를 테스트 하는데 쓰이는데

$ iperf3 --help
Usage: iperf3 [-s|-c host] [options]
       iperf3 [-h|--help] [-v|--version]

Server or Client:
  -p, --port      #         server port to listen on/connect to
  -f, --format   [kmgtKMGT] format to report: Kbits, Mbits, Gbits, Tbits
  -i, --interval  #         seconds between periodic throughput reports
  -F, --file name           xmit/recv the specified file
  -A, --affinity n/n,m      set CPU affinity
  -B, --bind      <host>    bind to the interface associated with the address <host>
  -V, --verbose             more detailed output
  -J, --json                output in JSON format
  --logfile f               send output to a log file
  --forceflush              force flushing output at every interval
  --timestamps    <format>  emit a timestamp at the start of each output line
                            (using optional format string as per strftime(3))
  -d, --debug               emit debugging output
  -v, --version             show version information and quit
  -h, --help                show this message and quit
Server specific:
  -s, --server              run in server mode
  -D, --daemon              run the server as a daemon
  -I, --pidfile file        write PID file
  -1, --one-off             handle one client connection then exit
  --server-bitrate-limit #[KMG][/#]   server's total bit rate limit (default 0 = no limit)
                            (optional slash and number of secs interval for averaging
                            total data rate.  Default is 5 seconds)
  --rsa-private-key-path    path to the RSA private key used to decrypt
                            authentication credentials
  --authorized-users-path   path to the configuration file containing user
                            credentials
Client specific:
  -c, --client    <host>    run in client mode, connecting to <host>
  --sctp                    use SCTP rather than TCP
  -X, --xbind <name>        bind SCTP association to links
  --nstreams      #         number of SCTP streams
  -u, --udp                 use UDP rather than TCP
  --connect-timeout #       timeout for control connection setup (ms)
  -b, --bitrate #[KMG][/#]  target bitrate in bits/sec (0 for unlimited)
                            (default 1 Mbit/sec for UDP, unlimited for TCP)
                            (optional slash and packet count for burst mode)
  --pacing-timer #[KMG]     set the timing for pacing, in microseconds (default 1000)
  --fq-rate #[KMG]          enable fair-queuing based socket pacing in
                            bits/sec (Linux only)
  -t, --time      #         time in seconds to transmit for (default 10 secs)
  -n, --bytes     #[KMG]    number of bytes to transmit (instead of -t)
  -k, --blockcount #[KMG]   number of blocks (packets) to transmit (instead of -t or -n)
  -l, --length    #[KMG]    length of buffer to read or write
                            (default 128 KB for TCP, dynamic or 1460 for UDP)
  --cport         <port>    bind to a specific client port (TCP and UDP, default: ephemeral port)
  -P, --parallel  #         number of parallel client streams to run
  -R, --reverse             run in reverse mode (server sends, client receives)
  --bidir                   run in bidirectional mode.
                            Client and server send and receive data.
  -w, --window    #[KMG]    set window size / socket buffer size
  -C, --congestion <algo>   set TCP congestion control algorithm (Linux and FreeBSD only)
  -M, --set-mss   #         set TCP/SCTP maximum segment size (MTU - 40 bytes)
  -N, --no-delay            set TCP/SCTP no delay, disabling Nagle's Algorithm
  -4, --version4            only use IPv4
  -6, --version6            only use IPv6
  -S, --tos N               set the IP type of service, 0-255.
                            The usual prefixes for octal and hex can be used,
                            i.e. 52, 064 and 0x34 all specify the same value.
  --dscp N or --dscp val    set the IP dscp value, either 0-63 or symbolic.
                            Numeric values can be specified in decimal,
                            octal and hex (see --tos above).
  -L, --flowlabel N         set the IPv6 flow label (only supported on Linux)
  -Z, --zerocopy            use a 'zero copy' method of sending data
  -O, --omit N              omit the first n seconds
  -T, --title str           prefix every output line with this string
  --extra-data str          data string to include in client and server JSON
  --get-server-output       get results from server
  --udp-counters-64bit      use 64-bit counters in UDP test packets
  --repeating-payload       use repeating pattern in payload, instead of
                            randomized payload (like in iperf2)
  --username                username for authentication
  --rsa-public-key-path     path to the RSA public key used to encrypt
                            authentication credentials

[KMG] indicates options that support a K/M/G suffix for kilo-, mega-, or giga-

iperf3 homepage at: https://software.es.net/iperf/
Report bugs to:     https://github.com/esnet/iperf

 

'프로그램 사용 > iperf' 카테고리의 다른 글

iperf3 jumbo packet?  (0) 2025.02.15
iperf 파일로 바로바로 떨궈서 tail로 보기  (0) 2025.02.10
iperf udp 테스트  (0) 2022.03.14
iperf로 100M 랜 / IEEE1394 대역폭 측정  (2) 2011.12.07
iperf - 대역폭 측정  (0) 2009.10.22
Posted by 구차니
embeded/DSP C2000 Ti2023. 7. 28. 09:30

실수로 5V 짜리에 24V를 넣어버렸다 -_ㅠ

이제 TMS는 다시는 볼일이 없을 느낌 ㅠㅠ

 

 

얘가 망가졌을 것 같은데

[링크 : https://www.ti.com/product/ko-kr/TPS767D301-EP]

 

와.. 1개 1.6만 -_- 수리 포기

[링크 : https://www.mouser.kr/ProductDetail/Texas-Instruments/TPS767D301MPWPREP?qs=kujVBWBDkXIrGr50CbsOmQ%3D%3D]

'embeded > DSP C2000 Ti' 카테고리의 다른 글

CCSv8.3.1 on win10  (2) 2023.07.14
CCS v8.3.1 on ubuntu 22.04  (0) 2023.07.14
spectrum digital XDS510 USB  (0) 2023.07.14
TMS320 소비전력  (0) 2023.07.13
tms320 어렵네...  (4) 2020.04.02
Posted by 구차니
Programming/jquery2023. 7. 27. 19:04

'Programming > jquery' 카테고리의 다른 글

jquery ajax delete가 없다?  (0) 2022.09.16
jquery-cookie 라이브러리  (0) 2022.09.05
jquery 우클릭 가로채기  (0) 2019.06.04
jquery ajax json flask  (0) 2019.01.07
jquery this 버튼 checked  (0) 2019.01.07
Posted by 구차니
Linux2023. 7. 27. 18:58

lvmcache는 logical volume에 대해서 ssd 캐시를 적용하고

bcache는 블럭 디바이스에 직접 ssd 캐시를 적용한다.

lvm을 좋아하진 않으니.. bcache를 나중에 써봐야지

 

[링크 : https://wiki.archlinux.org/title/bcache]

[링크 : https://wiki.archlinux.org/title/LVM#Cache]

 

'Linux' 카테고리의 다른 글

시스템 audit 로그  (0) 2023.08.30
.bashrc 설정 history  (0) 2023.08.08
sysfs ethernet link status  (0) 2023.05.17
리눅스 커맨드 라인에서 몇줄씩 건너뛰고 출력하기  (0) 2023.03.30
bash completion  (0) 2023.03.27
Posted by 구차니

어떻게 보면 당연한데 얘는 number가 아니라 text 다

그래서 <input type="text"> 로 해주어야 한다.

 

const a = 3540000;
console.log(a.toLocaleString('ko-KR'))  //"3,540,000"

[링크 : https://mong-blog.tistory.com/entry/input에-입력된-숫자에-콤마-찍기]

Posted by 구차니
개소리 왈왈/컴퓨터2023. 7. 26. 21:44

20000mA 짜리 하나 생겼는데

USB-C PD 충전이 된다는데  PD 충전기도, PD 노트북도 없어서

이게 정상적으로 PD로 작동하는지 알 수가 없네 -ㅁ-

 

특이하게도 USB-C를 PC에 꽂고 2번 파워 누르면 허브로도 작동한다고

USB2.0이라 좀 아쉽긴 하지만 없는것 보단 낫지

[링크 : https://shopping.interpark.com/product/productInfo.do?prdNo=5183880099&uaTp=1&]

 

노트북 9  Always에 30W PD가 된다는데.. 어떻게 연결해야 하지?

똑같이 5V/2A 연결되었다 뜨는데..

참고 사항
1. 사용 가능한 USB Type-C 포트용 보조 배터리 안내
- 10W/15W/18W/25W 외장배터리, 15W/25W 여행용 충전기, 30W PD ADT 등
단, 10W(5V/2A) 미만의 출력 장치는 지원하지 않음

[링크 : https://www.samsungsvc.co.kr/solution/22192]

'개소리 왈왈 > 컴퓨터' 카테고리의 다른 글

로지텍 유니파잉, 로지볼트  (0) 2023.09.23
USB3.0 기가비트 랜 맞아?  (0) 2023.08.02
삼성 always 9 13인치 분해  (0) 2023.07.12
intel 내장형 그래픽과 4k60p(DP)  (0) 2023.06.22
intel 내장 세대별 해상도  (0) 2023.06.21
Posted by 구차니
이론 관련/전기 전자2023. 7. 25. 18:24

440Hz

[링크 : https://m.blog.naver.com/friendgeeni/40205120393]

 

[링크 : https://onlinetonegenerator.com/432Hz.html]

[링크 : https://onlinetonegenerator.com/dtmf.html] DTMF (Dual Tone Multi Frequency)

 

[링크 : https://www.sigidwiki.com/wiki/Dual_Tone_Multi_Frequency_%28DTMF%29]

 

+

대기전압 : DC 24 V
통화중전압 : DC 48V
신호전압 : AC 100V

전화선의 전압은 전화기내의 저항수치에 따라서, 전화교환기에서 전압을 각기다르게 보내줍니다..즉, 어떤일을 하기위한 전기의 개념이 아니라, 전기적신호로 바뀐 음성신호를 전달하기위한 신호용도로 사용한다는것입니다..

전화기내부의 저항, 즉, 전화선두선사이의 저항이 무한대일때, DC 24 V 가공급됩니다..

전화기내부저항이 감소, 즉, 전화선두선사이의 저항이 줄어들때, 통화중으로인식하며, DC 48V 를 공급합니다..

전화선두선을 쇼트시키면, 통화중으로 인식한다는것이죠... 그번호로 전화를 하면 통화중으로 나옵니다..

평상시 DC 24v 상태에서, 누군가 그번호로 전화를 하면, AC 100V 가 흘러 전화기의 벨을 울리게 됩니다..

[링크 : https://m.blog.naver.com/iamjpkim/50039842507]

 

+

[링크 : https://en.wikipedia.org/wiki/Disconnect_tone]

[링크 : https://en.wikipedia.org/wiki/Busy_signal]

'이론 관련 > 전기 전자' 카테고리의 다른 글

dB(데시벨-상대값)과 dBm(절대값)  (0) 2023.08.23
역극성 보호  (0) 2023.08.01
envelope detection  (0) 2023.07.14
RC 회로 - RC 발진 / LPF / HPF  (0) 2023.07.10
pvt - process voltage temperature  (0) 2023.06.30
Posted by 구차니
Linux/Ubuntu2023. 7. 24. 17:37

ubuntu 22.04 인데 smb 서버 쪽이 SMB2 ~ SMB3를 지원하도록 되어있는데도 아래와 같은 에러를 뱉어내며 접근이 안되고

smb://ip/share_name 으로 직접 하면 연결이 되는 기현상 발생.

 

영어로는 아래의 메시지 인 듯.

 “Failed to Retrieve Share List from Server: Invalid Argument”

[링크 : https://www.fosslinux.com/117902/dealing-with-failed-to-retrieve-share-list-error-in-linux-smb-share.htm]

 

아무튼 이래저래 찾아보면서 시도해보니 되는건 아래의 하나.

원인은 서버가 smb1을 지원하지 않아도 gvfsd-smb-browse의 버그로 인해서

smb1을 지원하도록 설정을 해야 인자가 맞아서 돌아가는 것으로 보인다.

Because of a bug in gvfsd-smb-browse the initial contact between client and server is with SMB1.

Edit /etc/samba/smb.conf and right under the workgroup = WORKGROUP line add:

client min protocol = NT1
server min protocol = NT1

[링크 : https://askubuntu.com/questions/1250885/file-sharing-stopped-working-after-20-04-dist-upgrade]

 

테스트 해보니 나의 경우에는

server min protocol = NT1

만 넣어도 되는데 말들이 많으니 두개다 넣는거 추천

'Linux > Ubuntu' 카테고리의 다른 글

debian nvme tool  (0) 2023.08.28
edid-read  (0) 2023.08.17
htop graph style  (0) 2023.07.07
mono-complete  (0) 2023.07.05
ubuntu 22.04 wayland vs x.org on 4K dual  (0) 2023.06.26
Posted by 구차니
Programming/web 관련2023. 7. 24. 12:33

canvas로 무언가를 그리는걸 구현했는데 1초에 한번 읽고

다시 붙여 넣고, 다시 1줄 붙여 넣고 이런식으로 1초 이내에 몇번의 작업을 하는 코드를 작성했더니

크롬에서 아래와 같은 notice 를 띄운다. 일단 최소한 경고는 아닌데..

Canvas2D: Multiple readback operations using getImageData are faster with the willReadFrequently attribute set to true. See: https://html.spec.whatwg.org/multipage/canvas.html#concept-canvas-will-read-frequently

 

링크를 찾아가서 보면 will read frequently를 true 로 설정해주면 최적화 된다고 하는데

The CanvasRenderingContext2D object also has a will read frequently boolean. When a CanvasRenderingContext2D object's will read frequently is true, the user agent may optimize the canvas for readback operations.
On most devices the user agent needs to decide whether to store the canvas's output bitmap on the GPU (this is also called "hardware accelerated"), or on the CPU (also called "software"). Most rendering operations are more performant for accelerated canvases, with the major exception being readback with getImageData(), toDataURL(), or toBlob(). CanvasRenderingContext2D objects with will read frequently equal to true tell the user agent that the webpage is likely to perform many readback operations and that it is advantageous to use a software canvas.

 

어디다가 저걸 넣어야 하나 해서 따라가보니 getContext("2d")로 끝낼게 아니라, 초기화 옵션으로 주면 되는 듯.

context = canvas.getContext('2d' [, { [ alpha: true ] [, desynchronized: false ] [, colorSpace: 'srgb'] [, willReadFrequently: false ]} ])Returns a CanvasRenderingContext2D object that is permanently bound to a particular canvas element.
If the alpha member is false, then the context is forced to always be opaque.
If the desynchronized member is true, then the context might be desynchronized.
The colorSpace member specifies the color space of the rendering context.
If the willReadFrequently member is true, then the context is marked for readback optimization.
context.canvas
MDN
Returns the canvas element.
attributes = context.getContextAttributes()Returns an object whose:

[링크 : https://html.spec.whatwg.org/multipage/canvas.html#canvasrenderingcontext2d]

 

그래서 결과적으로 아래와 같이 getContext에 willReadFrequently 를 추가해주니 별다른 경고가 발생하지 않는다.

var canvas = document.getElementById(cvsID)
var ctx = canvas.getContext("2d");
var imgObj = ctx.getImageData(0,0, canvas.width, canvas.height - 1);
var canvas = document.getElementById(cvsID)
var ctx = canvas.getContext("2d", {willReadFrequently : true} );
var imgObj = ctx.getImageData(0,0, canvas.width, canvas.height - 1);

[링크 : https://stackoverflow.com/questions/74101155/chrome-warning-willreadfrequently-attribute-set-to-true]

'Programming > web 관련' 카테고리의 다른 글

웹 브라우저 10080 포트 접근 차단 이유  (0) 2023.08.03
javascript 배열을파일로 저장하기  (0) 2023.08.02
webGPU  (0) 2023.05.18
chart.js log 스케일  (0) 2023.03.31
chatGPT님 가라사대 Server-Sent Events (SSE)  (0) 2023.03.15
Posted by 구차니
embeded/raspberry pi2023. 7. 24. 10:52

openOCD(ftdi jtag) - rpi 3 jtag 연결

[링크 : https://ahyuo79.blogspot.com/2020/02/openocd-ftdi-jtag.html]

 

빠르다면 빠른 속도.

Part No: FT2232HQ
USB Hi-Speed to Dual Channel Serial UART/FIFO/JTAG/SPI/I2C IC, QFN-64
Hi-speed USB 2.0 Slave to Dual Channel UART / Serial Converter

 Data Rates: 12Mbaud (UART) up to 40MB/s (Sync FIFO)  USB Transfer Modes: Bulk  Interfaces: UART, FIFO, 2 x MPSSE, Fast serial, 8051 MCU emulation, 16 GPIOs  USB Host: No  Packages: 64-pin QFN  Channels: 2  I/O Voltage: 3.3V  USB Class: Vendor  Virtual Com Port: Yes  Operating Temperature: -40°C to +85°C
Standard Price (Easy checkout)
Order Quantity Price per Unit
1 - 9 : USD5.10
10 - 49 : USD4.90
50 - 99 : USD4.80
100 - 249 : USD4.70
250 - 499 : USD4.50
500 - 999 : USD4.25

Key Hardware Features
Single chip USB to dual serial / parallel ports with a variety of configurations.
Entire USB protocol handled on the chip. No USB specific firmware programming required.
USB 2.0 High Speed (480Mbits/second) and Full Speed (12Mbits/second) compatible.
Dual Multi-Protocol Synchronous Serial Engine (MPSSE) to simplify synchronous serial protocol (USB to JTAG, I2C, SPI or bit-bang) design.
Dual independent UART or FIFO ports configurable using MPSSEs.
Independent Baud rate generators.
RS232/RS422/RS485 UART Transfer Data Rate up to 12Mbaud. (RS232 Data Rate limited by external level shifter).
USB to parallel FIFO transfer data rate up to 10Mbyte/sec.
Single channel synchronous FIFO mode for transfers up to 40 Mbytes/sec.
CPU-style FIFO interface mode simplifies CPU interface design.
MCU host bus emulation mode configuration option.
Fast Opto-Isolated serial interface option.
FTDI’s royalty-free Virtual Com Port (VCP) and Direct (D2XX) drivers eliminate the requirement for USB driver development in most cases.
Adjustable receive buffer timeout.
Option for transmit and receive LED drive signals on each channel.
Enhanced bit-bang Mode interface option with RD# and WR# strobes.
FT245B-style FIFO interface option with bidirectional data bus and simple 4 wire handshake interface.
Highly integrated design includes +1.8V LDO regulator for VCORE, integrated POR function and on chip clock multiplier PLL (12MHz – 480MHz).
Asynchronous serial UART interface option with full hardware handshaking and modem interface signals.
Fully assisted hardware or X-On / X-Off software handshaking.
UART Interface supports 7/8 bit data, 1/2 stop bits, and Odd/Even/Mark/Space/No Parity.
Auto-transmit enable control for RS485 serial applications using TXDEN pin.
Operational configuration mode and USB Description strings configurable in external EEPROM over the USB interface.
Configurable I/O drive strength (4,8,12 or 16mA) and slew rate.
Low operating and USB suspend current.
Supports bus powered, self powered and high-power bus powered USB configurations.
UHCI/OHCI/EHCI host controller compatible.
USB Bulk data transfer mode (512 byte packets in Hi-Speed mode).
+1.8V (chip core) and +3.3V I/O interfacing (+5V Tolerant).
Extended -40°C to 85°C industrial operating temperature range.
Compact 64-LD Lead Free LQFP/LQFN package and 56-LD VQFN packages.
+3.3V single supply operating voltage range.

[링크 : https://ftdichip.com/products/ft2232hq/]

 

[링크 : https://ftdichip.com/software-examples/mpsse-projects/ftcjtag-examples/]

[링크 : https://ftdichip.com/software-examples/mpsse-projects/]

 

 

'embeded > raspberry pi' 카테고리의 다른 글

DHT22 도착!  (0) 2023.09.19
bmp280 HW-611  (0) 2023.09.19
rpi bear metal  (0) 2023.07.10
라즈베리 3 전원 off  (0) 2023.07.02
rpi win 10 IoT  (0) 2023.02.02
Posted by 구차니