Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - tha

#61
ARM Processors / STM32 ETHERNET #4. TCP SERVER
February 28, 2022, 06:48:52 AM
https://controllerstech.com/stm32-ethernet-4-tcp-server/

STM32 ETHERNET #4. TCP SERVER

นี่เป็นบทช่วยสอนที่สี่ในซีรีส์ STM32 Ethernet และวันนี้เราจะมาดูวิธีสร้าง TCP Server โดยใช้ STM32 ฉันได้กล่าวถึง UDP Server และ Client แล้ว และคุณสามารถตรวจสอบได้ที่นี่

แก้ไขข้อผิดพลาด

ตอนนี้โค้ดได้รับการแก้ไขแล้ว และคุณสามารถรับอักขระได้มากกว่า 5 ตัวโดยไม่มีข้อมูลถูกทำให้เสียหาย
#62
ARM Processors / STM32 ETHERNET #3. UDP CLIENT
February 24, 2022, 06:21:11 AM
https://controllerstech.com/stm32-ethernet-3-udp-client/

STM32 ETHERNET #3. UDP CLIENT

นี่เป็นบทช่วยสอนที่สามในซีรีส์ STM32 Ethernet และวันนี้เราจะมาดูวิธีสร้าง UDP client โดยใช้ STM32 ฉันได้กล่าวถึงบทช่วยสอนเกี่ยวกับ UDP SERVER แล้ว คุณสามารถดูได้ที่นี่

The hardware connection จะคล้ายกับที่ฉันเคยใช้ในวิดีโอแรก และคุณสามารถตรวจสอบได้ที่นี่.
#63
ARM Processors / STM32 ETHENRET #2. UDP SERVER
February 21, 2022, 05:38:00 AM
https://controllerstech.com/stm32-ethenret-2-udp-server/

STM32 ETHENRET #2. UDP SERVER

นี่เป็นบทช่วยสอนที่สองใน STM32 ETHERNET Series และวันนี้เราจะมาดูวิธีสร้างเซิร์ฟเวอร์ UDP โดยใช้ STM32

UDP เป็นโปรโตคอลที่ง่ายที่สุด และนี่คือเหตุผลที่ฉันเริ่มต้นกับมัน

บทช่วยสอนนี้จะครอบคลุมเฉพาะ the UDP SERVER mode, ส่วนถัดไปจะครอบคลุม UDP Client mode, และในทำนองเดียวกัน เราจะย้ายไปยัง TCP และหลังจากนั้นกับ HTTP
#64
ARM Processors / STM32 Ethernet #1. Connection
February 17, 2022, 07:33:14 AM
แปลแบบเดิมมันคงจะไม่เวิร์คเพราะมากมายเกินไป จำไม่ไหวหรอก จะใช้ก็เจาะเป็นเรื่องๆเอา ภาษาอังกฤษสั้นๆคงจะพอแปลกันได้นะครับ
เดี๋ยวจะมาแปลนี่เลย ตัวอย่างเขา Ethernet เป็น M7 แต่เรามาแก้เป็น M3(STM32F107VC) ได้ไม่อยาก ตัวที่มี ETH (อีเทอร์เน็ต) ใน CubeMX จะมีให้เซ็ตอยู่ พร้อม LwIP ด้วย

https://controllerstech.com/stm32-ethernet-1-connection/

น่าจะเวิร์คนะ เขาคงจะไม่ว่าอะไรนะ ขอขอบคุณเขามา ณ ที่นี้ด้วยครับ ท่านใดพอจะมีทรัพย์ก็บริจาคเขาด้วยนะครับ ฟังภาษาอังกฤษเขาในยูทูบก็ฟังง่ายดีครับ
#66
ARM Processors / FreeRTOS API Event Groups
January 28, 2022, 08:18:14 AM
https://www.freertos.org/event-groups-API.html

Event Groups
[API]

     เคล็ดลับ: 'Task Notifications' สามารถเป็นทางเลือกที่มีน้ำหนักเบาให้กับ event groups ได้ในหลายสถานการณ์

#68
ARM Processors / FreeRTOS API Semaphore / Mutexes
January 09, 2022, 11:03:11 AM
https://www.freertos.org/a00113.html

Semaphores
[API]

      TIP: 'Task Notifications' สามารถจัดให้มี a light weight alternative แทน semaphores ในหลายสถานะการณ์

#72
ARM Processors / FreeRTOS API Queue
December 23, 2021, 06:14:24 AM
https://www.freertos.org/a00018.html

Queue Management
[API]

Modules

#76
ARM Processors / FreeRTOS
October 08, 2021, 08:24:01 AM
https://www.freertos.org/FreeRTOS-quick-start-guide.html

FreeRTOS Kernel Quick Start Guide

หน้านี้เริ่มต้นด้วยการอธิบายวิธีทำให้ the RTOS รันบน your target เร็วที่สุดเท่าที่เป็นได้. ด้านล่างนั้น the "Next steps - further reading" section จัดให้มีชุดของลิ้งค์ที่ช่วยให้คุณเพิ่มพูนความรู้ของคุณ, ตอบคำถามทั่วไป, และกลายเป็นผู้ใช้ที่ชำนาญ FreeRTOS.

โปรดดู the Getting Started With Simple FreeRTOS Projects documentation, และ the FreeRTOS books สำหรับการเริ่มต้นที่ดีที่สุดเท่าที่เป็นได้. มีแม้กระทั่ง a FreeRTOS Windows port เพื่อยอมให้ทดลองกับ FreeRTOS บน a Windows host, โดยใช้ free tools, และไม่มี any special hardware requirements. New developers ถูกแนะนำให้ใช้ the configASSERT() macro อีกด้วย.
#77
การอบรมออนไลน์ ท่านใดได้รับอีเมล์บ้าง สนใจก็ลองสมัครกันดูนะครับ
https://mail.google.com/mail/u/0?ui=2&ik=097ec93458&view=lg&permmsgid=msg-f:1711522628929210719
#78
ARM Processors / LwIP
August 29, 2021, 09:15:30 AM
https://www.nongnu.org/lwip/2_1_x/index.html

Overview

INTRODUCTION

lwIP เป็น a small independent implementation ของ the TCP/IP protocol suite.

จุดเน้นอง the lwIP TCP/IP implementation คือลด the RAM usageในขณะที่ยังคงมี a full scale TCP. นี้ทำให้ lwIP เหมาะสมสำหรับใช้ใน embedded systems ที่มี tens of kilobytes of free RAM และที่ว่างสำหรับประมาณ 40 kilobytes of code ROM.

lwIP ถูกพัฒนาเริ่มแรกโดย Adam Dunkels ที่ the Computer and Networks Architectures (CNA) lab ที่ the Swedish Institute of Computer Science (SICS) และขณะนี้ถูกพัฒนาและดูแลโดย a worldwide network of developers.

FEATURES

  * IP (Internet Protocol, IPv4 and IPv6) including packet forwarding over
    multiple network interfaces
  * ICMP (Internet Control Message Protocol) for network maintenance and debugging
  * IGMP (Internet Group Management Protocol) for multicast traffic management
  * MLD (Multicast listener discovery for IPv6). Aims to be compliant with
    RFC 2710. No support for MLDv2
  * ND (Neighbor discovery and stateless address autoconfiguration for IPv6).
    Aims to be compliant with RFC 4861 (Neighbor discovery) and RFC 4862
    (Address autoconfiguration)
  * DHCP, AutoIP/APIPA (Zeroconf) and (stateless) DHCPv6
  * UDP (User Datagram Protocol) including experimental UDP-lite extensions
  * TCP (Transmission Control Protocol) with congestion control, RTT estimation
    fast recovery/fast retransmit and sending SACKs
  * raw/native API for enhanced performance
  * Optional Berkeley-like socket API
  * TLS: optional layered TCP ("altcp") for nearly transparent TLS for any
    TCP-based protocol (ported to mbedTLS) (see changelog for more info)
  * PPPoS and PPPoE (Point-to-point protocol over Serial/Ethernet)
  * DNS (Domain name resolver incl. mDNS)
  * 6LoWPAN (via IEEE 802.15.4, BLE or ZEP)


APPLICATIONS

  * HTTP server with SSI and CGI (HTTPS via altcp)
  * SNMPv2c agent with MIB compiler (Simple Network Management Protocol), v3 via altcp
  * SNTP (Simple network time protocol)
  * NetBIOS name service responder
  * MDNS (Multicast DNS) responder
  * iPerf server implementation
  * MQTT client (TLS support via altcp)
#79
ARM Processors / STM32F103RB DATA SHEET
August 10, 2021, 08:02:18 AM
https://www.st.com/en/microcontrollers-microprocessors/stm32f103rb.html

STM32F103x8
STM32F103xB
Medium-density performance line ARM®-based 32-bit MCU with 64
or 128 KB Flash, USB, CAN, 7 timers, 2 ADCs, 9 com. interfaces



Features

•   ARM® 32-bit Cortex®-M3 CPU Core
     – 72 MHz maximum frequency, 1.25 DMIPS/MHz (Dhrystone 2.1)performance at 0 wait state memory
        access
     – Single-cycle multiplication and hardware division
•   Memories
     – 64 or 128 Kbytes of Flash memory
     – 20 Kbytes of SRAM
•   Clock, reset and supply management
     – 2.0 to 3.6 V application supply and I/Os
     – POR, PDR, and programmable voltage detector (PVD)
     – 4-to-16 MHz crystal oscillator
     – Internal 8 MHz factory-trimmed RC
     – Internal 40 kHz RC
     – PLL for CPU clock
     – 32 kHz oscillator for RTC with calibration
•   Low-power
     – Sleep, Stop and Standby modes
     – VBAT supply for RTC and backup registers
•   2 x 12-bit, 1 μs A/D converters (up to 16 channels)
     – Conversion range: 0 to 3.6 V
     – Dual-sample and hold capability
     – Temperature sensor
•   DMA
     – 7-channel DMA controller
     – Peripherals supported: timers, ADC, SPIs, I2Cs and USARTs
•   Up to 80 fast I/O ports
     – 26/37/51/80 I/Os, all mappable on 16 external interrupt vectors and almost all 5 V-tolerant
•   Debug mode
     – Serial wire debug (SWD) & JTAG interfaces
•   7 timers
     – Three 16-bit timers, each with up to 4 IC/OC/PWM or pulse counter and quadrature (incremental) encoder
        input
     – 16-bit, motor control PWM timer with deadtime generation and emergency stop
     – 2 watchdog timers (Independent and Window)
     – SysTick timer 24-bit downcounter
•   Up to 9 communication interfaces
     – Up to 2 x I2C interfaces (SMBus/PMBus)
     – Up to 3 USARTs (ISO 7816 interface, LIN, IrDA capability, modem control)
     – Up to 2 SPIs (18 Mbit/s)
     – CAN interface (2.0B Active)
     – USB 2.0 full-speed interface
•   CRC calculation unit, 96-bit unique ID
•   Packages are ECOPACK®

#80
ARM Processors / STM32F1 CMSIS RTX RTOS
August 02, 2021, 08:34:26 AM
ลองค้นกูเกิ้ล "CMSIS" โหลดเอา CMSIS 5 กับ CMSIS 4 ใน Github มาเลย จะมี RTX RTOS อยู่ CMSIS 5 มันเปิดเอกสารไม่ได้ ผมก็จะแปลตามเอกสารใน STM32CubeF1-master เลย RTOS น่าจะเป็นรุ่นล่าสุดแล้ว ลองๆดูกัน มีอะไรแนะนำก็ว่ามานะครับ