Author |
Topic: Serial com in LBB/LB4 - what is different? (Read 2281 times) |
|
Rod
Full Member
member is offline


Gender: 
Posts: 110
|
 |
Re: Serial com in LBB/LB4 - what is different?
« Reply #34 on: May 5th, 2014, 1:51pm » |
|
If you are not used to serial comms the first lesson to learn is timing, buffers fill up, printers chunter and the PC flys along at a speed the port can't hope to follow.
http://lbpe.wikispaces.com/AccessingSerialPort
|
|
Logged
|
|
|
|
flotulopex
Junior Member
member is offline


Gender: 
Posts: 94
|
 |
Re: Serial com in LBB/LB4 - what is different?
« Reply #35 on: May 5th, 2014, 3:52pm » |
|
Thanks Rod,
This is exactly where I started.
|
|
Logged
|
Roger
|
|
|
net2014
New Member
member is offline


Posts: 37
|
 |
Re: Serial com in LBB/LB4 - what is different?
« Reply #36 on: May 5th, 2014, 6:36pm » |
|
on May 5th, 2014, 1:51pm, Rod wrote:
I have to admit my use of serial comms usually involves some fudge of timing to make things work, but in reality shouldn't timing be irrelevant? That's why handshake lines are part of rs232 specification. These lines seem to be disabled in LB4 serial open command. Isn't LB4/LBB able to handle handshaking? If it is capable then perhaps we should put some effort into proper handshake investigation.
|
|
Logged
|
|
|
|
Richard Russell
Administrator
member is offline


Posts: 1348
|
 |
Re: Serial com in LBB/LB4 - what is different?
« Reply #37 on: May 5th, 2014, 8:29pm » |
|
on May 5th, 2014, 6:36pm, net2014 wrote:| I have to admit my use of serial comms usually involves some fudge of timing to make things work, but in reality shouldn't timing be irrelevant? |
|
It's honest of you to admit it, but as you say it shouldn't be necessary.
Quote:| That's why handshake lines are part of rs232 specification. |
|
Not really. You commonly don't need any explicit handshaking or timing fudges.
For example if the communication protocol involves data packets alternately flowing in one direction and then the other (poll-data-poll-data or data-response-data-response) then the only requirement is that the receive buffer is big enough to hold an entire packet.
Even if the communication is one-way you still don't need any handshaking if these conditions are met:
The average rate at which the receiving end can accept and process data exceeds the average transmission rate. There is a receive buffer of sufficient length that it can cope with the worst case fluctuation of transmit rate and receive processing capability. With typical baud rates and processing speeds these conditions can often be easily met.
Since the majority of applications match one or other of these cases, handshaking is rarely necessary. That is fortunate given that many communication paths do not support the additional data channels that are necessary for hardware handshaking.
Quote:| Isn't LB4/LBB able to handle handshaking? If it is capable then perhaps we should put some effort into proper handshake investigation. |
|
Of course they can handle handshaking, but I don't really agree that much investigation is desirable given how unusual it is for it to be needed.
Richard.
|
|
Logged
|
|
|
|
flotulopex
Junior Member
member is offline


Gender: 
Posts: 94
|
 |
Re: Serial com in LBB/LB4 - what is different?
« Reply #38 on: May 6th, 2014, 1:11pm » |
|
This was my question to the printer's support service: Quote:Hello, I'm trying to send G-code commands to my Witbox via my PC. It works via HyperTerminal but it will not work with other programming languages I use and I can't find what is wrong. May I kindly ask you to give me the serial data protocol you use (baud, parity, data ,stop, flow control and so on)? Is there any CRC or special controlling character used? Thank you for your help. Roger |
|
...here's the answer I got: Quote:Dear Roger, In Witbox, it is baud to 115200. You may know serial port to comunnicate with it. You may use PuTTy, it is software for comunnicate with Witbox. We remain at your disposal for any questions Saludos, |
|
|
|
Logged
|
Roger
|
|
|
Rod
Full Member
member is offline


Gender: 
Posts: 110
|
 |
Re: Serial com in LBB/LB4 - what is different?
« Reply #39 on: May 9th, 2014, 5:44pm » |
|
Having browsed a bit deeper I see that we are asking the wrong questions. The serial link is the serial link and it works and isn't the problem.
The Witbox uses an open source electronics board to drive its stepper motors and extruder. Ramps 1.4. This is an Arduino based microprocessor board that manages all aspects of 3d printing. It is used in a variety of modern 3d printers.
So if you want to take control of the printer you need to research Ramps 1.4
Will this be easy? Well it's kinda like asking me to take my All in One printer scanner, take control of the scanner, move it to 100,100 and scan the next three pixels. Easy? No way.
But I have not researched Ramps 1.4 protocol, that's where you need to spend the time.
Witbox clearly focus on the hardware, which they appear to be superb at. But they have opted for the open source driver software, so you will get bland responses if you query comms when the real focus should be Ramps.
|
|
Logged
|
|
|
|
flotulopex
Junior Member
member is offline


Gender: 
Posts: 94
|
 |
Re: Serial com in LBB/LB4 - what is different?
« Reply #40 on: May 12th, 2014, 12:19pm » |
|
Thanks Rod,
That's effectively THE board (Ramp)!
As you say, the problem is (was) not either on a serial comm level nor on LBB's side, but one has to start somewhere one time and the info I got back in this forum helped me to find the solution, even the one I didn't expect.
|
|
Logged
|
Roger
|
|
|
|