// 协议栈适配层
// 秒寻科技
// zt 2024-09-15

package psadapt

// import (
// 	"ipsomc/module/ps/ps"
// )

// type PsAdapt struct {
// 	psApi ps.Ps
// }

// // 查询基站设备参数
// // dataModel:基站参数
// func (obj *PsAdapt) PsAdaptQueryOamDeviceParam(dataModel *bparammodel.BtsDeviceParam) error {
// 	////组织查询参数数据
// 	var dataList bytes.Buffer
// 	zeroBuffer := make([]byte, 20)

// 	//设备类型
// 	binary.Write(&dataList, binary.LittleEndian, uint16(5))                     //长度
// 	binary.Write(&dataList, binary.LittleEndian, uint16(oam.ORDER_DEVICE_TYPE)) //命令
// 	binary.Write(&dataList, binary.LittleEndian, uint8(0))                      //数据

// 	//设备序列号
// 	binary.Write(&dataList, binary.LittleEndian, uint16(24))                         //长度
// 	binary.Write(&dataList, binary.LittleEndian, uint16(oam.ORDER_DEVICE_SERIAL_NO)) //命令
// 	binary.Write(&dataList, binary.LittleEndian, zeroBuffer)                         //数据

// 	//设备型号
// 	binary.Write(&dataList, binary.LittleEndian, uint16(24))                     //长度
// 	binary.Write(&dataList, binary.LittleEndian, uint16(oam.ORDER_DEVICE_MODEL)) //命令
// 	binary.Write(&dataList, binary.LittleEndian, zeroBuffer)                     //数据

// 	//软件版本
// 	binary.Write(&dataList, binary.LittleEndian, uint16(24))                           //长度
// 	binary.Write(&dataList, binary.LittleEndian, uint16(oam.ORDER_DEVICE_MCU_VERSION)) //命令
// 	binary.Write(&dataList, binary.LittleEndian, zeroBuffer)                           //数据

// 	//蓝牙名称
// 	binary.Write(&dataList, binary.LittleEndian, uint16(32))                            //长度
// 	binary.Write(&dataList, binary.LittleEndian, uint16(oam.ORDER_DEVICE_BLE_BTS_NAME)) //命令
// 	binary.Write(&dataList, binary.LittleEndian, make([]byte, 28))                      //数据

// 	//发送数据给基站
// 	if err := obj.psApi.PsSendOamDataToBts(int(dataModel.ProjectID), dataModel.BtsID, psmodel.MCP_A, psmodel.MCP_A_QUERY, dataList.Bytes()); err != nil {
// 		return err
// 	}

// 	return nil
// }
