You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
using System.Text ;
using HybirdFrameworkCore.Autofac.Attribute ;
using log4net ;
using HybirdFrameworkDriver.TcpClient ;
using Decoder = Service . Padar . Codec . Decoder ;
using Encoder = Service . Padar . Codec . Encoder ;
namespace Service.Padar.Client ;
[Scope]
public class PadarClient : TcpClient < IBaseHandler , Decoder , Encoder >
{
/// <summary>
/// 0-雷达不工作; 1-无车; 2-无电池, 3-角度偏移过大; 4-车辆靠后; 5-车辆靠前; 6-车辆到位
/// </summary>
public byte? CarState { get ; set ; }
public static readonly byte [ ] StartChar = { 0xFE , 0x68 } ;
private static readonly ILog Log = LogManager . GetLogger ( typeof ( PadarClient ) ) ;
public bool Connect ( )
{
base . BaseConnect ( ) ;
Log . Info ( $"padar connect succeed" ) ;
return Connected ;
}
}