#robotics Logs
Jun 17 2018
#robotics Calendar
12:04 AM Jak_o_Shadows: dual rail 12v?
12:08 AM rue_shop3: +- 12V
12:14 AM Jak_o_Shadows: ah
01:30 AM rue_shop3: regardless, 120V goes in, gets a current limit and a switch...
01:30 AM rue_shop3: so, after I'v sold myself out of the filtered power connector and settled on 1 or 58 switches
01:30 AM rue_shop3: and decided its an ok project to use a breaker on, instead of just a fuse
05:27 AM Jak_o_Shadows: oh, bloody hell. I shorted the STM32's usart RX to ground.
05:27 AM Jak_o_Shadows: that would explain why things are not working well.
05:31 AM * veverak is in interrupt hell with stm32
05:31 AM veverak: or hel with HAL? dunno
05:32 AM Jak_o_Shadows: Probably with HAL. I know of companies who are writing their own STM32 core stuff from scratch
05:33 AM veverak: because yeah, it can't do variable length message on i2c receive side
05:33 AM veverak: however, it calls errorcallback when shorter than expected message arrives
05:33 AM veverak: (and you can detect that only that is the case)
05:34 AM Jak_o_Shadows: Variable number of byes? Or variable number of bits?
05:34 AM veverak: bytes
05:34 AM veverak: Jak_o_Shadows: I have two kinds of messages
05:34 AM veverak: Jak_o_Shadows: two byte income to the slave
05:34 AM veverak: Jak_o_Shadows: or one byte income, followed by one byte outcome
05:35 AM Jak_o_Shadows: Yup yup
05:35 AM Jak_o_Shadows: This seems higher level than HAL?
05:35 AM veverak: no, thing is
05:35 AM veverak: HAL api, does not allow variable length messages
05:35 AM veverak: so
05:35 AM veverak: I had to prepare mechanism, that always excepts two byte income message
05:36 AM veverak: and in case only one byte arrives, it triggers error, in the error I have to check that 'short message' is only error, and than I execute operation to send data.
05:38 AM Jak_o_Shadows: I think I would have two levels: THe first does things with the HAL, and just puts the bytes recieved into a buffer, and writes bytes from a buffer.
05:38 AM Jak_o_Shadows: Then the upper does your logic bit?
05:39 AM veverak: no
05:39 AM veverak: you do not understand what I am saying :)
05:39 AM Jak_o_Shadows: nope!
05:39 AM veverak: Jak_o_Shadows: I am talking about failure of the HAL layer
05:39 AM veverak: that it sucks
05:39 AM veverak: it can't simply receive variable-size messages, nor transmit them
05:42 AM Jak_o_Shadows: I think i'm saying that once you're sending & recieving bytes, anything higher level than that is none of the HAL's business.
05:43 AM veverak: yeah, anything higher level than that is not relevant to what I am saying :)
05:43 AM veverak: (and it's kind of obvious that you separate those two)
05:44 AM Jak_o_Shadows: Yeah. blame some of the people i've worked with in the past.
05:45 AM veverak: :D
05:45 AM veverak: that happens :)
06:04 AM Jak_o_Shadows: If you get absolutely stuck, https://github.com/Jak-o-Shadows/softlight/blob/master/code/main.c#L535 and l;ower, https://github.com/Jak-o-Shadows/softlight/blob/master/code/main.c#L753 is a reasonable example of how I might handle comms
06:04 AM veverak: hmm
06:04 AM veverak: and debugging freertos things
06:04 AM veverak: sucks
06:05 AM Jak_o_Shadows: aha. I have been removed from that a bit
06:09 AM Jak_o_Shadows: I probably should start using it though
07:05 AM veverak: so
07:06 AM veverak: now my master blocks itself during communication
07:11 AM Jak_o_Shadows: Both STMs?
07:12 AM veverak: both stm32
07:12 AM veverak: stm32l4 and stm32f03
07:12 AM Jak_o_Shadows: I've heard good things about the L series
08:28 AM veverak: it's quite nice
08:28 AM veverak: especially the "arduino mini" shaped breakout board
08:44 PM DIRT: Im hanging out in the #arch-women channel
08:44 PM DIRT: nothing technical goes on there. And they are trying to make a distro.
08:45 PM DIRT: they are taling about eugenics and parent rights
08:46 PM DIRT: and nazis
11:20 PM rue_shop3: ok, power supply is finished
11:20 PM rue_shop3: for now
11:20 PM rue_shop3: I'll finish its upgrade to a spaceship later
11:26 PM rue_shop3: I think defeating scope creep is the hardest part of my projects
11:38 PM orlock: making my scope creep reliably is 100% the hardest part of my projects
11:38 PM orlock: printed a mounting bracket for that stepper driver board to replace the factoryPCB
11:39 PM rue_shop3: ok
11:39 PM orlock: just need a right andle power plug (easy) and micro-USB connector (less easy, but still easy)
11:44 PM orlock: i dont think there's quite enough space in the cavity to fit them otherwise
11:44 PM orlock: maybe, hmm
11:44 PM orlock: if the USB and power connectors bot stuck out the same way, it would be OK, but each sticks out the opposite side of the PCB
11:44 PM orlock: OR
11:45 PM orlock: i just make my own out of perfboard
11:45 PM orlock: or mount it externally
11:58 PM rue_mohr: or design your own and get it custom etched,
11:58 PM rue_mohr: make the best one there has ever been