SAP STMS报错 IMPORT_NOT_ALLOWED组件版本测试中找不到数据文件

        场景描述:在STMS中传输某一个请求时,传输过程中网络不稳定,账号掉线。重新传输请求时,报错IMPORT_NOT_ALLOWED组件版本测试中找不到数据文件,如下图所示:

        之后发现,不仅传输该请求报错,其他发布的请求也会报此错误。

        咨询BASIS后得知,此问题可通过队列-调整,即按钮解决。后续发现,正常情况下队列-调整菜单为灰色,按钮是不可见的。 

 

        

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
以下是基于STMS32的DS18B20数据采集程序代码,仅供参考: ```c /* Includes */ #include "stm32f10x.h" /* Private typedef */ typedef enum {RESET = 0, SET = !RESET} FlagStatus, ITStatus; typedef enum {DISABLE = 0, ENABLE = !DISABLE} FunctionalState; /* Private define */ #define DS18B20_PORT GPIOA #define DS18B20_PIN GPIO_Pin_1 /* Private function prototypes */ void Delay_us(uint32_t us); void DS18B20_Init(void); void DS18B20_WriteBit(uint8_t bit); uint8_t DS18B20_ReadBit(void); void DS18B20_WriteByte(uint8_t byte); uint8_t DS18B20_ReadByte(void); void DS18B20_Start(void); void DS18B20_Reset(void); uint16_t DS18B20_GetTemp(void); /* Private functions */ void Delay_us(uint32_t us) { uint32_t count = us * (SystemCoreClock / 1000000) / 5; while (count--); } void DS18B20_Init(void) { GPIO_InitTypeDef GPIO_InitStructure; RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA, ENABLE); GPIO_InitStructure.GPIO_Pin = DS18B20_PIN; GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP; GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz; GPIO_Init(DS18B20_PORT, &GPIO_InitStructure); DS18B20_Reset(); } void DS18B20_WriteBit(uint8_t bit) { GPIO_ResetBits(DS18B20_PORT, DS18B20_PIN); Delay_us(2); if (bit) { GPIO_SetBits(DS18B20_PORT, DS18B20_PIN); } Delay_us(60); GPIO_SetBits(DS18B20_PORT, DS18B20_PIN); } uint8_t DS18B20_ReadBit(void) { uint8_t bit = 0; GPIO_ResetBits(DS18B20_PORT, DS18B20_PIN); Delay_us(2); GPIO_SetBits(DS18B20_PORT, DS18B20_PIN); Delay_us(15); bit = GPIO_ReadInputDataBit(DS18B20_PORT, DS18B20_PIN); Delay_us(45); return bit; } void DS18B20_WriteByte(uint8_t byte) { uint8_t i = 0; for (i = 0; i < 8; i++) { DS18B20_WriteBit((byte >> i) & 0x01); } } uint8_t DS18B20_ReadByte(void) { uint8_t byte = 0, i = 0; for (i = 0; i < 8; i++) { byte |= (DS18B20_ReadBit() << i); } return byte; } void DS18B20_Start(void) { DS18B20_Reset(); DS18B20_WriteByte(0xCC); DS18B20_WriteByte(0x44); } void DS18B20_Reset(void) { GPIO_ResetBits(DS18B20_PORT, DS18B20_PIN); Delay_us(480); GPIO_SetBits(DS18B20_PORT, DS18B20_PIN); Delay_us(60); while (GPIO_ReadInputDataBit(DS18B20_PORT, DS18B20_PIN)); } uint16_t DS18B20_GetTemp(void) { uint16_t temp = 0; uint8_t data[2] = {0}; DS18B20_Start(); DS18B20_Reset(); DS18B20_WriteByte(0xCC); DS18B20_WriteByte(0xBE); data[0] = DS18B20_ReadByte(); data[1] = DS18B20_ReadByte(); temp = data[1] << 8 | data[0]; temp = temp * 625 / 100; return temp; } /* Public functions */ int main(void) { uint16_t temp = 0; DS18B20_Init(); while (1) { temp = DS18B20_GetTemp(); // Do something with the temperature data } } ``` 该代码实现了DS18B20温度传感器的数据采集,通过调用 DS18B20_GetTemp() 函数获取温度值。在 main 函数,可以通过温度值做出相应的处理。请注意,此代码仅供参考,具体实现应根据具体情况进行修改。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值