'2020/11/05'에 해당되는 글 6건

  1. 2020.11.05 c#에서 ini 파일 사용하기
  2. 2020.11.05 리브레 오피스 Calc 중복제거
  3. 2020.11.05 GPX, NMEA 포맷 변환
  4. 2020.11.05 C# UTC -> 지역시간
  5. 2020.11.05 NMEA / GPS 날짜&시간
  6. 2020.11.05 c# gps(nmea parser)
Programming/c# & winform2020. 11. 5. 17:46

환경 설정파일로 ini 만한게 없긴하지..

 

[링크 : https://www.nuget.org/packages/ini-parser/]

[링크 : https://wookoa.tistory.com/417]

[링크 : https://github.com/Enichan/Ini]

 

'Programming > c# & winform' 카테고리의 다른 글

C# 시간 관련 클래스  (0) 2020.11.10
c# 문자열을 시간으로  (6) 2020.11.06
C# UTC -> 지역시간  (0) 2020.11.05
c# gps(nmea parser)  (0) 2020.11.05
c# label rotate  (0) 2020.11.04
Posted by 구차니

엑셀에서는 아이콘으로 있었는데

메뉴를 한참들어가서 옵션을 열고 체크해줘야 하다니 ㅠㅠ

 

 

[링크 : https://www.yangel.org/DODOxe/OfficeOA/6408]

Posted by 구차니

구글 지도 에서 export 가능한 포멧이 GPX인데 XML 기반이다.

GPX를 NMEA(GPS raw data) 형식으로 변환이 가능하면

구글 어스에서 내가 경로를 만들어서 raw 데이터로 쓸 수 있으려나?

 

 

gpx to nmea를 해보는데 output data가 NMEA 0183으로 지정된다. NMEA 2000은 파일 포맷이 아닌건가?

그리고 변환해보니 (point.gpx) GPWPL 로만 생성이 된다.

 

[링크 : https://mygeodata.cloud/converter/gpx-to-nmea]

[링크 : https://mygeodata.cloud/converter/nmea-to-gpx]

 

[링크 : https://wiki.openstreetmap.org/wiki/Converting/NMEA_to_GPX]

'이론 관련 > 컴퓨터 관련' 카테고리의 다른 글

fp16  (0) 2021.05.10
gps 체크섬  (0) 2020.11.17
NMEA / GPS 날짜&시간  (0) 2020.11.05
온프레미스  (0) 2020.10.27
NMEA 포맷  (0) 2020.10.26
Posted by 구차니
Programming/c# & winform2020. 11. 5. 15:39

위는 결과는 UTC 시간을 출력해주고

아래 결과는 지역시간(한국이니 UTC+9 = KST)으로 출력된다

label2.Text = TimeZoneInfo.ConvertTimeToUtc(DateTime.Now).ToString();
label2.Text = DateTime.Now.ToString();

 

GPS 에서 사용하는 스타일로 UTC를 출력하기

DateTime utc = TimeZoneInfo.ConvertTimeToUtc(DateTime.Now);
label2.Text = "" + String.Format("{0:D2}", utc.Year % 100) + String.Format("{0:D2}", utc.Month) + String.Format("{0:D2}", utc.Day);
label2.Text += " " + String.Format("{0:D2}", utc.Hour) + String.Format("{0:D2}", utc.Minute) + String.Format("{0:D2}", utc.Second);

[링크 : https://docs.microsoft.com/ko-kr/dotnet/api/system.datetime.tolocaltime?view=netcore-3.1]

[링크 : https://docs.microsoft.com/ko-kr/dotnet/standard/datetime/converting-between-time-zones]

 

+

2020.11.06

 

utc를 저장하고 ToLocalTime() 한번 실행해주면 지역시간으로 바뀐다.

public DateTime ToLocalTime ();

[링크 : https://docs.microsoft.com/ko-kr/dotnet/api/system.datetime.tolocaltime?view=netcore-3.1]

'Programming > c# & winform' 카테고리의 다른 글

c# 문자열을 시간으로  (6) 2020.11.06
c#에서 ini 파일 사용하기  (0) 2020.11.05
c# gps(nmea parser)  (0) 2020.11.05
c# label rotate  (0) 2020.11.04
c# tooltip  (0) 2020.11.04
Posted by 구차니

epoch로 계산해야 하는줄 알았는데 자릿수가 적어서 고민때리다가 발견

그냥 두자리씩 자르면 된다 -_-

 

GPGGA는 위치와 시간 정보가 들어있는 녀석인데

011557.00은 시간으로

01:15:57.00 UTC (KST는 +9니까 한국은 10시)

 

261020은 날짜로

DD/MM/YY

26/10/20 -> 2020년 10월 26일 로 출력된다.

 

마지막의 CRC만 계산하는 법 찾으면 그냥 라이브러리 만들어서 쓰는게 편할지도?

+

[링크 : https://en.wikipedia.org/wiki/NMEA_0183#C_implementation_of_checksum_generation]

 

$GPGGA,011557.00,3724.048737,N,12659.412849,E,1,27,0.3,90.1,M,18.4,M,,*5E
$GPRMC,011557.00,A,3724.048737,N,12659.412849,E,002.0,069.3,261020,,,A*56

 

 

for example:

$GPRMC,040302.00,A,3209.992,N,11052.530,W,0.00,93.70, 070807,11.30,E*7C

 

I would extract 040302.00 and 070907 and converted to milliseconds of the week (0000 SUnday GMT).

Tuesday August 07, 2007 04:03:02.00 AM UTC  would equal to: 187,382,000 milliseconds

[링크 : https://social.msdn.microsoft.com/.../how-to-convert-gps-utc-time-to-millisecond-of-the-week?forum=netfxbcl]

[링크 : https://blog.naver.com/6k5tvb/120061235070]

'이론 관련 > 컴퓨터 관련' 카테고리의 다른 글

gps 체크섬  (0) 2020.11.17
GPX, NMEA 포맷 변환  (0) 2020.11.05
온프레미스  (0) 2020.10.27
NMEA 포맷  (0) 2020.10.26
NUMA, SMP  (0) 2020.09.25
Posted by 구차니
Programming/c# & winform2020. 11. 5. 15:00

내가 필요한건 NMEA 값을 받아와서 파싱하고

그 값을 내가 원하는대로 수정해서 원래 GPS 데이터로 출력하는 건데..

 

괜찬아 보이는데 쓰기 쉬울려나?

 

 

Features
  • Most common NMEA messages fully supported
    • GNSS: BOD, GGA, GLL, GNS, GSA, GST, GSV, RMB, RMA, RMB, RMC, RTE, VTG, ZDA
    • Garmin Proprietary: PGRME, PGRMZ
    • Trimble Laser Range Finder: PTNLA, PTNLB
    • TruePulse Laser Range Finder: PLTIT
  • Automatic merging of multi-sentence messages for simplified usage.
  • Extensible with custom NMEA messages see here
  • Multiple input devices out of the box
    • System.IO.Stream (all platforms)
    • Emulation from NMEA log file (all platforms)
    • Serial Device: .NET Framework, .NET Core (Windows, Linux, Mac) and Windows Universal.
    • Bluetooth: Windows Universal and Android. .NET Core/.NET Framework is supported using the bluetooth device via the SerialPortDevice.

[링크 : https://www.nuget.org/packages/SharpGIS.NmeaParser/]

[링크 : https://dotmorten.github.io/NmeaParser/api/index.html]

'Programming > c# & winform' 카테고리의 다른 글

c#에서 ini 파일 사용하기  (0) 2020.11.05
C# UTC -> 지역시간  (0) 2020.11.05
c# label rotate  (0) 2020.11.04
c# tooltip  (0) 2020.11.04
c# GIF picturebox  (4) 2020.11.04
Posted by 구차니