Skip to content

Latest commit

ย 

History

History
477 lines (311 loc) ยท 18.8 KB

GettingStarted.md

File metadata and controls

477 lines (311 loc) ยท 18.8 KB
title author date
Getting Started.md
Kyungpyo Kim ([email protected])
2018-04-10

Getting Started

Objectives

  • ๊ฐœ๋ฐœํ™˜๊ฒฝ์„ ์„ค์น˜ํ•˜๊ณ 
  • AurixRacer ์ฝ”๋“œ๋ฅผ ๋‹ค์šด ๋ฐ›์•„ ๋นŒ๋“œํ•˜๊ณ 
  • ๊ฐ์ข… IO๋ฅผ ์—ฐ๊ฒฐํ•˜์—ฌ ๋™์ž‘ ์—ฌ๋ถ€๋ฅผ ํ™•์ธํ•œ๋‹ค.

References

Example Description

  • ๊ฐœ๋ฐœํ™˜๊ฒฝ ๊ตฌ์ถ•
    • ๊ฐœ๋ฐœํ™˜๊ฒฝ ๊ตฌ์ถ•์„ ์œ„ํ•ด Tricore tool chain(compiler)์™€ UDE(Universal Debugger Engine)๊ฐ€ ํฌํ•จ๋˜์–ด ์žˆ๋Š” HighTec ์„ค์น˜
    • ์ธํ”ผ๋‹ˆ์–ธ์—์„œ ์ œ๊ณตํ•˜๋Š” BIFACES build environment ์„ค์น˜
    • Serial ํ†ต์‹  ๋ฐ Shell ํ™˜๊ฒฝ ๊ตฌ์ถ•์„ ์œ„ํ•œ SerialPlot, TeraTerm ์„ค์น˜
  • BIFACES ๋ฅผ ํ†ตํ•˜์—ฌ ์†Œ์Šค์ฝ”๋“œ ๋นŒ๋“œ
    • ๋‹ค์šด๋กœ๋“œ ๋ฐ›๊ณ , ๋นŒ๋“œํ•˜๊ณ , ๋ฒ„๋‹ํ•˜๊ณ , Shell ๋กœ ๋™์ž‘ ํ™•์ธ (TFT ๋Š” AK_TC23A ๋งŒ ์ง€์›)
  • ์˜ˆ์ œ ๋™์ž‘ ํ™•์ธ (SB_TC27D)
    • ShieldBuddy ๋ณด๋“œ(์ดํ•˜ SB_TC27D): LED ๋™์ž‘, Encoder, Line scan camera
    • DC Motor Control Shield BTN8982 ๋ณด๋“œ(์ดํ•˜ MCS_BTN8982)๋ฅผ ์ด์šฉํ•œ Motor
  • ์˜ˆ์ œ ๋™์ž‘ ํ™•์ธ (AK_TC23A)
    • Application Kit TC2X7 V1.0 ๋ณด๋“œ(์ดํ•˜ AK_TC23A)๋ฅผ ์ด์šฉํ•œ LED, Beeper
    • DC Motor Control Kit ๋ณด๋“œ(์ดํ•˜ MotorKit)๋ฅผ ์ด์šฉํ•œ Motor, Encoder, Line scan camera ์˜ˆ์ œ ๋™์ž‘

๊ฐœ๋ฐœํ™˜๊ฒฝ ์„ค์น˜

HighTec Installation

  • Dependency: Java SE Development Kit (32bit)
    • Windows 32bit 64bit ์šด์˜์ฒด์ œ ๋ชจ๋‘ 32bit ๋ฒ„์ „์œผ๋กœ ๋‹ค์šด๋ฐ›์•„์•ผ ํ•จ (์ตœ์‹  ๋ฒ„์ „์œผ๋กœ ๋ฐ›์œผ๋ฉด ๋จ)

GettingStarted_Java

  • Tricore tool chain ํ™ˆํŽ˜์ด์ง€์—์„œ ๊ฐœ์ธ ์ •๋ณด ์ž…๋ ฅ ํ›„ Generate License File & Download ๋ฒ„ํŠผ ํด๋ฆญ
    • ์ด๋•Œ ์ž…๋ ฅํ•œ ๊ฐœ์ธ์ •๋ณด๋Š” HighTec ๋‹ค์šด๋กœ๋“œ ์™„๋ฃŒ ํ›„ License ์ธ์ฆ ์‹œ ํ•„์š”
    • ๋‹ค์šด๋กœ๋“œ ์™„๋ฃŒํ•œ "license.lic" ํŒŒ์ผ์€ "C:\HighTec\licenses"๋กœ ๋ณต์‚ฌ

GettingStarted_01Hightec

  • free_tricore_entry_tool_chain.zip ๋‹ค์šด๋กœ๋“œ ํ›„ ์••์ถ• ํ•ด์ œ

  • ์••์ถ• ํ•ด์ œ๋œ ํŒŒ์ผ ์ค‘ setup.exe ๋ฅผ ์‹คํ–‰ ํ›„ ์„ค์น˜ ์ง„ํ–‰

GettingStarted_02HighTecCompiler

(HighTec ์„ค์น˜ ์ง„ํ–‰ ์ค‘ UDEVisualPlatfrom ๊ณผ CDM Driver Package HighTec ๊ฐ€ ์„ค์น˜๋จ)

  • ์„ค์น˜ ์™„๋ฃŒ ํ›„ Eclipse.exe (C:\HIGHTEC\ide\eclipse-v1.6.1) , UDEVisualPlatfrom.exe (C:\Program Files (x86)\pls\UDE Starterkit 4.10) ์‹คํ–‰ ํ™•์ธ

    • Eclipse ์‹คํ–‰ํ™”๋ฉด (Workspace๋Š” defualt ๊ฐ’ ์‚ฌ์šฉ)

GettingStarted_HighTec

BIFACES Installation

  • BIFACES_V1_0_2_Win32.exe

    • ์ฐธ๊ณ ๋กœ BIFACES_V1_0_2_Win64.exe ์„ค์น˜ํ•˜์—ฌ ์‚ฌ์šฉํ•˜๋Š” ๊ฒƒ๋„ ๊ฐ€๋Šฅํ•˜์ง€๋งŒ, Bifaces/eclipse/eclipse.ini ์—์„œ ์ž๋ฐ”๊ฐ€ ์„ค์น˜๋œ ๋””๋ ‰ํ† ๋ฆฌ๋ฅผ ์„ค์ •ํ•ด์ฃผ๋Š” ์ถ”๊ฐ€ ์ž‘์—… ํ•„์š”

    • BIFACES_V1_0_2_Win32.exe ์‹คํ–‰

    • Select Components ์—์„œ Full installation ์„ ํƒ ํ›„ ์„ค์น˜ ์ง„ํ–‰

GettingStarted_03BIFACES

  • ์„ค์น˜ ์™„๋ฃŒ ํ›„ StartBifaces.bat (C:\Tools\BifacesWin32) ํŒŒ์ผ์„ ์‹คํ–‰
    • .bat file ์‹คํ–‰ ํ™”๋ฉด (Workspace๋Š” defualt ๊ฐ’ ์‚ฌ์šฉ)

GettingStarted_BiWelcome

SerialPlot Installation

GettingStarted_SerialPlot

TeraTerm Installation

  • TeraTerm ๊ณต์‹ ํ™ˆํŽ˜์ด์ง€์— ์ ‘์†ํ•˜์—ฌ ๋‹ค์šด๋กœ๋“œ ๋ฐ ์„ค์น˜ ์ง„ํ–‰

  • Select Components ์—์„œ Standard installation ์„ ํƒ ํ›„ ์„ค์น˜ ์ง„ํ–‰

GettingStarted_16Teraterm

  • ์„ค์น˜ ์™„๋ฃŒ ํ›„ ttermpro.exe (C:\Program Files (x86)\teraterm) ์‹คํ–‰ ํ™•์ธ
    • ttermpro.exe ์‹คํ–‰ ํ™”๋ฉด

GettingStarted_17Teraterm


Project Build

Project download and import

  • AurixRacer ํ™ˆํŽ˜์ด์ง€ ์—์„œ Clone or download >> Download ZIP ํด๋ฆญ ํ›„ AurixRacer-master.zip downloasd ํ›„ ์••์ถ• ํ•ด์ œ

GettingStarted_04Repository

  • ์••์ถ• ํ•ด์ œํ•œ ํด๋” ํ™•์ธ

GettingStarted_SourceCode

  • BIFACES ์‹คํ–‰ (StartBifaces.bat (C:\Tools\BifacesWin32) ์‹คํ–‰)

  • Workspace ์„ค์ •

    • ์†Œ์Šค์ฝ”๋“œ๋ฅผ ํฌํ•จํ•œ ํ”„๋กœ์ ํŠธ๋ฅผ ๊ด€๋ฆฌ ํ•  ํด๋” ์„ค์ •
    • ์ƒˆ๋กœ ๋งŒ๋“  Workspace์— src ํด๋” (~\AurixRacer-master\src) ๋ฅผ ๋ณต์‚ฌ ๋˜๋Š” ์ด๋™ ํ•˜๊ฑฐ๋‚˜
    • src ํด๋”๋ฅผ Workspace๋กœ ์ง€์ •

GettingStarted_05Workspace

  • ๋‹ค์šด๋กœ๋“œ ๋ฐ›์€ AurixRacer ํ”„๋กœ์ ํŠธ Import
    • File >> Import ํด๋ฆญ

GettingStarted_06Import

  • General >> Existing Projects into Workspace ์„ ํƒ ํ›„ Next > ํด๋ฆญ

GettingStarted_07General

  • Select root directory ์—์„œ Browse... ํด๋ฆญ, Workspace์˜ src ํด๋” ์„ ํƒ ํ›„ ํ™•์ธ ํด๋ฆญ

GettingStarted_08Select

  • Projects ํƒญ์—์„œ AurixRacer_TC27D ์ฒดํฌ๋ฐ•์Šค ์„ ํƒ ํ›„ Finish ํด๋ฆญ
    • ๋‹ค๋ฅธ ํ”„๋กœ์ ํŠธ๋Š” AurixRacer ์—์„œ ๋‹ค๋ฃจ๋Š” ๊ฐ๊ฐ์˜ ๋ชจ๋“ˆ๊ธฐ๋Šฅ ์œผ๋กœ ๋‚˜๋ˆ„์–ด์ ธ ์žˆ์Œ

GettingStarted_09Project

  • Project Explorer ๋ฅผ ํ†ตํ•ด Import ๋œ ํ”„๋กœ์ ํŠธ๋ฅผ ํ™•์ธํ•  ์ˆ˜ ์žˆ์Œ (Welcome ์ฐฝ์€ ๋‹ซ์œผ๋ฉด ๋จ)

GettingStarted_10Explorer

Build

  • Build ์ „ Complier ์„ค์ •

    • Project explorer ์ฐฝ์—์„œ AurixRacer_SB_TC27D >> 1_ToolEnv >> 0_Build >> 1_Config >> Config_Tricore_Gnuc ์•ˆ์— ์žˆ๋Š” Config_Gnuc.mk ํŒŒ์ผ์„ ๋”๋ธ”ํด๋ฆญ ํ•˜๋ฉด ํŽธ์ง‘ ๊ฐ€๋Šฅํ•œ Edit์ฐฝ์ด ๋‚˜์˜ด
    • Tricore toolchain์˜ ๊ฒฝ๋กœ ๋ฐ ๋ฒ„์ „์ด ๋งž๊ฒŒ ์„ค์ •๋˜์–ด ์žˆ๋Š”์ง€ ํ™•์ธ
    B_GNUC_TRICORE_PATH:= C:\HIGHTEC\toolchains\tricore\v4.9.1.0-infineon-2.0
    
  • Project explorer ๋ฅผ ํ†ตํ•œ build

    • Project Explorer ์ฐฝ์—์„œ Build ํ•  ํ”„๋กœ์ ํŠธ๋ฅผ ์šฐํด๋ฆญ ํ•œ ๋’ค Build Project ํด๋ฆญ

GettingStarted_11Build

  • Build ํ›„ ๊ฒฐ๊ณผ
    • 0_Build ํด๋”์— 9_Make ํด๋” ์ƒ์„ฑ
    • 2_Out ํด๋” ์ƒ์„ฑ
    • 2_Out/Tricore_Gnuc/Gnuc_Files ์— .elf ํŒŒ์ผ๊ณผ .hex ํŒŒ์ผ ๊ทธ๋ฆฌ๊ณ  .map ํŒŒ์ผ ์ƒ์„ฑ

GettingStarted_12Build

  • Build error ๋ฐœ์ƒ์‹œ ์ถ”๊ฐ€์‚ฌํ•ญ ์˜ Build - Error181 ์ฐธ๊ณ 

UDEVisualPlatfrom ์„ ์ด์šฉํ•ด ์‹คํ–‰ ํŒŒ์ผ ๋ฒ„๋‹, TeraTerm ์„ ๋™์ž‘ ํ™•์ธ

  • Build๋ฅผ ํ†ตํ•ด ์ƒ์„ฑํ•œ elf ํŒŒ์ผ์„ AppKit ์— ๋‹ค์šด๋กœ๋“œ ํ•˜๊ณ  TeraTerm์„ ์ด์šฉํ•ด Shell ํ™˜๊ฒฝ ์‹คํ–‰

  • UDEVisualPlatfrom ์„ ์‹คํ–‰ํ•˜์—ฌ File >> Open Workspace... ํด๋ฆญ

GettingStarted_18UDE

  • BIFACES Workspase/AurixRacer_SB_TC27D/tools/ShieldBuddy_TC27x.wsx ํŒŒ์ผ ์—ด๊ธฐ (BIFACES Workspase/AurixRacer_AK_TC23A/tools/AppKit_TC23x.wsx ํŒŒ์ผ ์—ด๊ธฐ)

GettingStarted_19UDE

  • ๋‹ค์Œ๊ณผ ๊ฐ™์€ ์ฐฝ์ด ๋œจ๋ฉด ํ™•์ธ ํด๋ฆญ ํ›„ New ํด๋ฆญ

GettingStarted_SelTarget

  • Use a default target configuration ์ฒดํฌ ํ›„ ํ•˜๋‹จ์˜ ํด๋”ํŠธ๋ฆฌ์—์„œ TriCore >> Hitex >> ShieldBuddy >> Hitex ShieldBuddy with TC275T D-Step (Multicore Configuration) ์„ ํƒ ํ›„ ๋งˆ์นจ ํด๋ฆญ

GettingStarted_CreateConfig

  • *.cfg ํŒŒ์ผ ์ €์žฅ ํ›„ ํ™•์ธ ํด๋ฆญ

  • ์ƒ๋‹จ์˜ File >> Load Program ํด๋ฆญ ํ›„ ๋นŒ๋“œํ•œ Elf ํŒŒ์ผ ์„ ํƒ (2_Out/Tricore_Gnuc/Gnuc_Files/AurixRacer_SB_TC27D_Tc.elf )

GettingStarted_Elf

  • Elf ํŒŒ์ผ ๊ฒฝ๋กœ ํ™•์ธ ํ›„ OK ํด๋ฆญ (๊ฒฝ๋กœ๊ฐ€ ๋นŒ๋“œ ํ›„ ์ƒ์„ฑ๋œ 2_Out/Tricore_Gnuc/Gnuc_Files/AurixRacer_SB_TC23A_tc.elf ํŒŒ์ผ๋กœ ์„ค์ •๋˜์–ด ์žˆ๋Š”์ง€ ํ™•์ธ)

GettingStarted_20Load

  • ShieldBuddy ๋ฅผ USB๋กœ Host PC์™€ ์—ฐ๊ฒฐํ•œ ํ›„ File >> Connect Target System.. ํด๋ฆญ (Host PC์™€ ์ฒซ ์—ฐ๊ฒฐ ์‹œ ๋“œ๋ผ์ด๋ฒ„ ๋‹ค์šด๋กœ๋“œ๊ฐ€ ์ง„ํ–‰๋จ)

GettingStarted_21Connect

  • UDE - FLASH/OTP Memory Programming Tool ์ฐฝ์—์„œ Program all ๋ฒ„ํŠผ ํด๋ฆญ

GettingStarted_22Program

  • Execute Memtool Command ์ฐฝ์—์„œ Results: success ์™€ ๊ฐ™์ด ๋œจ๋ฉด ShieldBuddy ์— ํ”„๋กœ๊ทธ๋ž˜๋ฐ์ด ์™„๋ฃŒ๋จ, Exit ๋ฅผ ํด๋ฆญํ•˜์—ฌ UDE - FLASH/OTP Memory Programming Tool ์ฐฝ๊ณผ Execute Memtool Command ์ฐฝ์„ ๋‹ซ์Œ

GettingStarted_23Execute

  • Debug >> Start Program Execution ์„ ํด๋ฆญํ•˜๋ฉด ShieldBuddy ์— ๋‹ค์šด๋กœ๋“œ ๋œ ํ”„๋กœ๊ทธ๋žจ์ด ์‹คํ–‰๋จ

GettingStarted_24Start

  • File >> Disconnect Target System.. ํด๋ฆญํ•˜์—ฌ Host PC์™€ ShieldBuddy ์™€์˜ ์—ฐ๊ฒฐ์„ ํ•ด์ œ

GettingStarted_26Dis

  • COM port ํ™œ์„ฑํ™”(์ฒซ ์—ฐ๊ฒฐ์‹œ ํ•„์š”)
    • ์žฅ์น˜๊ด€๋ฆฌ์ž ์‹คํ–‰
    • ๋ฒ”์šฉ ์ง๋ ฌ ๋ฒ„์Šค ์ปจํŠธ๋กค๋Ÿฌ >> Infineon DAS JDS COM ์šฐํด๋ฆญ ํ•œ ๋’ค ์†์„ฑ(R) ํด๋ฆญ

GettingStarted_27Com

  • ๊ณ ๊ธ‰ ํƒญ์—์„œ VCP ๋“œ๋ผ์ด๋ฒ„ ์„ค์น˜ ์ฒดํฌ ํ›„ ํ™•์ธ ํด๋ฆญ

GettingStarted_28Enable

  • ShieldBuddy ์™€ Host PC์˜ USB ์—ฐ๊ฒฐ์„ ๋ถ„๋ฆฌํ–ˆ๋‹ค๊ฐ€ ์žฌ์—ฐ๊ฒฐ ํ•œ ๋’ค ์žฅ์น˜๊ด€๋ฆฌ์ž ์—์„œ ๋“ฑ๋ก๋˜๋Š” COM port์˜ ๋ฒˆํ˜ธ ํ™•์ธ (์žฌ์—ฐ๊ฒฐ์‹œ ๋“œ๋ผ์ด๋ฒ„๊ฐ€ ์ž๋™์œผ๋กœ ์„ค์น˜๋จ)

GettingStarted_29Com

  • TeraTerm ์‹คํ–‰ ํ›„ Serial ์ฒดํฌ, Port: ์— Infineon DAS COM (COMn) ์„ ํƒ ํ›„ OK ํด๋ฆญ

GettingStarted_30Tera

  • Setup >> Serial port... ํด๋ฆญ

GettingStarted_31Serial

  • Buad rate ์„ 115200 ์œผ๋กœ ์„ค์ •ํ•˜๊ณ  OK ํด๋ฆญ

GettingStarted_32Set

  • TeraTerm VT ์ฐฝ์—์„œ enter ๋ฅผ ์ž…๋ ฅํ•˜๋ฉด Shell> ์ด ํ™”๋ฉด์— ๋‚˜ํƒ€๋‚จ! ์—ฌ๊ธฐ์— info ๋ฅผ ์ž…๋ ฅํ•˜๊ณ  enter๋ฅผ ์ž…๋ ฅํ•˜๋ฉด ์•„๋ž˜์˜ ์‚ฌ์ง„๊ณผ ๊ฐ™์ด Welcome to Aurix Racer Shell ํ™•์ธ ๊ฐ€๋Šฅ

GettingStarted_33Help

Shell ์„ ์ด์šฉํ•œ ๋™์ž‘ ํ™•์ธ

  • Digital I/O, Analog I/O ์žฅ์น˜์˜ ๋™์ž‘ ํ™•์ธ

  • DC motor, Servo, Encoder, Line scan camera๋“ฑ ์ฃผ๋ณ€ ์žฅ์น˜ ๋™์ž‘ ํ™•์ธ

    • DC Motor Control Shield with BTN8982 , Servo ๋“ฑ๊ณผ ShieldBuddy ์˜ ์—ฐ๊ฒฐ์€ ConnectionGuide๋ฅผ ํ†ตํ•ด ํ™•์ธ ๊ฐ€๋Šฅ

๊ธฐ๋ณธ์ ์ธ Shell ์‚ฌ์šฉ๋ฒ•

  • Shell ์€ ์‚ฌ์šฉ์ž๊ฐ€ ์ž…๋ ฅํ•œ ๋ช…๋ น์–ด๋ฅผ ํ•ด์„ํ•˜์—ฌ ShieldBuddy ๊ฐ€ ๋™์ž‘ํ•  ์ˆ˜ ์žˆ๋„๋ก ํ•ด์ฃผ๋Š” ์—ญํ• ์„ ํ•จ(์ž์„ธํ•œ ๋‚ด์šฉ์€ MyOwnTerminal ์ฐธ๊ณ )

  • ๋ช…๋ น์–ด๋ฅผ ํ†ตํ•ด AurixRacer ์—์„œ ์ œ๊ณตํ•˜๋Š” Peripheral ์žฅ์น˜๋“ค์„ ์ œ์–ดํ•˜๊ณ  ์ƒํƒœ ํ™•์ธ ๊ฐ€๋Šฅ

  • help ๋ช…๋ น์–ด๋ฅผ ํ†ตํ•ด ์‚ฌ์šฉ๊ฐ€๋Šฅํ•œ ๋ช…๋ น์–ด ํ™•์ธ ๊ฐ€๋Šฅ

    Shell>help
    status   : Show the application status
    m0v      : Motor0Vol
    m1v      : Motor1Vol
    m0e      : Motor0Enable
    srv      : Servo Angle
    srvscan  : ServoScan Angle
    l0       : LED0
    l1       : LED1
    l2       : LED2
    ls0      : LineScan0
    ls1      : LineScan1
    mls      : Monitoring LineScan
    vadc     : Vadc Backgound 1
    enc      : Encoder
    p00_0    : Port00_0
    p00_1    : Port00_1
    info     : Show the welcome screen
    help     : Display command list.
    
  • ํŠน์ • ๋ช…๋ น์–ด์…‹์˜ ์‚ฌ์šฉ๋ฒ•(syntax)์„ ํ™•์ธํ•˜๊ธฐ ์œ„ํ•ด์„œ๋Š” "(๋ช…๋ น์–ด) ?"" ๋ฅผ ์ž…๋ ฅ ํ›„ enter๋ฅผ ์ž…๋ ฅํ•œ๋‹ค.

    Shell>p00_0 ?
      Syntax     : p00_0
    Shell>l0 ?
      Syntax     : l0 0/1
    Shell>vadc ?
      Syntax     : vadc
    Shell>srv ?
      Syntax     : srv frac-value
    Shell>
    
  • ์ƒ์„ธํ•œ ๋‚ด์šฉ์€ MyOwnTerminal ๋ฌธ์„œ์™€ AsclinShellInterface.c ์ฝ”๋“œ ์ฐธ๊ณ 

LED

  • l0, l1, l2 ๋ช…๋ น์–ด๋ฅผ ํ†ตํ•ด ShieldBuddy์˜ DIG.40, DIG.38, DIG.36์„ ๊ฐ๊ฐ๋™์ž‘์‹œํ‚ฌ ์ˆ˜ ์žˆ๋‹ค.

    Shell>l0 ?
      Syntax     : l0 0/1
    Shell>l0 0
      Led0:    0    # DIG.40 LOW
    Shell>l1 1
      Led1:    1    # DIG.38 HIGH
    Shell>l2 0
      Led12:   0    # DIG.36 LOW
    

DC motor

  • m0v, m0e ๋ช…๋ น์–ด๋ฅผ ์ด์šฉํ•ด ๋ชจํ„ฐ ์ œ์–ด์™€ ์ƒํƒœ ํ™•์ธ ๊ฐ€๋Šฅ

    • frac_value: -1.0 ~ 1.0
    Shell>m0e ?
      Syntax     : m0e 0/1
    Shell>m0e 1                     # DC motor ๋™์ž‘ ๊ฐ€๋Šฅํ•˜๋„๋ก ์„ค์ •
      Motor0En:    1
    Shell>m0v ?
      Syntax     : m0v frac-value
    Shell>m0v -0.2                   # Motor์— ์ธ๊ฐ€๋˜๋Š” ์ „์••์„ ์ œ์–ด
      Motor0Vol: -0.20 fraction      
    

Servo

  • srv ๋ช…๋ น์–ด๋ฅผ ์ž…๋ ฅํ•ด ๋™์ž‘ ํ™•์ธ์ด ๊ฐ€๋Šฅ

    • frac_value: -1.0 ~ 1.0
    Shell>srv ?
      Syntax     : srv frac-value
    Shell>srv 0.5
      SrvAngle: 0.50 fraction
    Shell>srv -0.5
      SrvAngle: -0.50 fraction
    

Line scan camera

  • Line scan camera๋Š” 2๊ฐœ์˜ ์ฑ„๋„์„ ์ œ๊ณตํ•˜๋ฉฐ ๊ฐ๊ฐ ls0 , ls1 ๋ช…๋ น์–ด๋ฅผ ํ†ตํ•ด์„œ ๊ฐ’ ํ™•์ธ์ด ๊ฐ€๋Šฅ

    Shell>ls0 ?
      Syntax     : ls0
    Shell>ls0
      LineScan0 results
     1752, 1752, 1734, 1738, 1742, 1745, 1748, 1748, 1748, 1750, 1750, 1749, 1749, 1749, 1748, 1747, 1747, 1746, 1730, 1737, 1742, 1744, 1747, 1748, 1750, 1749, 1751, 1750, 1751, 1752, 1752, 1752, 1751, 1734, 1738, 1743, 1745, 1747, 1748, 1750, 1749, 1750, 1751, 1751, 1751, 1752, 1752, 1733, 1738, 1740, 1742, 1742, 1743, 1744, 1744, 1746, 1747, 1749, 1751, 1751, 1752, 1752, 1733, 1719, 1730, 1736, 1741, 1744, 1747, 1748, 1748, 1748, 1748, 1747, 1747, 1746, 1746, 1746, 1746, 1746, 1746, 1747, 1745, 1746, 1746, 1746, 1748, 1749, 1751, 1751, 1752, 1751, 1750, 1733, 1720, 1710, 1704, 1700, 1697, 1695, 1694, 1693, 1692, 1691, 1692, 1691, 1692, 1690, 1689, 1690, 1690, 1690, 1690, 1690, 1690, 1712, 1721, 1730, 1738, 1743, 1746, 1748, 1750, 1748, 1748, 1747, 1746, 1746
    Shell>ls1
      LineScan1 results
     1753, 1754, 1753, 1735, 1739, 1741, 1743, 1744, 1746, 1746, 1746, 1747, 1747, 1747, 1748, 1748, 1748, 1748, 1749, 1748, 1750, 1752, 1752, 1753, 1753, 1753, 1752, 1752, 1753, 1754, 1753, 1754, 1754, 1752, 1751, 1752, 1753, 1753, 1753, 1754, 1754, 1753, 1751, 1753, 1754, 1754, 1756, 1755, 1754, 1735, 1741, 1745, 1747, 1750, 1750, 1751, 1752, 1750, 1748, 1753, 1754, 1755, 1754, 1753, 1752, 1752, 1752, 1753, 1753, 1754, 1754, 1755, 1752, 1753, 1754, 1754, 1755, 1755, 1753, 1751, 1751, 1750, 1750, 1749, 1749, 1749, 1749, 1751, 1756, 1752, 1753, 1755, 1753, 1752, 1735, 1739, 1743, 1746, 1749, 1752, 1751, 1752, 1751, 1748, 1749, 1749, 1748, 1748, 1748, 1748, 1748, 1748, 1747, 1748, 1748, 1748, 1750, 1752, 1752, 1753, 1753, 1753, 1754, 1735, 1722, 1732, 1737, 1743
    
  • SerialPlot ํ”„๋กœ๊ทธ๋žจ์„ ์ด์šฉํ•ด ์‹ค์‹œ๊ฐ„ ๊ฐ’ ํ™•์ธ ๊ฐ€๋Šฅ

    • mls ๋ช…๋ น์–ด๋ฅผ ํ†ตํ•ด ์ฃผ๊ธฐ์ ์œผ๋กœ line scan camera์˜ ๊ฐ’์„ ๋ฐ›์•„์˜ฌ ์ˆ˜ ์žˆ์Œ
    Shell>mls ?
      Syntax     : mls period_ms
    Shell>mls 100 # 100msec ์ฃผ๊ธฐ๋กœ line scan camera ๊ฐ’์„ ๋ถˆ๋Ÿฌ์˜ด
      mls: 100
    Shell> 1749, 1752
     1749, 1753
     1750, 1753
     1732, 1752
     1745, 1743
     1748, 1747
     1749, 1749
     1751, 1750
     1750, 1751
     1750, 1752
     1750, 1753
     1750, 1753
     (...)
    
    
  • SerialPlot ์„ ์‹คํ–‰ํ•˜๊ณ  ์•„๋ž˜ ์ด๋ฏธ์ง€์™€ ๊ฐ™์ด ํฌํŠธ ์„ค์ • ํ›„ Open ํด๋ฆญ

GettingStarted_SerialPlot3

  • ์•„๋ž˜์™€ ๊ฐ™์ด Command ๋ฅผ ์ž…๋ ฅํ•˜๊ณ  Send๋ฅผ ์ž…๋ ฅํ•˜๋ฉด ์‹ค์‹œ๊ฐ„์œผ๋กœ Line scan camera์˜ raw ๋ฐ์ดํ„ฐ ํ™•์ธ ๊ฐ€๋Šฅ(LineScan0 ๋งŒ ์‚ฌ์šฉ)

GettingStarted_SerialPlot2

Encoder

  • enc ๋ช…๋ น์–ด๋ฅผ ํ†ตํ•ด ๋™์ž‘ ํ™•์ธ์ด ๊ฐ€๋Šฅ

    Shell>enc ?
      Syntax     : enc
    Shell>enc
      Encoder speed: 1610612736, position: -1060059186, direction: 0
    Shell>enc
      Encoder speed: 1073741824, position: -1059935370, direction: 0
    Shell>enc
      Encoder speed: 1073741824, position: -1060233742, direction: 0
    Shell>enc
      Encoder speed:     0, position: -1060724977, direction: 0
    

Digital I/O

  • P00_0 ๊ณผ P00_1 ์— ์—ฐ๊ฒฐ๋˜์–ด์žˆ๋Š” Digital ์‹ ํ˜ธ๋ฅผ ์ฝ์–ด์˜ด

    Shell>p00_0 ?
      Syntax     : p00_0
    Shell>p00_0
      Port00_0:    0
    Shell>p00_1 ?
      Syntax     : p00_1
    Shell>p00_1
      Port00_1:    1
    

์ถ”๊ฐ€์ ์ธ ์„ค๋ช…

Build error - php.exe ์‹คํ–‰ ๋ฌธ์ œ

  • ๋นŒ๋“œ์‹œ ์ปดํŒŒ์ผ์„ ์œ„ํ•œ Make ํŒŒ์ผ ์ƒ์„ฑ์ด ์•ˆ๋  ๊ฒฝ์šฐ ๋นŒ๋“œ ์—๋Ÿฌ ๋ฐœ์ƒ

  • BIFACES ๊ฐ€ ์„ค์น˜๋œ ๊ฒฝ๋กœ์—์„œ C:\Tools\BifacesTools\Php ๋กœ ์ด๋™ํ•˜์—ฌ php.exe ์‹คํ–‰

  • ์ •์ƒ์ ์œผ๋กœ ์‹คํ–‰ ๋˜์—ˆ์„ ๋•Œ

    GettingStarted_Php

  • php.exe ํŒŒ์ผ์ด ์‹คํ–‰์€ ๋˜์ง€๋งŒ ์•„๋ž˜ ์‚ฌ์ง„๊ณผ ๊ฐ™์ด ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒ

    GettingStarted_PhpMsvc

    • msvcr110.dll ํŒŒ์ผ์„ ๋‹ค์šด๋กœ๋“œ
    • ๋‹ค์šด ๋ฐ›์€ ํŒŒ์ผ์„ C:\Windows\SysWOW64 ํด๋”(์šด์˜์ฒด์ œ Windows 64bit ๊ธฐ์ค€)์— ์ €์žฅ
    • ๋‹ค์‹œ php.exe ํŒŒ์ผ์„ ์‹คํ–‰ํ•˜์—ฌ ์‹คํ–‰์ด ๋˜๋Š”์ง€ ํ™•์ธ (์ •์ƒ์ ์œผ๋กœ ์‹คํ–‰์ด ๋˜๋ฉด ๊ฒ€์€ ๋„์Šค์ฐฝ์ด ๋œฌ๋‹ค) ํ›„ ๋‹ค์‹œ ๋นŒ๋“œ ์‹คํ–‰
  • php.exe ํŒŒ์ผ์ด ์‹คํ–‰๋˜์ง€ ์•Š์„ ๊ฒฝ์šฐ

    GettingStarted_PhpExee

    • ์„ค์น˜๋œ ๋ฐฑ์‹  ํ”„๋กœ๊ทธ๋žจ(ex. ์•Œ์•ฝ)์„ ์ข…๋ฃŒ์‹œํ‚ค๊ณ  BIFACES ๋ฅผ ๋‹ค์‹œ ์„ค์น˜
    • ๋‹ค์‹œ php.exe ํŒŒ์ผ์„ ์‹คํ–‰ํ•˜์—ฌ ์‹คํ–‰์ด ๋˜๋Š”์ง€ ํ™•์ธ ํ›„ ๋‹ค์‹œ ๋นŒ๋“œ ์‹คํ–‰

Analytics